1LOCAL_PATH := $(call my-dir) 2LOCAL_DIR_PATH:= $(call my-dir) 3include $(CLEAR_VARS) 4 5LOCAL_COPY_HEADERS_TO := libplatformconfig 6 7libplatformconfig-def := \ 8 -g0 -O3 -fpic \ 9 -Wno-deprecated-declarations -Werror \ 10 -Wno-error=unused-variable \ 11 -w -Wall -Wextra\ 12 -fexceptions \ 13 -Wno-missing-field-initializers \ 14 -D_ANDROID_ 15 16COMMON_CFLAGS := -O3 17 18include $(BUILD_COPY_HEADERS) 19 20LOCAL_CFLAGS := $(COMMON_CFLAGS) $(libplatformconfig-def) 21 22LOCAL_SHARED_LIBRARIES += \ 23 libexpat \ 24 liblog \ 25 libcutils \ 26 libutils 27 28LOCAL_STATIC_LIBRARIES := libOmxVidcCommon 29 30LOCAL_C_INCLUDES += \ 31 external/expat/lib \ 32 $(LOCAL_PATH)/../mm-core/inc \ 33 $(LOCAL_PATH)/../mm-video-v4l2/vidc/common/inc/ \ 34 35LOCAL_SRC_FILES := PlatformConfig.cpp 36LOCAL_SRC_FILES += ConfigParser.cpp 37 38#################### 39ENABLE_CONFIGSTORE = true 40ifeq ($(ENABLE_CONFIGSTORE),true) 41LOCAL_SRC_FILES += ConfigStore.cpp 42LOCAL_CFLAGS += -DENABLE_CONFIGSTORE 43LOCAL_SHARED_LIBRARIES += libhidlbase 44LOCAL_SHARED_LIBRARIES += vendor.qti.hardware.capabilityconfigstore@1.0 45endif 46#################### 47 48LOCAL_MODULE := libplatformconfig 49LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD 50LOCAL_LICENSE_CONDITIONS := notice 51LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../LICENSE 52LOCAL_VENDOR_MODULE := true 53 54include $(BUILD_SHARED_LIBRARY) 55