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