sm7325-common: gps/location: Convert remaining Android.mk to bp

Change-Id: I75e6af92795fe755a48557aa06106406b14c6750
This commit is contained in:
Michael Bestas 2024-12-01 22:30:22 +02:00
commit 167ee81c54
No known key found for this signature in database
GPG key ID: CC95044519BE6669
10 changed files with 122 additions and 205 deletions

View file

@ -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))

View file

@ -1,4 +0,0 @@
ifneq ($(QCPATH),)
LOCAL_PATH := $(call my-dir)
include $(call all-makefiles-under,$(LOCAL_PATH))
endif #QCPATH

View 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",
],
}

View file

@ -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)