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_C_INCLUDES += \ 29 external/expat/lib \ 30 $(LOCAL_PATH)/../mm-core/inc \ 31 $(LOCAL_PATH)/../mm-video-v4l2/vidc/common/inc/ \ 32 33LOCAL_SRC_FILES := PlatformConfig.cpp 34LOCAL_SRC_FILES += ConfigParser.cpp 35 36LOCAL_MODULE := libplatformconfig 37LOCAL_VENDOR_MODULE := true 38 39include $(BUILD_SHARED_LIBRARY) 40