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 := \ |
| 21 | libnanopb-c-2.8.0-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 |
| 31 | |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 32 | LOCAL_MODULE:= libril |
| 33 | |
Dheeraj Shetty | 27976c4 | 2014-07-02 21:27:57 +0200 | [diff] [blame^] | 34 | LOCAL_COPY_HEADERS_TO := libril |
| 35 | LOCAL_COPY_HEADERS := ril_ex.h |
| 36 | |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 37 | include $(BUILD_SHARED_LIBRARY) |
| 38 | |
| 39 | |
| 40 | # For RdoServD which needs a static library |
| 41 | # ========================================= |
| 42 | ifneq ($(ANDROID_BIONIC_TRANSITION),) |
| 43 | include $(CLEAR_VARS) |
| 44 | |
| 45 | LOCAL_SRC_FILES:= \ |
Dima Zavin | 622bf2b | 2013-05-22 11:29:34 -0700 | [diff] [blame] | 46 | ril.cpp |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 47 | |
| 48 | LOCAL_STATIC_LIBRARIES := \ |
| 49 | libutils_static \ |
Dima Zavin | 622bf2b | 2013-05-22 11:29:34 -0700 | [diff] [blame] | 50 | libcutils \ |
Dheeraj Shetty | 27976c4 | 2014-07-02 21:27:57 +0200 | [diff] [blame^] | 51 | librilutils_static \ |
| 52 | libnanopb-c-2.8.0-enable_malloc \ |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 53 | |
Wink Saville | 7f85680 | 2009-06-09 10:23:37 -0700 | [diff] [blame] | 54 | LOCAL_CFLAGS := |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 55 | |
| 56 | LOCAL_MODULE:= libril_static |
| 57 | |
The Android Open Source Project | 00f06fc | 2009-03-03 19:32:15 -0800 | [diff] [blame] | 58 | include $(BUILD_STATIC_LIBRARY) |
| 59 | endif # ANDROID_BIONIC_TRANSITION |