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_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib
10LOCAL_MODULE_PATH_64 := $(TARGET_OUT_VENDOR)/lib64
11LOCAL_MODULE_TAGS := optional
12
13ifeq ($(TARGET_DEVICE),apq8026_lw)
14LOCAL_CFLAGS += -DPDK_FEATURE_SET
15else ifeq ($(BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET),true)
16LOCAL_CFLAGS += -DPDK_FEATURE_SET
17endif
18
19LOCAL_SHARED_LIBRARIES := \
20    liblog \
21    libutils \
22    libcutils \
23    libgps.utils \
24    libdl \
25    liblog \
26    libloc_pla
27
28LOCAL_SRC_FILES += \
29    LocApiBase.cpp \
30    LocAdapterBase.cpp \
31    ContextBase.cpp \
32    LocDualContext.cpp \
33    loc_core_log.cpp \
34    data-items/DataItemsFactoryProxy.cpp \
35    data-items/common/ClientIndex.cpp \
36    data-items/common/DataItemIndex.cpp \
37    data-items/common/IndexFactory.cpp \
38    SystemStatusOsObserver.cpp \
39    SystemStatus.cpp
40
41LOCAL_CFLAGS += \
42     -fno-short-enums \
43     -D_ANDROID_ \
44     -Wno-error \
45
46LOCAL_C_INCLUDES:= \
47    $(LOCAL_PATH)/data-items \
48    $(LOCAL_PATH)/data-items/common \
49    $(LOCAL_PATH)/observer \
50
51LOCAL_HEADER_LIBRARIES := \
52    libgps.utils_headers \
53    libloc_pla_headers \
54    liblocation_api_headers
55
56LOCAL_CFLAGS += $(GNSS_CFLAGS)
57
58include $(BUILD_SHARED_LIBRARY)
59
60include $(CLEAR_VARS)
61LOCAL_MODULE := libloc_core_headers
62LOCAL_EXPORT_C_INCLUDE_DIRS := \
63    $(LOCAL_PATH) \
64    $(LOCAL_PATH)/data-items \
65    $(LOCAL_PATH)/data-items/common \
66    $(LOCAL_PATH)/observer
67include $(BUILD_HEADER_LIBRARY)
68
69endif # not BUILD_TINY_ANDROID
70endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE
71