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 libhidltransport \ 26 libhwbinder 27 28LOCAL_STATIC_LIBRARIES := \ 29 libprotobuf-c-nano-enable_malloc \ 30 31LOCAL_CFLAGS += -Wall -Wextra -Wno-unused-parameter -Werror 32 33ifeq ($(SIM_COUNT), 2) 34 LOCAL_CFLAGS += -DANDROID_MULTI_SIM -DDSDA_RILD1 35 LOCAL_CFLAGS += -DANDROID_SIM_COUNT_2 36endif 37 38ifneq ($(DISABLE_RILD_OEM_HOOK),) 39 LOCAL_CFLAGS += -DOEM_HOOK_DISABLED 40endif 41 42LOCAL_C_INCLUDES += external/nanopb-c 43LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include 44LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include 45 46LOCAL_MODULE:= libril 47LOCAL_SANITIZE := integer 48 49include $(BUILD_SHARED_LIBRARY) 50 51