mirror of
https://github.com/BobTheBlinker/android_device_motorola_sm6375-common.git
synced 2026-10-31 12:10:53 -04:00
sm7325-common: gps/location: Convert remaining Android.mk to bp
Change-Id: I75e6af92795fe755a48557aa06106406b14c6750
This commit is contained in:
parent
cf9fc36347
commit
167ee81c54
10 changed files with 122 additions and 205 deletions
|
|
@ -1,6 +0,0 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
GNSS_SANITIZE_DIAG := cfi bounds null unreachable integer address
|
||||
|
||||
include $(call all-makefiles-under,$(LOCAL_PATH))
|
||||
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
ifneq ($(QCPATH),)
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
include $(call all-makefiles-under,$(LOCAL_PATH))
|
||||
endif #QCPATH
|
||||
25
location/utils/loc_socket/Android.bp
Normal file
25
location/utils/loc_socket/Android.bp
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
cc_library_shared {
|
||||
name: "libloc_socket",
|
||||
vendor: true,
|
||||
|
||||
shared_libs: [
|
||||
"libutils",
|
||||
"libcutils",
|
||||
"liblog",
|
||||
"libgps.utils",
|
||||
],
|
||||
|
||||
srcs: ["LocSocket.cpp"],
|
||||
|
||||
cflags: [
|
||||
"-fno-short-enums",
|
||||
"-D_ANDROID_",
|
||||
] + GNSS_CFLAGS,
|
||||
|
||||
header_libs: [
|
||||
"libloc_core_headers",
|
||||
"libgps.utils_headers",
|
||||
"libloc_pla_headers",
|
||||
"liblocation_api_headers",
|
||||
],
|
||||
}
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := libloc_socket
|
||||
# activate the following line for debug purposes only, comment out for production
|
||||
#LOCAL_SANITIZE_DIAG += $(GNSS_SANITIZE_DIAG)
|
||||
LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib
|
||||
LOCAL_MODULE_PATH_64 := $(TARGET_OUT_VENDOR)/lib64
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_SHARED_LIBRARIES := \
|
||||
libutils \
|
||||
libcutils \
|
||||
liblog \
|
||||
libgps.utils
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
LocSocket.cpp
|
||||
|
||||
LOCAL_CFLAGS := \
|
||||
-fno-short-enums \
|
||||
-D_ANDROID_
|
||||
|
||||
## Includes
|
||||
LOCAL_C_INCLUDES := \
|
||||
$(TARGET_OUT_HEADERS)/qmi-framework/inc \
|
||||
$(TARGET_OUT_HEADERS)/qmi/inc
|
||||
LOCAL_HEADER_LIBRARIES := \
|
||||
libloc_core_headers \
|
||||
libgps.utils_headers \
|
||||
libloc_pla_headers \
|
||||
liblocation_api_headers
|
||||
LOCAL_CFLAGS += $(GNSS_CFLAGS)
|
||||
|
||||
ifeq ($(TARGET_KERNEL_VERSION),$(filter $(TARGET_KERNEL_VERSION),3.18 4.4 4.9))
|
||||
LOCAL_CFLAGS += -DUSE_QSOCKET
|
||||
LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/qsocket/inc
|
||||
LOCAL_SHARED_LIBRARIES += libqsocket
|
||||
endif
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
Loading…
Reference in a new issue