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
10## Libs
11LOCAL_SHARED_LIBRARIES := \
12    libutils \
13    libcutils \
14    liblog \
15    libloc_pla \
16    libprocessgroup
17
18LOCAL_SRC_FILES += \
19    loc_log.cpp \
20    loc_cfg.cpp \
21    msg_q.c \
22    linked_list.c \
23    loc_target.cpp \
24    platform_lib_abstractions/elapsed_millis_since_boot.cpp \
25    LocHeap.cpp \
26    LocTimer.cpp \
27    LocThread.cpp \
28    MsgTask.cpp \
29    loc_misc_utils.cpp \
30    loc_nmea.cpp
31
32# Flag -std=c++11 is not accepted by compiler when LOCAL_CLANG is set to true
33LOCAL_CFLAGS += \
34     -fno-short-enums \
35     -D_ANDROID_
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    $(TARGET_OUT_HEADERS)/libloc_pla \
46    $(TARGET_OUT_HEADERS)/liblocation_api \
47
48LOCAL_COPY_HEADERS_TO:= gps.utils/
49LOCAL_COPY_HEADERS:= \
50   loc_log.h \
51   loc_cfg.h \
52   log_util.h \
53   linked_list.h \
54   msg_q.h \
55   MsgTask.h \
56   LocHeap.h \
57   LocThread.h \
58   LocTimer.h \
59   loc_target.h \
60   loc_timer.h \
61   LocSharedLock.h \
62   loc_misc_utils.h \
63   loc_nmea.h \
64   gps_extended_c.h \
65   gps_extended.h \
66   loc_gps.h
67
68LOCAL_MODULE := libgps.utils
69LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
70LOCAL_LICENSE_CONDITIONS := notice
71LOCAL_VENDOR_MODULE := true
72LOCAL_MODULE_OWNER := qti
73LOCAL_MODULE_TAGS := optional
74
75LOCAL_PRELINK_MODULE := false
76
77include $(BUILD_SHARED_LIBRARY)
78
79include $(addsuffix /Android.mk, $(addprefix $(LOCAL_PATH)/, platform_lib_abstractions))
80endif # not BUILD_TINY_ANDROID
81endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE
82