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_VENDOR_MODULE := true
10LOCAL_MODULE_OWNER := qti
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    liblog \
23    libcutils \
24    libgps.utils \
25    libdl \
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    SystemStatus.cpp
35
36LOCAL_CFLAGS += \
37    -fno-short-enums \
38    -D_ANDROID_ \
39    -Wall \
40    -Werror \
41    -Wno-format \
42    -Wno-sign-compare \
43    -Wno-unneeded-internal-declaration \
44    -Wno-unused-const-variable \
45    -Wno-unused-parameter \
46    -Wno-delete-incomplete \
47    -Wno-switch \
48
49LOCAL_CPPFLAGS += \
50    -Wno-overloaded-virtual \
51    -Wno-reorder \
52
53LOCAL_C_INCLUDES:= \
54    $(TARGET_OUT_HEADERS)/gps.utils \
55    $(TARGET_OUT_HEADERS)/libloc_pla \
56    $(TARGET_OUT_HEADERS)/liblocation_api
57
58LOCAL_COPY_HEADERS_TO:= libloc_core/
59LOCAL_COPY_HEADERS:= \
60    LocApiBase.h \
61    LocAdapterBase.h \
62    ContextBase.h \
63    LocDualContext.h \
64    LBSProxyBase.h \
65    UlpProxyBase.h \
66    loc_core_log.h \
67    LocAdapterProxyBase.h \
68    SystemStatus.h
69
70LOCAL_PRELINK_MODULE := false
71
72include $(BUILD_SHARED_LIBRARY)
73
74endif # not BUILD_TINY_ANDROID
75endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE
76