1ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),)
2ifneq ($(BUILD_TINY_ANDROID),true)
3#Compile this library only for builds with the latest modem image
4
5LOCAL_PATH := $(call my-dir)
6
7include $(CLEAR_VARS)
8
9## Libs
10LOCAL_SHARED_LIBRARIES := \
11    libutils \
12    libcutils \
13    liblog \
14    libprocessgroup
15
16LOCAL_HEADER_LIBRARIES := \
17    libhardware_headers
18
19LOCAL_SRC_FILES += \
20    loc_log.cpp \
21    loc_cfg.cpp \
22    msg_q.c \
23    linked_list.c \
24    loc_target.cpp \
25    platform_lib_abstractions/elapsed_millis_since_boot.cpp \
26    LocHeap.cpp \
27    LocTimer.cpp \
28    LocThread.cpp \
29    MsgTask.cpp \
30    loc_misc_utils.cpp
31
32LOCAL_CFLAGS += \
33     -fno-short-enums \
34     -D_ANDROID_ \
35     -Wno-error \
36
37ifeq ($(TARGET_BUILD_VARIANT),user)
38   LOCAL_CFLAGS += -DTARGET_BUILD_VARIANT_USER
39endif
40
41LOCAL_LDFLAGS += -Wl,--export-dynamic
42
43## Includes
44LOCAL_C_INCLUDES:= \
45    $(LOCAL_PATH)/platform_lib_abstractions
46
47
48LOCAL_MODULE := libgps.utils
49
50LOCAL_MODULE_TAGS := optional
51
52LOCAL_MODULE_OWNER := qcom
53
54LOCAL_PROPRIETARY_MODULE := true
55
56LOCAL_PRELINK_MODULE := false
57
58include $(BUILD_SHARED_LIBRARY)
59
60include $(CLEAR_VARS)
61LOCAL_MODULE := libgps.utils_headers
62LOCAL_HEADER_LIBRARIES := libhardware_headers
63LOCAL_EXPORT_HEADER_LIBRARY_HEADERS := libhardware_headers
64LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) $(LOCAL_PATH)/platform_lib_abstractions
65include $(BUILD_HEADER_LIBRARY)
66
67endif # not BUILD_TINY_ANDROID
68endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE
69