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