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 \ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 11 | |
| 12 | LOCAL_SHARED_LIBRARIES := \ |
Ying Wang | 5268826 | 2013-04-09 22:31:00 -0700 | [diff] [blame] | 13 | liblog \ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 14 | libutils \ |
Mathias Agopian | 8a3c48c | 2009-05-19 19:11:50 -0700 | [diff] [blame] | 15 | libbinder \ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 16 | libcutils \ |
Dima Zavin | 622bf2b | 2013-05-22 11:29:34 -0700 | [diff] [blame] | 17 | libhardware_legacy \ |
Dheeraj Shetty | 27976c4 | 2014-07-02 21:27:57 +0200 | [diff] [blame] | 18 | librilutils \ |
| 19 | |
| 20 | LOCAL_STATIC_LIBRARIES := \ |
Vinit Deshpande | 1b1ec2d | 2015-04-15 13:31:05 -0700 | [diff] [blame] | 21 | libprotobuf-c-nano-enable_malloc \ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 22 | |
Etan Cohen | d365219 | 2014-06-20 08:28:44 -0700 | [diff] [blame] | 23 | #LOCAL_CFLAGS := -DANDROID_MULTI_SIM -DDSDA_RILD1 |
| 24 | |
| 25 | ifeq ($(SIM_COUNT), 2) |
| 26 | LOCAL_CFLAGS += -DANDROID_SIM_COUNT_2 |
| 27 | endif |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 28 | |
Dheeraj Shetty | 27976c4 | 2014-07-02 21:27:57 +0200 | [diff] [blame] | 29 | LOCAL_C_INCLUDES += $(TARGET_OUT_HEADER)/librilutils |
| 30 | LOCAL_C_INCLUDES += external/nanopb-c |
Dan Willemsen | f5d7ea3 | 2015-09-24 16:18:04 -0700 | [diff] [blame] | 31 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include |
Dan Willemsen | 3cf0775 | 2015-09-28 14:33:14 -0700 | [diff] [blame^] | 32 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include |
Dheeraj Shetty | 27976c4 | 2014-07-02 21:27:57 +0200 | [diff] [blame] | 33 | |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 34 | LOCAL_MODULE:= libril |
| 35 | |
Dheeraj Shetty | 27976c4 | 2014-07-02 21:27:57 +0200 | [diff] [blame] | 36 | LOCAL_COPY_HEADERS_TO := libril |
| 37 | LOCAL_COPY_HEADERS := ril_ex.h |
| 38 | |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 39 | include $(BUILD_SHARED_LIBRARY) |
| 40 | |
| 41 | |
| 42 | # For RdoServD which needs a static library |
| 43 | # ========================================= |
| 44 | ifneq ($(ANDROID_BIONIC_TRANSITION),) |
| 45 | include $(CLEAR_VARS) |
| 46 | |
| 47 | LOCAL_SRC_FILES:= \ |
Dima Zavin | 622bf2b | 2013-05-22 11:29:34 -0700 | [diff] [blame] | 48 | ril.cpp |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 49 | |
| 50 | LOCAL_STATIC_LIBRARIES := \ |
| 51 | libutils_static \ |
Dima Zavin | 622bf2b | 2013-05-22 11:29:34 -0700 | [diff] [blame] | 52 | libcutils \ |
Dheeraj Shetty | 27976c4 | 2014-07-02 21:27:57 +0200 | [diff] [blame] | 53 | librilutils_static \ |
Vinit Deshpande | 1b1ec2d | 2015-04-15 13:31:05 -0700 | [diff] [blame] | 54 | libprotobuf-c-nano-enable_malloc |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 55 | |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 56 | LOCAL_CFLAGS := |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 57 | |
| 58 | LOCAL_MODULE:= libril_static |
| 59 | |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 60 | include $(BUILD_STATIC_LIBRARY) |
| 61 | endif # ANDROID_BIONIC_TRANSITION |