1# Copyright 2006 The Android Open Source Project 2 3LOCAL_PATH:= $(call my-dir) 4include $(CLEAR_VARS) 5 6LOCAL_VENDOR_MODULE := true 7 8LOCAL_SRC_FILES:= \ 9 ril.cpp \ 10 ril_event.cpp\ 11 RilSapSocket.cpp \ 12 ril_service.cpp \ 13 sap_service.cpp 14 15LOCAL_SHARED_LIBRARIES := \ 16 liblog \ 17 libutils \ 18 libcutils \ 19 libhardware_legacy \ 20 librilutils \ 21 android.hardware.radio@1.0 \ 22 android.hardware.radio@1.1 \ 23 android.hardware.radio.deprecated@1.0 \ 24 libhidlbase \ 25 26LOCAL_STATIC_LIBRARIES := \ 27 libprotobuf-c-nano-enable_malloc-32bit \ 28 29LOCAL_CFLAGS += -Wall -Wextra -Wno-unused-parameter -Werror 30LOCAL_CFLAGS += -DPB_FIELD_32BIT 31 32ifeq ($(SIM_COUNT), 2) 33 LOCAL_CFLAGS += -DANDROID_MULTI_SIM -DDSDA_RILD1 34 LOCAL_CFLAGS += -DANDROID_SIM_COUNT_2 35endif 36 37ifneq ($(DISABLE_RILD_OEM_HOOK),) 38 LOCAL_CFLAGS += -DOEM_HOOK_DISABLED 39endif 40 41LOCAL_C_INCLUDES += external/nanopb-c 42LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include 43LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include 44 45LOCAL_MODULE:= libril 46LOCAL_SANITIZE := integer 47 48include $(BUILD_SHARED_LIBRARY) 49 50