blob: e82921b1f5c6cbecd5ddb329e8959683dd2ee471 [file] [log] [blame]
Amit Shekhar580a3272017-04-05 15:50:21 -07001LOCAL_PATH := $(call my-dir)
2LOCAL_DIR_PATH:= $(call my-dir)
3include $(CLEAR_VARS)
4
Amit Shekhar580a3272017-04-05 15:50:21 -07005libplatformconfig-def := \
6 -g0 -O3 -fpic \
7 -Wno-deprecated-declarations -Werror \
8 -Wno-error=unused-variable \
9 -w -Wall -Wextra\
10 -fexceptions \
11 -Wno-missing-field-initializers \
12 -D_ANDROID_
13
14COMMON_CFLAGS := -O3
15
Amit Shekhar580a3272017-04-05 15:50:21 -070016LOCAL_CFLAGS := $(COMMON_CFLAGS) $(libplatformconfig-def)
17
Mihir Ganu4124d962019-07-23 22:53:06 -070018ifeq ($(TARGET_ENABLE_VIDC_INTSAN), true)
Mihir Ganua69c7342019-06-07 15:31:37 -070019LOCAL_SANITIZE := integer_overflow
20ifeq ($(TARGET_ENABLE_VIDC_INTSAN_DIAG), true)
21$(warning INTSAN_DIAG_ENABLED)
22LOCAL_SANITIZE_DIAG := integer_overflow
23endif
Mihir Ganu4124d962019-07-23 22:53:06 -070024endif
Mihir Ganua69c7342019-06-07 15:31:37 -070025
Amit Shekhar580a3272017-04-05 15:50:21 -070026LOCAL_SHARED_LIBRARIES += \
27 libexpat \
28 liblog \
29 libcutils \
30 libutils
31
Amit Shekhar580a3272017-04-05 15:50:21 -070032LOCAL_C_INCLUDES += \
33 external/expat/lib \
34 $(LOCAL_PATH)/../mm-core/inc \
Amit Shekhar580a3272017-04-05 15:50:21 -070035
36LOCAL_SRC_FILES := PlatformConfig.cpp
37LOCAL_SRC_FILES += ConfigParser.cpp
38
Li Suna808ad02019-02-14 11:37:55 -050039####################
40ENABLE_CONFIGSTORE = true
41ifeq ($(ENABLE_CONFIGSTORE),true)
42LOCAL_SRC_FILES += ConfigStore.cpp
43LOCAL_CFLAGS += -DENABLE_CONFIGSTORE
44LOCAL_SHARED_LIBRARIES += libhidlbase
45LOCAL_SHARED_LIBRARIES += vendor.qti.hardware.capabilityconfigstore@1.0
46endif
47####################
48
Amit Shekhar580a3272017-04-05 15:50:21 -070049LOCAL_MODULE := libplatformconfig
50LOCAL_VENDOR_MODULE := true
51
Amit Shekhar580a3272017-04-05 15:50:21 -070052include $(BUILD_SHARED_LIBRARY)