1ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),) 2ifneq ($(BUILD_TINY_ANDROID),true) 3 4LOCAL_PATH := $(call my-dir) 5 6include $(CLEAR_VARS) 7 8LOCAL_MODULE := libloc_core 9LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD 10LOCAL_LICENSE_CONDITIONS := notice 11LOCAL_VENDOR_MODULE := true 12LOCAL_MODULE_OWNER := qti 13LOCAL_MODULE_TAGS := optional 14 15ifeq ($(TARGET_DEVICE),apq8026_lw) 16LOCAL_CFLAGS += -DPDK_FEATURE_SET 17else ifeq ($(BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET),true) 18LOCAL_CFLAGS += -DPDK_FEATURE_SET 19endif 20 21LOCAL_SHARED_LIBRARIES := \ 22 liblog \ 23 libutils \ 24 liblog \ 25 libcutils \ 26 libgps.utils \ 27 libdl \ 28 libloc_pla 29 30LOCAL_SRC_FILES += \ 31 LocApiBase.cpp \ 32 LocAdapterBase.cpp \ 33 ContextBase.cpp \ 34 LocDualContext.cpp \ 35 loc_core_log.cpp \ 36 SystemStatus.cpp 37 38LOCAL_CFLAGS += \ 39 -fno-short-enums \ 40 -D_ANDROID_ \ 41 -Wall \ 42 -Werror \ 43 -Wno-format \ 44 -Wno-sign-compare \ 45 -Wno-unneeded-internal-declaration \ 46 -Wno-unused-const-variable \ 47 -Wno-unused-parameter \ 48 -Wno-delete-incomplete \ 49 -Wno-switch \ 50 51LOCAL_CPPFLAGS += \ 52 -Wno-overloaded-virtual \ 53 -Wno-reorder \ 54 55LOCAL_C_INCLUDES:= \ 56 $(TARGET_OUT_HEADERS)/gps.utils \ 57 $(TARGET_OUT_HEADERS)/libloc_pla \ 58 $(TARGET_OUT_HEADERS)/liblocation_api 59 60LOCAL_COPY_HEADERS_TO:= libloc_core/ 61LOCAL_COPY_HEADERS:= \ 62 LocApiBase.h \ 63 LocAdapterBase.h \ 64 ContextBase.h \ 65 LocDualContext.h \ 66 LBSProxyBase.h \ 67 UlpProxyBase.h \ 68 loc_core_log.h \ 69 LocAdapterProxyBase.h \ 70 SystemStatus.h 71 72LOCAL_PRELINK_MODULE := false 73 74include $(BUILD_SHARED_LIBRARY) 75 76endif # not BUILD_TINY_ANDROID 77endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE 78