Daniel Hillenbrand | 601dc85 | 2013-07-07 10:06:59 +0200 | [diff] [blame] | 1 | # Copyright 2006 The Android Open Source Project |
| 2 | |
Martin Bouchet | c3c6cee | 2017-09-23 04:57:42 -0300 | [diff] [blame] | 3 | ifeq ($(BOARD_PROVIDES_LIBRIL),true) |
Daniel Hillenbrand | 601dc85 | 2013-07-07 10:06:59 +0200 | [diff] [blame] | 4 | |
| 5 | LOCAL_PATH:= $(call my-dir) |
| 6 | include $(CLEAR_VARS) |
| 7 | |
Martin Bouchet | 0d4bbaf | 2017-09-23 04:54:37 -0300 | [diff] [blame] | 8 | LOCAL_VENDOR_MODULE := true |
| 9 | |
Daniel Hillenbrand | 601dc85 | 2013-07-07 10:06:59 +0200 | [diff] [blame] | 10 | LOCAL_SRC_FILES:= \ |
| 11 | ril.cpp \ |
Dheeraj Shetty | cc23101 | 2014-07-02 21:27:57 +0200 | [diff] [blame] | 12 | ril_event.cpp\ |
Dheeraj Shetty | cc23101 | 2014-07-02 21:27:57 +0200 | [diff] [blame] | 13 | RilSapSocket.cpp \ |
Martin Bouchet | 0d4bbaf | 2017-09-23 04:54:37 -0300 | [diff] [blame] | 14 | ril_service.cpp \ |
| 15 | sap_service.cpp |
Daniel Hillenbrand | 601dc85 | 2013-07-07 10:06:59 +0200 | [diff] [blame] | 16 | |
| 17 | LOCAL_SHARED_LIBRARIES := \ |
Ethan Chen | d6e3065 | 2013-08-04 22:49:56 -0700 | [diff] [blame] | 18 | liblog \ |
Daniel Hillenbrand | 601dc85 | 2013-07-07 10:06:59 +0200 | [diff] [blame] | 19 | libutils \ |
Daniel Hillenbrand | 601dc85 | 2013-07-07 10:06:59 +0200 | [diff] [blame] | 20 | libcutils \ |
Andrew Jiang | ca4a9a0 | 2014-01-18 18:04:08 -0500 | [diff] [blame] | 21 | libhardware_legacy \ |
Dheeraj Shetty | cc23101 | 2014-07-02 21:27:57 +0200 | [diff] [blame] | 22 | librilutils \ |
Martin Bouchet | 0d4bbaf | 2017-09-23 04:54:37 -0300 | [diff] [blame] | 23 | android.hardware.radio@1.0 \ |
| 24 | android.hardware.radio.deprecated@1.0 \ |
| 25 | libhidlbase \ |
| 26 | libhidltransport \ |
| 27 | libhwbinder |
Dheeraj Shetty | cc23101 | 2014-07-02 21:27:57 +0200 | [diff] [blame] | 28 | |
| 29 | LOCAL_STATIC_LIBRARIES := \ |
Vinit Deshpande | 5257b14 | 2015-04-15 13:31:05 -0700 | [diff] [blame] | 30 | libprotobuf-c-nano-enable_malloc \ |
Daniel Hillenbrand | 601dc85 | 2013-07-07 10:06:59 +0200 | [diff] [blame] | 31 | |
Martin Bouchet | 0d4bbaf | 2017-09-23 04:54:37 -0300 | [diff] [blame] | 32 | LOCAL_CFLAGS += -Wno-unused-parameter |
Christopher N. Hesse | 8f9268e | 2017-10-20 18:34:57 +0200 | [diff] [blame] | 33 | |
Christopher N. Hesse | 6508486 | 2017-02-07 22:21:27 +0100 | [diff] [blame] | 34 | ifeq ($(SIM_COUNT), 2) |
Martin Bouchet | 0d4bbaf | 2017-09-23 04:54:37 -0300 | [diff] [blame] | 35 | LOCAL_CFLAGS += -DANDROID_MULTI_SIM -DDSDA_RILD1 |
Christopher N. Hesse | 6508486 | 2017-02-07 22:21:27 +0100 | [diff] [blame] | 36 | LOCAL_CFLAGS += -DANDROID_SIM_COUNT_2 |
| 37 | endif |
| 38 | |
Martin Bouchet | c3c6cee | 2017-09-23 04:57:42 -0300 | [diff] [blame] | 39 | ifneq ($(filter xmm6262 xmm6360,$(BOARD_MODEM_TYPE)),) |
| 40 | LOCAL_CFLAGS += -DMODEM_TYPE_XMM6262 |
| 41 | endif |
| 42 | ifeq ($(BOARD_MODEM_TYPE),xmm6260) |
| 43 | LOCAL_CFLAGS += -DMODEM_TYPE_XMM6260 |
| 44 | endif |
| 45 | ifneq ($(filter m7450 mdm9x35 ss333 tss310 xmm7260,$(BOARD_MODEM_TYPE)),) |
| 46 | LOCAL_CFLAGS += -DSAMSUNG_NEXT_GEN_MODEM |
| 47 | endif |
| 48 | |
| 49 | ifeq ($(BOARD_MODEM_NEEDS_VIDEO_CALL_FIELD), true) |
| 50 | LOCAL_CFLAGS += -DNEEDS_VIDEO_CALL_FIELD |
| 51 | endif |
| 52 | |
Christopher N. Hesse | ffe632e | 2018-02-13 23:51:12 +0100 | [diff] [blame] | 53 | ifeq ($(BOARD_NEEDS_ROAMING_PROTOCOL_FIELD), true) |
| 54 | LOCAL_CFLAGS += -DNEEDS_ROAMING_PROTOCOL_FIELD |
| 55 | endif |
| 56 | |
Christopher N. Hesse | 7f2c1bf | 2018-02-16 12:40:06 +0100 | [diff] [blame^] | 57 | ifeq ($(BOARD_NEEDS_IMS_TYPE_FIELD), true) |
| 58 | LOCAL_CFLAGS += -DNEEDS_IMS_TYPE_FIELD |
| 59 | endif |
| 60 | |
Martin Bouchet | c3c6cee | 2017-09-23 04:57:42 -0300 | [diff] [blame] | 61 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/include |
Dheeraj Shetty | cc23101 | 2014-07-02 21:27:57 +0200 | [diff] [blame] | 62 | LOCAL_C_INCLUDES += external/nanopb-c |
Christopher N. Hesse | 022eadd | 2016-08-28 15:37:48 +0200 | [diff] [blame] | 63 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include |
| 64 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include |
Dheeraj Shetty | cc23101 | 2014-07-02 21:27:57 +0200 | [diff] [blame] | 65 | |
Daniel Hillenbrand | 601dc85 | 2013-07-07 10:06:59 +0200 | [diff] [blame] | 66 | LOCAL_MODULE:= libril |
Christopher N. Hesse | 6508486 | 2017-02-07 22:21:27 +0100 | [diff] [blame] | 67 | LOCAL_CLANG := true |
Sanket Padawe | 4877845 | 2016-03-07 18:09:55 -0800 | [diff] [blame] | 68 | LOCAL_SANITIZE := integer |
Daniel Hillenbrand | 601dc85 | 2013-07-07 10:06:59 +0200 | [diff] [blame] | 69 | |
Dheeraj Shetty | cc23101 | 2014-07-02 21:27:57 +0200 | [diff] [blame] | 70 | include $(BUILD_SHARED_LIBRARY) |
Daniel Hillenbrand | 601dc85 | 2013-07-07 10:06:59 +0200 | [diff] [blame] | 71 | |
Daniel Hillenbrand | 601dc85 | 2013-07-07 10:06:59 +0200 | [diff] [blame] | 72 | endif # BOARD_PROVIDES_LIBRIL |