Daniel Hillenbrand | 601dc85 | 2013-07-07 10:06:59 +0200 | [diff] [blame] | 1 | # Copyright 2006 The Android Open Source Project |
| 2 | |
| 3 | ifeq ($(BOARD_PROVIDES_LIBRIL),true) |
| 4 | |
| 5 | LOCAL_PATH:= $(call my-dir) |
| 6 | include $(CLEAR_VARS) |
| 7 | |
| 8 | LOCAL_SRC_FILES:= \ |
| 9 | ril.cpp \ |
| 10 | ril_event.cpp |
| 11 | |
| 12 | LOCAL_SHARED_LIBRARIES := \ |
Ethan Chen | d6e3065 | 2013-08-04 22:49:56 -0700 | [diff] [blame] | 13 | liblog \ |
Daniel Hillenbrand | 601dc85 | 2013-07-07 10:06:59 +0200 | [diff] [blame] | 14 | libutils \ |
| 15 | libbinder \ |
| 16 | libcutils \ |
Andrew Jiang | ca4a9a0 | 2014-01-18 18:04:08 -0500 | [diff] [blame] | 17 | libhardware_legacy \ |
| 18 | librilutils |
Daniel Hillenbrand | 601dc85 | 2013-07-07 10:06:59 +0200 | [diff] [blame] | 19 | |
| 20 | LOCAL_CFLAGS := |
| 21 | |
Andreas Schneider | 2947268 | 2015-01-01 19:00:04 +0100 | [diff] [blame^] | 22 | ifeq ($(BOARD_MODEM_TYPE),xmm7260) |
| 23 | LOCAL_CFLAGS += -DMODEM_TYPE_XMM7260 |
| 24 | endif |
| 25 | |
Daniel Hillenbrand | 601dc85 | 2013-07-07 10:06:59 +0200 | [diff] [blame] | 26 | LOCAL_MODULE:= libril |
| 27 | |
Daniel Hillenbrand | 601dc85 | 2013-07-07 10:06:59 +0200 | [diff] [blame] | 28 | include $(BUILD_SHARED_LIBRARY) |
| 29 | |
| 30 | |
| 31 | # For RdoServD which needs a static library |
| 32 | # ========================================= |
| 33 | ifneq ($(ANDROID_BIONIC_TRANSITION),) |
| 34 | include $(CLEAR_VARS) |
| 35 | |
| 36 | LOCAL_SRC_FILES:= \ |
| 37 | ril.cpp |
| 38 | |
| 39 | LOCAL_STATIC_LIBRARIES := \ |
| 40 | libutils_static \ |
Andrew Jiang | ca4a9a0 | 2014-01-18 18:04:08 -0500 | [diff] [blame] | 41 | libcutils \ |
| 42 | librilutils_static |
Daniel Hillenbrand | 601dc85 | 2013-07-07 10:06:59 +0200 | [diff] [blame] | 43 | |
| 44 | LOCAL_CFLAGS := |
| 45 | |
| 46 | LOCAL_MODULE:= libril_static |
| 47 | |
Daniel Hillenbrand | 601dc85 | 2013-07-07 10:06:59 +0200 | [diff] [blame] | 48 | include $(BUILD_STATIC_LIBRARY) |
| 49 | endif # ANDROID_BIONIC_TRANSITION |
| 50 | endif # BOARD_PROVIDES_LIBRIL |