1# Copyright 2006 The Android Open Source Project 2 3ifndef ENABLE_VENDOR_RIL_SERVICE 4 5LOCAL_PATH:= $(call my-dir) 6include $(CLEAR_VARS) 7 8LOCAL_SRC_FILES:= \ 9 rild_goldfish.c 10 11LOCAL_SHARED_LIBRARIES := \ 12 libcutils \ 13 libdl \ 14 liblog \ 15 libril-goldfish-fork 16 17# Temporary hack for broken vendor RILs. 18LOCAL_WHOLE_STATIC_LIBRARIES := \ 19 librilutils-goldfish-fork 20 21LOCAL_CFLAGS := -DRIL_SHLIB 22LOCAL_CFLAGS += -Wall -Wextra -Werror 23 24ifeq ($(SIM_COUNT), 2) 25 LOCAL_CFLAGS += -DANDROID_MULTI_SIM 26 LOCAL_CFLAGS += -DANDROID_SIM_COUNT_2 27endif 28 29LOCAL_MODULE_RELATIVE_PATH := hw 30LOCAL_PROPRIETARY_MODULE := true 31#LOCAL_MODULE:= rild 32LOCAL_MODULE:= libgoldfish-rild 33LOCAL_OVERRIDES_PACKAGES := rild 34PACKAGES.$(LOCAL_MODULE).OVERRIDES := rild 35ifeq ($(PRODUCT_COMPATIBLE_PROPERTY),true) 36LOCAL_INIT_RC := rild_goldfish.rc 37LOCAL_CFLAGS += -DPRODUCT_COMPATIBLE_PROPERTY 38else 39LOCAL_INIT_RC := rild_goldfish.legacy.rc 40endif 41 42include $(BUILD_EXECUTABLE) 43 44endif 45