android_device_samsung_msm8.../gps/utils/Android.mk

57 lines
1.1 KiB
Makefile
Raw Normal View History

2018-07-19 12:48:02 +02:00
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
2019-02-11 21:56:38 +01:00
2018-07-19 12:48:02 +02:00
## Libs
LOCAL_SHARED_LIBRARIES := \
libutils \
libcutils \
liblog \
libprocessgroup
2018-07-19 12:48:02 +02:00
LOCAL_SRC_FILES += \
loc_log.cpp \
loc_cfg.cpp \
msg_q.c \
linked_list.c \
loc_target.cpp \
LocHeap.cpp \
LocTimer.cpp \
LocThread.cpp \
MsgTask.cpp \
loc_misc_utils.cpp \
2019-02-11 21:56:38 +01:00
loc_nmea.cpp \
LocIpc.cpp
2018-07-19 12:48:02 +02:00
# Flag -std=c++11 is not accepted by compiler when LOCAL_CLANG is set to true
LOCAL_CFLAGS += \
-fno-short-enums \
-D_ANDROID_
ifeq ($(TARGET_BUILD_VARIANT),user)
LOCAL_CFLAGS += -DTARGET_BUILD_VARIANT_USER
endif
LOCAL_LDFLAGS += -Wl,--export-dynamic
## Includes
LOCAL_HEADER_LIBRARIES := \
2019-02-11 21:56:38 +01:00
libutils_headers \
2018-07-19 12:48:02 +02:00
libloc_pla_headers \
liblocation_api_headers
LOCAL_MODULE := libgps.utils
2019-02-11 21:56:38 +01:00
LOCAL_VENDOR_MODULE := true
2018-07-19 12:48:02 +02:00
2019-02-11 21:56:38 +01:00
LOCAL_PRELINK_MODULE := false
2018-07-19 12:48:02 +02:00
LOCAL_CFLAGS += $(GNSS_CFLAGS)
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := libgps.utils_headers
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
include $(BUILD_HEADER_LIBRARY)