blob: b83ca01bb048d26b2204f42d852453078523cbf8 [file] [log] [blame]
Daniel Hillenbrand601dc852013-07-07 10:06:59 +02001# Copyright 2006 The Android Open Source Project
2
Martin Bouchet0d4bbaf2017-09-23 04:54:37 -03003ifneq ($(BOARD_PROVIDES_LIBRIL),true)
Daniel Hillenbrand601dc852013-07-07 10:06:59 +02004
5LOCAL_PATH:= $(call my-dir)
6include $(CLEAR_VARS)
7
Martin Bouchet0d4bbaf2017-09-23 04:54:37 -03008LOCAL_VENDOR_MODULE := true
9
Daniel Hillenbrand601dc852013-07-07 10:06:59 +020010LOCAL_SRC_FILES:= \
11 ril.cpp \
Dheeraj Shettycc231012014-07-02 21:27:57 +020012 ril_event.cpp\
Dheeraj Shettycc231012014-07-02 21:27:57 +020013 RilSapSocket.cpp \
Martin Bouchet0d4bbaf2017-09-23 04:54:37 -030014 ril_service.cpp \
15 sap_service.cpp
Daniel Hillenbrand601dc852013-07-07 10:06:59 +020016
17LOCAL_SHARED_LIBRARIES := \
Ethan Chend6e30652013-08-04 22:49:56 -070018 liblog \
Daniel Hillenbrand601dc852013-07-07 10:06:59 +020019 libutils \
Daniel Hillenbrand601dc852013-07-07 10:06:59 +020020 libcutils \
Andrew Jiangca4a9a02014-01-18 18:04:08 -050021 libhardware_legacy \
Dheeraj Shettycc231012014-07-02 21:27:57 +020022 librilutils \
Martin Bouchet0d4bbaf2017-09-23 04:54:37 -030023 android.hardware.radio@1.0 \
24 android.hardware.radio.deprecated@1.0 \
25 libhidlbase \
26 libhidltransport \
27 libhwbinder
Dheeraj Shettycc231012014-07-02 21:27:57 +020028
29LOCAL_STATIC_LIBRARIES := \
Vinit Deshpande5257b142015-04-15 13:31:05 -070030 libprotobuf-c-nano-enable_malloc \
Daniel Hillenbrand601dc852013-07-07 10:06:59 +020031
Martin Bouchet0d4bbaf2017-09-23 04:54:37 -030032LOCAL_CFLAGS += -Wno-unused-parameter
Christopher N. Hesse8f9268e2017-10-20 18:34:57 +020033
Christopher N. Hesse65084862017-02-07 22:21:27 +010034ifeq ($(SIM_COUNT), 2)
Martin Bouchet0d4bbaf2017-09-23 04:54:37 -030035 LOCAL_CFLAGS += -DANDROID_MULTI_SIM -DDSDA_RILD1
Christopher N. Hesse65084862017-02-07 22:21:27 +010036 LOCAL_CFLAGS += -DANDROID_SIM_COUNT_2
37endif
38
Dheeraj Shettycc231012014-07-02 21:27:57 +020039LOCAL_C_INCLUDES += external/nanopb-c
Christopher N. Hesse022eadd2016-08-28 15:37:48 +020040LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include
41LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include
Dheeraj Shettycc231012014-07-02 21:27:57 +020042
Daniel Hillenbrand601dc852013-07-07 10:06:59 +020043LOCAL_MODULE:= libril
Christopher N. Hesse65084862017-02-07 22:21:27 +010044LOCAL_CLANG := true
Sanket Padawe48778452016-03-07 18:09:55 -080045LOCAL_SANITIZE := integer
Daniel Hillenbrand601dc852013-07-07 10:06:59 +020046
Dheeraj Shettycc231012014-07-02 21:27:57 +020047include $(BUILD_SHARED_LIBRARY)
Daniel Hillenbrand601dc852013-07-07 10:06:59 +020048
Daniel Hillenbrand601dc852013-07-07 10:06:59 +020049endif # BOARD_PROVIDES_LIBRIL