2013-07-07 08:06:59 +00:00
|
|
|
# Copyright 2006 The Android Open Source Project
|
|
|
|
|
|
|
|
ifeq ($(BOARD_PROVIDES_LIBRIL),true)
|
|
|
|
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
ril.cpp \
|
2014-07-02 19:27:57 +00:00
|
|
|
ril_event.cpp\
|
|
|
|
RilSocket.cpp \
|
|
|
|
RilSapSocket.cpp \
|
2013-07-07 08:06:59 +00:00
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
2013-08-05 05:49:56 +00:00
|
|
|
liblog \
|
2013-07-07 08:06:59 +00:00
|
|
|
libutils \
|
|
|
|
libbinder \
|
|
|
|
libcutils \
|
2014-01-18 23:04:08 +00:00
|
|
|
libhardware_legacy \
|
2014-07-02 19:27:57 +00:00
|
|
|
librilutils \
|
|
|
|
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
2015-04-15 20:31:05 +00:00
|
|
|
libprotobuf-c-nano-enable_malloc \
|
2013-07-07 08:06:59 +00:00
|
|
|
|
2017-10-20 16:34:57 +00:00
|
|
|
LOCAL_CFLAGS :=
|
|
|
|
|
2017-02-07 21:21:27 +00:00
|
|
|
ifeq ($(SIM_COUNT), 2)
|
2017-10-20 16:34:57 +00:00
|
|
|
LOCAL_CFLAGS += -DANDROID_MULTI_SIM
|
2017-02-07 21:21:27 +00:00
|
|
|
LOCAL_CFLAGS += -DANDROID_SIM_COUNT_2
|
|
|
|
endif
|
|
|
|
|
2015-01-07 07:55:57 +00:00
|
|
|
ifneq ($(filter xmm6262 xmm6360,$(BOARD_MODEM_TYPE)),)
|
2017-10-20 16:34:57 +00:00
|
|
|
LOCAL_CFLAGS += -DMODEM_TYPE_XMM6262
|
2015-01-07 07:55:57 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(BOARD_MODEM_TYPE),xmm6260)
|
2017-10-20 16:34:57 +00:00
|
|
|
LOCAL_CFLAGS += -DMODEM_TYPE_XMM6260
|
2015-01-01 18:00:04 +00:00
|
|
|
endif
|
2016-04-15 16:38:35 +00:00
|
|
|
ifneq ($(filter m7450 mdm9x35 ss333 tss310 xmm7260,$(BOARD_MODEM_TYPE)),)
|
2017-10-20 16:34:57 +00:00
|
|
|
LOCAL_CFLAGS += -DSAMSUNG_NEXT_GEN_MODEM
|
2015-12-13 08:25:01 +00:00
|
|
|
endif
|
2015-01-01 18:00:04 +00:00
|
|
|
|
2016-04-01 19:19:59 +00:00
|
|
|
ifeq ($(BOARD_MODEM_NEEDS_VIDEO_CALL_FIELD), true)
|
2016-02-22 20:57:39 +00:00
|
|
|
LOCAL_CFLAGS += -DNEEDS_VIDEO_CALL_FIELD
|
|
|
|
endif
|
|
|
|
|
2016-03-28 22:44:45 +00:00
|
|
|
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
|
2014-07-02 19:27:57 +00:00
|
|
|
LOCAL_C_INCLUDES += external/nanopb-c
|
2016-08-28 13:37:48 +00:00
|
|
|
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include
|
|
|
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include
|
2014-07-02 19:27:57 +00:00
|
|
|
|
2013-07-07 08:06:59 +00:00
|
|
|
LOCAL_MODULE:= libril
|
2017-02-07 21:21:27 +00:00
|
|
|
LOCAL_CLANG := true
|
2016-03-08 02:09:55 +00:00
|
|
|
LOCAL_SANITIZE := integer
|
2013-07-07 08:06:59 +00:00
|
|
|
|
2014-07-02 19:27:57 +00:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
2013-07-07 08:06:59 +00:00
|
|
|
|
2017-02-07 21:21:27 +00:00
|
|
|
|
2013-07-07 08:06:59 +00:00
|
|
|
# For RdoServD which needs a static library
|
|
|
|
# =========================================
|
|
|
|
ifneq ($(ANDROID_BIONIC_TRANSITION),)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
ril.cpp
|
|
|
|
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
|
|
libutils_static \
|
2014-01-18 23:04:08 +00:00
|
|
|
libcutils \
|
2015-04-15 20:31:05 +00:00
|
|
|
librilutils_static \
|
|
|
|
libprotobuf-c-nano-enable_malloc
|
2013-07-07 08:06:59 +00:00
|
|
|
|
2017-02-07 21:21:27 +00:00
|
|
|
LOCAL_CFLAGS :=
|
|
|
|
|
2015-01-07 07:55:57 +00:00
|
|
|
ifneq ($(filter xmm6262 xmm6360,$(BOARD_MODEM_TYPE)),)
|
2017-02-07 21:21:27 +00:00
|
|
|
LOCAL_CFLAGS += -DMODEM_TYPE_XMM6262
|
2015-01-07 07:55:57 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(BOARD_MODEM_TYPE),xmm6260)
|
2017-02-07 21:21:27 +00:00
|
|
|
LOCAL_CFLAGS += -DMODEM_TYPE_XMM6260
|
2015-01-07 07:55:57 +00:00
|
|
|
endif
|
2013-07-07 08:06:59 +00:00
|
|
|
|
|
|
|
LOCAL_MODULE:= libril_static
|
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
endif # ANDROID_BIONIC_TRANSITION
|
|
|
|
endif # BOARD_PROVIDES_LIBRIL
|