Zvikomborero VIncent Zvikaramba | 5b852f6 | 2016-07-22 01:37:09 -0400 | [diff] [blame] | 1 | ifneq ($(BUILD_TINY_ANDROID),true) |
| 2 | #Compile this library only for builds with the latest modem image |
| 3 | |
| 4 | LOCAL_PATH := $(call my-dir) |
| 5 | |
| 6 | include $(CLEAR_VARS) |
| 7 | |
| 8 | ## Libs |
| 9 | LOCAL_SHARED_LIBRARIES := \ |
| 10 | libutils \ |
| 11 | libcutils \ |
| 12 | liblog |
| 13 | |
| 14 | LOCAL_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 | |
| 24 | LOCAL_CFLAGS += \ |
| 25 | -fno-short-enums \ |
| 26 | -D_ANDROID_ |
| 27 | |
| 28 | ifeq ($(TARGET_BUILD_VARIANT),user) |
| 29 | LOCAL_CFLAGS += -DTARGET_BUILD_VARIANT_USER |
| 30 | endif |
| 31 | |
| 32 | LOCAL_LDFLAGS += -Wl,--export-dynamic |
| 33 | |
| 34 | ## Includes |
| 35 | LOCAL_C_INCLUDES:= \ |
| 36 | $(LOCAL_PATH)/../platform_lib_abstractions |
| 37 | |
| 38 | LOCAL_COPY_HEADERS_TO:= gps.utils/ |
| 39 | LOCAL_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 | |
| 52 | LOCAL_MODULE := libgps.utils |
| 53 | |
| 54 | LOCAL_MODULE_TAGS := optional |
| 55 | |
| 56 | LOCAL_PRELINK_MODULE := false |
| 57 | |
| 58 | include $(BUILD_SHARED_LIBRARY) |
| 59 | endif # not BUILD_TINY_ANDROID |