libdisplayconfig: Add vendor support

Change-Id: Id58a8ba23acb491a1f76a4a28d2db38e7468a63b
This commit is contained in:
Ramakant Singh
2019-04-05 19:16:41 +05:30
committed by Gerrit - the friendly Code Review server
parent 0de87d7ece
commit 15e82d6459
2 changed files with 20 additions and 26 deletions

View File

@@ -0,0 +1,20 @@
cc_library_shared {
name: "libdisplayconfig",
vendor_available: true,
cflags: [
"-Wno-sign-conversion",
"-DLOG_TAG=\"libdisplayconfig\"",
"-DDISPLAY_CONFIG_1_4"
],
shared_libs: [
"libhidlbase",
"libhidltransport",
"libutils",
"vendor.display.config@1.0",
"vendor.display.config@1.4"
],
header_libs: ["libhardware_headers", "display_intf_headers"],
srcs: ["DisplayConfig.cpp"],
export_header_lib_headers: ["display_intf_headers"],
}

View File

@@ -1,26 +0,0 @@
LOCAL_PATH := $(call my-dir)
display_config_version := $(shell \
if [ -d "$(TOP)/vendor/qcom/opensource/interfaces/display/config/1.4" ];\
then echo DISPLAY_CONFIG_1_4; fi)
include $(CLEAR_VARS)
LOCAL_MODULE := libdisplayconfig
LOCAL_MODULE_TAGS := optional
LOCAL_HEADER_LIBRARIES := display_headers
LOCAL_SRC_FILES := DisplayConfig.cpp
LOCAL_SHARED_LIBRARIES := libhidlbase libhidltransport libutils \
vendor.display.config@1.0
ifeq ($(display_config_version), DISPLAY_CONFIG_1_4)
LOCAL_SHARED_LIBRARIES += vendor.display.config@1.4
LOCAL_CFLAGS += -DDISPLAY_CONFIG_1_4
endif
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
ifeq ($(LLVM_SA), true)
LOCAL_CFLAGS += --compile-and-analyze --analyzer-perf --analyzer-Werror
endif
include $(BUILD_SHARED_LIBRARY)