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_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib 12LOCAL_MODULE_PATH_64 := $(TARGET_OUT_VENDOR)/lib64 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 libcutils \ 25 libgps.utils \ 26 libdl \ 27 liblog \ 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 data-items/DataItemsFactoryProxy.cpp \ 37 data-items/common/ClientIndex.cpp \ 38 data-items/common/DataItemIndex.cpp \ 39 data-items/common/IndexFactory.cpp \ 40 SystemStatusOsObserver.cpp \ 41 SystemStatus.cpp 42 43LOCAL_CFLAGS += \ 44 -fno-short-enums \ 45 -D_ANDROID_ \ 46 -Wno-error \ 47 48LOCAL_C_INCLUDES:= \ 49 $(LOCAL_PATH)/data-items \ 50 $(LOCAL_PATH)/data-items/common \ 51 $(LOCAL_PATH)/observer \ 52 53LOCAL_HEADER_LIBRARIES := \ 54 libgps.utils_headers \ 55 libloc_pla_headers \ 56 liblocation_api_headers 57 58LOCAL_CFLAGS += $(GNSS_CFLAGS) 59 60include $(BUILD_SHARED_LIBRARY) 61 62include $(CLEAR_VARS) 63LOCAL_MODULE := libloc_core_headers 64LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD 65LOCAL_LICENSE_CONDITIONS := notice 66LOCAL_EXPORT_C_INCLUDE_DIRS := \ 67 $(LOCAL_PATH) \ 68 $(LOCAL_PATH)/data-items \ 69 $(LOCAL_PATH)/data-items/common \ 70 $(LOCAL_PATH)/observer 71include $(BUILD_HEADER_LIBRARY) 72 73endif # not BUILD_TINY_ANDROID 74endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE 75