2013-07-07 08:06:59 +00:00
|
|
|
# Copyright 2006 The Android Open Source Project
|
|
|
|
|
2017-09-23 07:57:42 +00:00
|
|
|
ifeq ($(BOARD_PROVIDES_LIBRIL),true)
|
2013-07-07 08:06:59 +00:00
|
|
|
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2017-09-23 07:54:37 +00:00
|
|
|
LOCAL_VENDOR_MODULE := true
|
|
|
|
|
2013-07-07 08:06:59 +00:00
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
ril.cpp \
|
2014-07-02 19:27:57 +00:00
|
|
|
ril_event.cpp\
|
|
|
|
RilSapSocket.cpp \
|
2017-09-23 07:54:37 +00:00
|
|
|
ril_service.cpp \
|
|
|
|
sap_service.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 \
|
|
|
|
libcutils \
|
2014-01-18 23:04:08 +00:00
|
|
|
libhardware_legacy \
|
2014-07-02 19:27:57 +00:00
|
|
|
librilutils \
|
2017-09-23 07:54:37 +00:00
|
|
|
android.hardware.radio@1.0 \
|
|
|
|
android.hardware.radio.deprecated@1.0 \
|
|
|
|
libhidlbase \
|
|
|
|
libhidltransport \
|
|
|
|
libhwbinder
|
2014-07-02 19:27:57 +00:00
|
|
|
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
2015-04-15 20:31:05 +00:00
|
|
|
libprotobuf-c-nano-enable_malloc \
|
2013-07-07 08:06:59 +00:00
|
|
|
|
2018-08-13 20:39:50 +00:00
|
|
|
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-error
|
2017-10-20 16:34:57 +00:00
|
|
|
|
2017-02-07 21:21:27 +00:00
|
|
|
ifeq ($(SIM_COUNT), 2)
|
2017-09-23 07:54:37 +00:00
|
|
|
LOCAL_CFLAGS += -DANDROID_MULTI_SIM -DDSDA_RILD1
|
2017-02-07 21:21:27 +00:00
|
|
|
LOCAL_CFLAGS += -DANDROID_SIM_COUNT_2
|
|
|
|
endif
|
|
|
|
|
2017-09-23 07:57:42 +00:00
|
|
|
ifneq ($(filter xmm6262 xmm6360,$(BOARD_MODEM_TYPE)),)
|
|
|
|
LOCAL_CFLAGS += -DMODEM_TYPE_XMM6262
|
|
|
|
endif
|
|
|
|
ifeq ($(BOARD_MODEM_TYPE),xmm6260)
|
|
|
|
LOCAL_CFLAGS += -DMODEM_TYPE_XMM6260
|
|
|
|
endif
|
|
|
|
ifneq ($(filter m7450 mdm9x35 ss333 tss310 xmm7260,$(BOARD_MODEM_TYPE)),)
|
|
|
|
LOCAL_CFLAGS += -DSAMSUNG_NEXT_GEN_MODEM
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BOARD_MODEM_NEEDS_VIDEO_CALL_FIELD), true)
|
|
|
|
LOCAL_CFLAGS += -DNEEDS_VIDEO_CALL_FIELD
|
|
|
|
endif
|
|
|
|
|
2018-02-13 22:51:12 +00:00
|
|
|
ifeq ($(BOARD_NEEDS_ROAMING_PROTOCOL_FIELD), true)
|
|
|
|
LOCAL_CFLAGS += -DNEEDS_ROAMING_PROTOCOL_FIELD
|
|
|
|
endif
|
|
|
|
|
2018-02-16 11:40:06 +00:00
|
|
|
ifeq ($(BOARD_NEEDS_IMS_TYPE_FIELD), true)
|
|
|
|
LOCAL_CFLAGS += -DNEEDS_IMS_TYPE_FIELD
|
|
|
|
endif
|
|
|
|
|
2017-09-23 07:57:42 +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
|
|
|
|
|
|
|
endif # BOARD_PROVIDES_LIBRIL
|