Amit Shekhar | 580a327 | 2017-04-05 15:50:21 -0700 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | LOCAL_DIR_PATH:= $(call my-dir) |
| 3 | include $(CLEAR_VARS) |
| 4 | |
Amit Shekhar | 580a327 | 2017-04-05 15:50:21 -0700 | [diff] [blame] | 5 | libplatformconfig-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 | |
| 14 | COMMON_CFLAGS := -O3 |
| 15 | |
Amit Shekhar | 580a327 | 2017-04-05 15:50:21 -0700 | [diff] [blame] | 16 | LOCAL_CFLAGS := $(COMMON_CFLAGS) $(libplatformconfig-def) |
| 17 | |
Mihir Ganu | 4124d96 | 2019-07-23 22:53:06 -0700 | [diff] [blame] | 18 | ifeq ($(TARGET_ENABLE_VIDC_INTSAN), true) |
Mihir Ganu | a69c734 | 2019-06-07 15:31:37 -0700 | [diff] [blame] | 19 | LOCAL_SANITIZE := integer_overflow |
| 20 | ifeq ($(TARGET_ENABLE_VIDC_INTSAN_DIAG), true) |
| 21 | $(warning INTSAN_DIAG_ENABLED) |
| 22 | LOCAL_SANITIZE_DIAG := integer_overflow |
| 23 | endif |
Mihir Ganu | 4124d96 | 2019-07-23 22:53:06 -0700 | [diff] [blame] | 24 | endif |
Mihir Ganu | a69c734 | 2019-06-07 15:31:37 -0700 | [diff] [blame] | 25 | |
Amit Shekhar | 580a327 | 2017-04-05 15:50:21 -0700 | [diff] [blame] | 26 | LOCAL_SHARED_LIBRARIES += \ |
| 27 | libexpat \ |
| 28 | liblog \ |
| 29 | libcutils \ |
| 30 | libutils |
| 31 | |
Amit Shekhar | 580a327 | 2017-04-05 15:50:21 -0700 | [diff] [blame] | 32 | LOCAL_C_INCLUDES += \ |
| 33 | external/expat/lib \ |
| 34 | $(LOCAL_PATH)/../mm-core/inc \ |
Amit Shekhar | 580a327 | 2017-04-05 15:50:21 -0700 | [diff] [blame] | 35 | |
| 36 | LOCAL_SRC_FILES := PlatformConfig.cpp |
| 37 | LOCAL_SRC_FILES += ConfigParser.cpp |
| 38 | |
Li Sun | a808ad0 | 2019-02-14 11:37:55 -0500 | [diff] [blame] | 39 | #################### |
| 40 | ENABLE_CONFIGSTORE = true |
| 41 | ifeq ($(ENABLE_CONFIGSTORE),true) |
| 42 | LOCAL_SRC_FILES += ConfigStore.cpp |
| 43 | LOCAL_CFLAGS += -DENABLE_CONFIGSTORE |
| 44 | LOCAL_SHARED_LIBRARIES += libhidlbase |
| 45 | LOCAL_SHARED_LIBRARIES += vendor.qti.hardware.capabilityconfigstore@1.0 |
| 46 | endif |
| 47 | #################### |
| 48 | |
Amit Shekhar | 580a327 | 2017-04-05 15:50:21 -0700 | [diff] [blame] | 49 | LOCAL_MODULE := libplatformconfig |
| 50 | LOCAL_VENDOR_MODULE := true |
| 51 | |
Amit Shekhar | 580a327 | 2017-04-05 15:50:21 -0700 | [diff] [blame] | 52 | include $(BUILD_SHARED_LIBRARY) |