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
|
|
|
|
2015-01-07 07:55:57 +00:00
|
|
|
ifneq ($(filter xmm6262 xmm6360,$(BOARD_MODEM_TYPE)),)
|
2015-04-07 16:58:14 +00:00
|
|
|
LOCAL_CFLAGS := -DMODEM_TYPE_XMM6262
|
2015-01-07 07:55:57 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(BOARD_MODEM_TYPE),xmm6260)
|
2015-04-07 16:58:14 +00:00
|
|
|
LOCAL_CFLAGS := -DMODEM_TYPE_XMM6260
|
2015-01-01 18:00:04 +00:00
|
|
|
endif
|
2016-04-14 16:42:26 +00:00
|
|
|
ifneq ($(filter m7450 mdm9x35 ss333 xmm7260 tss310,$(BOARD_MODEM_TYPE)),)
|
2016-02-14 02:01:05 +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 += $(TARGET_OUT_HEADER)/librilutils
|
|
|
|
LOCAL_C_INCLUDES += external/nanopb-c
|
|
|
|
|
2013-07-07 08:06:59 +00:00
|
|
|
LOCAL_MODULE:= libril
|
|
|
|
|
2014-07-02 19:27:57 +00:00
|
|
|
LOCAL_COPY_HEADERS_TO := libril
|
|
|
|
LOCAL_COPY_HEADERS := ril_ex.h
|
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
|
|
|
|
|
|
|
# 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
|
|
|
|
2015-01-07 07:55:57 +00:00
|
|
|
ifneq ($(filter xmm6262 xmm6360,$(BOARD_MODEM_TYPE)),)
|
2015-04-07 16:58:14 +00:00
|
|
|
LOCAL_CFLAGS := -DMODEM_TYPE_XMM6262
|
2015-01-07 07:55:57 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(BOARD_MODEM_TYPE),xmm6260)
|
2015-04-07 16:58:14 +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
|