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 | |
Steven Moreland | 8265b40 | 2017-04-07 13:39:55 -0700 | [diff] [blame] | 6 | LOCAL_VENDOR_MODULE := true |
| 7 | |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 8 | LOCAL_SRC_FILES:= \ |
| 9 | ril.cpp \ |
Dheeraj Shetty | 27976c4 | 2014-07-02 21:27:57 +0200 | [diff] [blame] | 10 | ril_event.cpp\ |
Dheeraj Shetty | 27976c4 | 2014-07-02 21:27:57 +0200 | [diff] [blame] | 11 | RilSapSocket.cpp \ |
Amit Mahajan | c2c7185 | 2016-11-29 16:48:54 -0800 | [diff] [blame] | 12 | ril_service.cpp \ |
| 13 | sap_service.cpp |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 14 | |
| 15 | LOCAL_SHARED_LIBRARIES := \ |
Ying Wang | 5268826 | 2013-04-09 22:31:00 -0700 | [diff] [blame] | 16 | liblog \ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 17 | libutils \ |
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 \ |
pkanwar | db8e094 | 2017-03-17 12:49:34 -0700 | [diff] [blame] | 22 | android.hardware.radio@1.1 \ |
Amit Mahajan | abd7275 | 2017-02-13 17:43:04 -0800 | [diff] [blame] | 23 | android.hardware.radio.deprecated@1.0 \ |
Amit Mahajan | 18fe36b | 2016-08-25 11:19:21 -0700 | [diff] [blame] | 24 | libhidlbase \ |
| 25 | libhidltransport \ |
| 26 | libhwbinder |
Dheeraj Shetty | 27976c4 | 2014-07-02 21:27:57 +0200 | [diff] [blame] | 27 | |
| 28 | LOCAL_STATIC_LIBRARIES := \ |
Vinit Deshpande | 1b1ec2d | 2015-04-15 13:31:05 -0700 | [diff] [blame] | 29 | libprotobuf-c-nano-enable_malloc \ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 30 | |
Tomasz Wasilczyk | 88961c2 | 2017-04-11 09:21:08 -0700 | [diff] [blame] | 31 | LOCAL_CFLAGS += -Wall -Wextra -Wno-unused-parameter -Werror |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 32 | |
| 33 | ifeq ($(SIM_COUNT), 2) |
Amit Mahajan | b3a11bb | 2017-05-15 16:41:44 -0700 | [diff] [blame^] | 34 | LOCAL_CFLAGS += -DANDROID_MULTI_SIM -DDSDA_RILD1 |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 35 | LOCAL_CFLAGS += -DANDROID_SIM_COUNT_2 |
| 36 | endif |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 37 | |
Dheeraj Shetty | 27976c4 | 2014-07-02 21:27:57 +0200 | [diff] [blame] | 38 | LOCAL_C_INCLUDES += external/nanopb-c |
Dan Willemsen | f5d7ea3 | 2015-09-24 16:18:04 -0700 | [diff] [blame] | 39 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include |
Dan Willemsen | 3cf0775 | 2015-09-28 14:33:14 -0700 | [diff] [blame] | 40 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include |
Dheeraj Shetty | 27976c4 | 2014-07-02 21:27:57 +0200 | [diff] [blame] | 41 | |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 42 | LOCAL_MODULE:= libril |
Sanket Padawe | 2f0b452 | 2016-03-07 18:09:55 -0800 | [diff] [blame] | 43 | LOCAL_CLANG := true |
| 44 | LOCAL_SANITIZE := integer |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 45 | |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 46 | include $(BUILD_SHARED_LIBRARY) |
| 47 | |