1# Copyright 2006 The Android Open Source Project 2 3LOCAL_PATH:= $(call my-dir) 4include $(CLEAR_VARS) 5 6LOCAL_SRC_FILES:= \ 7 ril.cpp \ 8 ril_event.cpp\ 9 RilSocket.cpp \ 10 RilSapSocket.cpp \ 11 12LOCAL_SHARED_LIBRARIES := \ 13 liblog \ 14 libutils \ 15 libbinder \ 16 libcutils \ 17 libhardware_legacy \ 18 librilutils \ 19 20LOCAL_STATIC_LIBRARIES := \ 21 libprotobuf-c-nano-enable_malloc \ 22 23#LOCAL_CFLAGS := -DANDROID_MULTI_SIM -DDSDA_RILD1 24 25ifeq ($(SIM_COUNT), 2) 26 LOCAL_CFLAGS += -DANDROID_SIM_COUNT_2 27endif 28 29LOCAL_C_INCLUDES += external/nanopb-c 30LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include 31LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include 32 33LOCAL_MODULE:= libril 34LOCAL_CLANG := true 35LOCAL_SANITIZE := integer 36 37include $(BUILD_SHARED_LIBRARY) 38 39 40# For RdoServD which needs a static library 41# ========================================= 42ifneq ($(ANDROID_BIONIC_TRANSITION),) 43include $(CLEAR_VARS) 44 45LOCAL_SRC_FILES:= \ 46 ril.cpp 47 48LOCAL_STATIC_LIBRARIES := \ 49 libutils_static \ 50 libcutils \ 51 librilutils_static \ 52 libprotobuf-c-nano-enable_malloc 53 54LOCAL_CFLAGS := 55 56LOCAL_MODULE:= libril_static 57 58include $(BUILD_STATIC_LIBRARY) 59endif # ANDROID_BIONIC_TRANSITION 60