The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 1 | # Copyright 2006 The Android Open Source Project |
| 2 | |
| 3 | LOCAL_PATH:= $(call my-dir) |
| 4 | include $(CLEAR_VARS) |
| 5 | |
| 6 | LOCAL_SRC_FILES:= \ |
| 7 | ril.cpp \ |
Dheeraj Shetty | 27976c4 | 2014-07-02 21:27:57 +0200 | [diff] [blame] | 8 | ril_event.cpp\ |
| 9 | RilSocket.cpp \ |
| 10 | RilSapSocket.cpp \ |
Amit Mahajan | c2c7185 | 2016-11-29 16:48:54 -0800 | [diff] [blame^] | 11 | ril_service.cpp \ |
| 12 | sap_service.cpp |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 13 | |
| 14 | LOCAL_SHARED_LIBRARIES := \ |
Ying Wang | 5268826 | 2013-04-09 22:31:00 -0700 | [diff] [blame] | 15 | liblog \ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 16 | libutils \ |
Mathias Agopian | 8a3c48c | 2009-05-19 19:11:50 -0700 | [diff] [blame] | 17 | libbinder \ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 18 | libcutils \ |
Dima Zavin | 622bf2b | 2013-05-22 11:29:34 -0700 | [diff] [blame] | 19 | libhardware_legacy \ |
Dheeraj Shetty | 27976c4 | 2014-07-02 21:27:57 +0200 | [diff] [blame] | 20 | librilutils \ |
Amit Mahajan | 18fe36b | 2016-08-25 11:19:21 -0700 | [diff] [blame] | 21 | android.hardware.radio@1.0 \ |
| 22 | libhidlbase \ |
| 23 | libhidltransport \ |
| 24 | libhwbinder |
Dheeraj Shetty | 27976c4 | 2014-07-02 21:27:57 +0200 | [diff] [blame] | 25 | |
| 26 | LOCAL_STATIC_LIBRARIES := \ |
Vinit Deshpande | 1b1ec2d | 2015-04-15 13:31:05 -0700 | [diff] [blame] | 27 | libprotobuf-c-nano-enable_malloc \ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 28 | |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 29 | #LOCAL_CFLAGS := -DANDROID_MULTI_SIM -DDSDA_RILD1 |
Aurimas Liutikas | ce968ee | 2016-04-28 20:47:16 -0700 | [diff] [blame] | 30 | LOCAL_CFLAGS += -Wno-unused-parameter |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 31 | |
| 32 | ifeq ($(SIM_COUNT), 2) |
| 33 | LOCAL_CFLAGS += -DANDROID_SIM_COUNT_2 |
| 34 | endif |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 35 | |
Dheeraj Shetty | 27976c4 | 2014-07-02 21:27:57 +0200 | [diff] [blame] | 36 | LOCAL_C_INCLUDES += external/nanopb-c |
Dan Willemsen | f5d7ea3 | 2015-09-24 16:18:04 -0700 | [diff] [blame] | 37 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include |
Dan Willemsen | 3cf0775 | 2015-09-28 14:33:14 -0700 | [diff] [blame] | 38 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include |
Dheeraj Shetty | 27976c4 | 2014-07-02 21:27:57 +0200 | [diff] [blame] | 39 | |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 40 | LOCAL_MODULE:= libril |
Sanket Padawe | 2f0b452 | 2016-03-07 18:09:55 -0800 | [diff] [blame] | 41 | LOCAL_CLANG := true |
| 42 | LOCAL_SANITIZE := integer |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 43 | |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 44 | include $(BUILD_SHARED_LIBRARY) |
| 45 | |
| 46 | |
| 47 | # For RdoServD which needs a static library |
| 48 | # ========================================= |
| 49 | ifneq ($(ANDROID_BIONIC_TRANSITION),) |
| 50 | include $(CLEAR_VARS) |
| 51 | |
| 52 | LOCAL_SRC_FILES:= \ |
Dima Zavin | 622bf2b | 2013-05-22 11:29:34 -0700 | [diff] [blame] | 53 | ril.cpp |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 54 | |
| 55 | LOCAL_STATIC_LIBRARIES := \ |
| 56 | libutils_static \ |
Dima Zavin | 622bf2b | 2013-05-22 11:29:34 -0700 | [diff] [blame] | 57 | libcutils \ |
Dheeraj Shetty | 27976c4 | 2014-07-02 21:27:57 +0200 | [diff] [blame] | 58 | librilutils_static \ |
Vinit Deshpande | 1b1ec2d | 2015-04-15 13:31:05 -0700 | [diff] [blame] | 59 | libprotobuf-c-nano-enable_malloc |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 60 | |
Aurimas Liutikas | ce968ee | 2016-04-28 20:47:16 -0700 | [diff] [blame] | 61 | LOCAL_CFLAGS += -Wno-unused-parameter |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 62 | |
| 63 | LOCAL_MODULE:= libril_static |
| 64 | |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 65 | include $(BUILD_STATIC_LIBRARY) |
| 66 | endif # ANDROID_BIONIC_TRANSITION |