blob: 81c6238d3007eff98cf2437212f8656c235e6efe [file] [log] [blame]
Daniel Hillenbrand601dc852013-07-07 10:06:59 +02001# Copyright 2006 The Android Open Source Project
2
3ifeq ($(BOARD_PROVIDES_LIBRIL),true)
4
5LOCAL_PATH:= $(call my-dir)
6include $(CLEAR_VARS)
7
8LOCAL_SRC_FILES:= \
9 ril.cpp \
Dheeraj Shettycc231012014-07-02 21:27:57 +020010 ril_event.cpp\
11 RilSocket.cpp \
12 RilSapSocket.cpp \
Daniel Hillenbrand601dc852013-07-07 10:06:59 +020013
14LOCAL_SHARED_LIBRARIES := \
Ethan Chend6e30652013-08-04 22:49:56 -070015 liblog \
Daniel Hillenbrand601dc852013-07-07 10:06:59 +020016 libutils \
17 libbinder \
18 libcutils \
Andrew Jiangca4a9a02014-01-18 18:04:08 -050019 libhardware_legacy \
Dheeraj Shettycc231012014-07-02 21:27:57 +020020 librilutils \
21
22LOCAL_STATIC_LIBRARIES := \
Vinit Deshpande5257b142015-04-15 13:31:05 -070023 libprotobuf-c-nano-enable_malloc \
Daniel Hillenbrand601dc852013-07-07 10:06:59 +020024
Howard Sue32dbfd2015-01-07 15:55:57 +080025ifneq ($(filter xmm6262 xmm6360,$(BOARD_MODEM_TYPE)),)
Andreas Schneider8cb8de62015-04-07 18:58:14 +020026LOCAL_CFLAGS := -DMODEM_TYPE_XMM6262
Howard Sue32dbfd2015-01-07 15:55:57 +080027endif
28ifeq ($(BOARD_MODEM_TYPE),xmm6260)
Andreas Schneider8cb8de62015-04-07 18:58:14 +020029LOCAL_CFLAGS := -DMODEM_TYPE_XMM6260
Andreas Schneider29472682015-01-01 19:00:04 +010030endif
Christopher N. Hesse621e63e2016-02-22 21:57:39 +010031ifneq ($(filter m7450 mdm9x35 ss333 xmm7260,$(BOARD_MODEM_TYPE)),)
Brandon McAnsh12e3f262016-02-13 21:01:05 -050032LOCAL_CFLAGS := -DSAMSUNG_NEXT_GEN_MODEM
Sayd1052772015-12-13 17:25:01 +090033endif
Andreas Schneider29472682015-01-01 19:00:04 +010034
Andreas Schneider6d6daf92016-04-01 21:19:59 +020035ifeq ($(BOARD_MODEM_NEEDS_VIDEO_CALL_FIELD), true)
Christopher N. Hesse621e63e2016-02-22 21:57:39 +010036LOCAL_CFLAGS += -DNEEDS_VIDEO_CALL_FIELD
37endif
38
Andreas Blaesiusd82d1d62016-03-29 00:44:45 +020039LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
Dheeraj Shettycc231012014-07-02 21:27:57 +020040LOCAL_C_INCLUDES += $(TARGET_OUT_HEADER)/librilutils
41LOCAL_C_INCLUDES += external/nanopb-c
42
Daniel Hillenbrand601dc852013-07-07 10:06:59 +020043LOCAL_MODULE:= libril
44
Dheeraj Shettycc231012014-07-02 21:27:57 +020045LOCAL_COPY_HEADERS_TO := libril
46LOCAL_COPY_HEADERS := ril_ex.h
Daniel Hillenbrand601dc852013-07-07 10:06:59 +020047
Dheeraj Shettycc231012014-07-02 21:27:57 +020048include $(BUILD_SHARED_LIBRARY)
Daniel Hillenbrand601dc852013-07-07 10:06:59 +020049
50# For RdoServD which needs a static library
51# =========================================
52ifneq ($(ANDROID_BIONIC_TRANSITION),)
53include $(CLEAR_VARS)
54
55LOCAL_SRC_FILES:= \
56 ril.cpp
57
58LOCAL_STATIC_LIBRARIES := \
59 libutils_static \
Andrew Jiangca4a9a02014-01-18 18:04:08 -050060 libcutils \
Vinit Deshpande5257b142015-04-15 13:31:05 -070061 librilutils_static \
62 libprotobuf-c-nano-enable_malloc
Daniel Hillenbrand601dc852013-07-07 10:06:59 +020063
Howard Sue32dbfd2015-01-07 15:55:57 +080064ifneq ($(filter xmm6262 xmm6360,$(BOARD_MODEM_TYPE)),)
Andreas Schneider8cb8de62015-04-07 18:58:14 +020065LOCAL_CFLAGS := -DMODEM_TYPE_XMM6262
Howard Sue32dbfd2015-01-07 15:55:57 +080066endif
67ifeq ($(BOARD_MODEM_TYPE),xmm6260)
Andreas Schneider8cb8de62015-04-07 18:58:14 +020068LOCAL_CFLAGS := -DMODEM_TYPE_XMM6260
Howard Sue32dbfd2015-01-07 15:55:57 +080069endif
Daniel Hillenbrand601dc852013-07-07 10:06:59 +020070
71LOCAL_MODULE:= libril_static
72
Daniel Hillenbrand601dc852013-07-07 10:06:59 +020073include $(BUILD_STATIC_LIBRARY)
74endif # ANDROID_BIONIC_TRANSITION
75endif # BOARD_PROVIDES_LIBRIL