blob: 0f99907e316892637c79fa0c334a898108235e18 [file] [log] [blame]
Zvikomborero VIncent Zvikaramba5b852f62016-07-22 01:37:09 -04001ifneq ($(BUILD_TINY_ANDROID),true)
2#Compile this library only for builds with the latest modem image
3
4LOCAL_PATH := $(call my-dir)
5
6include $(CLEAR_VARS)
7
8## Libs
9LOCAL_SHARED_LIBRARIES := \
10 libutils \
11 libcutils \
12 liblog
13
14LOCAL_SRC_FILES += \
15 loc_log.cpp \
16 loc_cfg.cpp \
17 msg_q.c \
18 linked_list.c \
19 loc_target.cpp \
20 loc_timer.c \
21 ../platform_lib_abstractions/elapsed_millis_since_boot.cpp \
22 loc_misc_utils.cpp
23
24LOCAL_CFLAGS += \
25 -fno-short-enums \
26 -D_ANDROID_
27
28ifeq ($(TARGET_BUILD_VARIANT),user)
29 LOCAL_CFLAGS += -DTARGET_BUILD_VARIANT_USER
30endif
31
32LOCAL_LDFLAGS += -Wl,--export-dynamic
33
34## Includes
35LOCAL_C_INCLUDES:= \
36 $(LOCAL_PATH)/../platform_lib_abstractions
37
38LOCAL_COPY_HEADERS_TO:= gps.utils/
39LOCAL_COPY_HEADERS:= \
40 loc_log.h \
41 loc_cfg.h \
42 log_util.h \
43 linked_list.h \
44 msg_q.h \
45 loc_target.h \
46 loc_timer.h \
47 ../platform_lib_abstractions/platform_lib_includes.h \
48 ../platform_lib_abstractions/platform_lib_time.h \
49 ../platform_lib_abstractions/platform_lib_macros.h \
50 loc_misc_utils.h
51
52LOCAL_MODULE := libgps.utils
53
54LOCAL_MODULE_TAGS := optional
55
56LOCAL_PRELINK_MODULE := false
57
58include $(BUILD_SHARED_LIBRARY)
59endif # not BUILD_TINY_ANDROID