72fb75e332
Since these were combined into libhidlbase. Bug: 135686713 Test: build only (libhwbinder/libhidltransport are empty) Change-Id: Iba2cd20b8b20fac3e7564de6b853b475fd4ebd2a
54 lines
1.2 KiB
Makefile
54 lines
1.2 KiB
Makefile
# Copyright 2006 The Android Open Source Project
|
|
# Copyright 2018 The LineageOS Project
|
|
|
|
ifeq ($(BOARD_PROVIDES_LIBRIL),true)
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_VENDOR_MODULE := true
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
ril.cpp \
|
|
ril_event.cpp\
|
|
RilSapSocket.cpp \
|
|
ril_service.cpp \
|
|
sap_service.cpp
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
liblog \
|
|
libutils \
|
|
libcutils \
|
|
libhardware_legacy \
|
|
librilutils \
|
|
android.hardware.radio@1.0 \
|
|
android.hardware.radio@1.1 \
|
|
android.hardware.radio.deprecated@1.0 \
|
|
libhidlbase
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
libprotobuf-c-nano-enable_malloc-32bit \
|
|
|
|
LOCAL_CFLAGS += -Wall -Wextra -Wno-unused-parameter -Werror
|
|
LOCAL_CFLAGS += -DPB_FIELD_32BIT
|
|
|
|
ifeq ($(SIM_COUNT), 2)
|
|
LOCAL_CFLAGS += -DANDROID_MULTI_SIM -DDSDA_RILD1
|
|
LOCAL_CFLAGS += -DANDROID_SIM_COUNT_2
|
|
endif
|
|
|
|
ifneq ($(DISABLE_RILD_OEM_HOOK),)
|
|
LOCAL_CFLAGS += -DOEM_HOOK_DISABLED
|
|
endif
|
|
|
|
LOCAL_C_INCLUDES += external/nanopb-c
|
|
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include
|
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include
|
|
|
|
LOCAL_MODULE:= libril
|
|
LOCAL_SANITIZE := integer
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
endif # BOARD_PROVIDES_LIBRIL
|