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.c 10 11LOCAL_SHARED_LIBRARIES := \ 12 libcutils \ 13 libdl \ 14 liblog \ 15 libril 16 17# Temporary hack for broken vendor RILs. 18LOCAL_WHOLE_STATIC_LIBRARIES := \ 19 librilutils 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 31LOCAL_MODULE:= rild 32ifeq ($(PRODUCT_COMPATIBLE_PROPERTY),true) 33LOCAL_INIT_RC := rild.rc 34LOCAL_CFLAGS += -DPRODUCT_COMPATIBLE_PROPERTY 35else 36LOCAL_INIT_RC := rild.legacy.rc 37endif 38 39include $(BUILD_EXECUTABLE) 40 41endif 42