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 := qcom 13 14LOCAL_MODULE_TAGS := optional 15 16ifeq ($(TARGET_DEVICE),apq8026_lw) 17LOCAL_CFLAGS += -DPDK_FEATURE_SET 18else ifeq ($(BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET),true) 19LOCAL_CFLAGS += -DPDK_FEATURE_SET 20endif 21 22LOCAL_SHARED_LIBRARIES := \ 23 libutils \ 24 libcutils \ 25 libgps.utils \ 26 libdl \ 27 liblog 28 29LOCAL_SRC_FILES += \ 30 LocApiBase.cpp \ 31 LocAdapterBase.cpp \ 32 ContextBase.cpp \ 33 LocDualContext.cpp \ 34 loc_core_log.cpp 35 36LOCAL_CFLAGS += \ 37 -fno-short-enums \ 38 -D_ANDROID_ \ 39 -Wno-unused-parameter \ 40 -Wno-error \ 41 42LOCAL_C_INCLUDES:= \ 43 $(TARGET_OUT_HEADERS)/gps.utils \ 44 $(TARGET_OUT_HEADERS)/libflp 45 46LOCAL_HEADER_LIBRARIES := libutils_headers 47 48LOCAL_COPY_HEADERS_TO:= libloc_core/ 49LOCAL_COPY_HEADERS:= \ 50 LocApiBase.h \ 51 LocAdapterBase.h \ 52 ContextBase.h \ 53 LocDualContext.h \ 54 LBSProxyBase.h \ 55 UlpProxyBase.h \ 56 gps_extended_c.h \ 57 gps_extended.h \ 58 loc_core_log.h \ 59 LocAdapterProxyBase.h 60 61LOCAL_PRELINK_MODULE := false 62 63include $(BUILD_SHARED_LIBRARY) 64 65endif # not BUILD_TINY_ANDROID 66endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE 67