Browse Source

Convert to Android.bp

Outstanding issues:
- Removal of USE_QSOCKET is hardcoded since we're only
  compiling for kernel 4.14+
- BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET is assumed to be
  always true
caf-8.1-sodp-port
Felix 2 years ago
parent
commit
fdad662bea
  1. 33
      Android.bp
  2. 7
      Android.mk
  3. 33
      gnsspps/Android.bp
  4. 7
      izat_api/Android.bp
  5. 7
      loc_api/include/Android.bp
  6. 26
      loc_api/libloc_loader/Android.bp
  7. 46
      loc_api/loc_api_v02/Android.bp
  8. 7
      loc_sll_if/if/Android.bp
  9. 42
      synergy_loc_api/Android.bp
  10. 25
      utils/loc_socket/Android.bp

33
Android.bp

@ -0,0 +1,33 @@
cc_defaults {
name: "opensource_location_gnss_defaults",
cflags: [
"-Werror",
"-Wno-error=unused-parameter",
"-Wno-error=macro-redefined",
"-Wno-error=reorder",
"-Wno-error=missing-braces",
"-Wno-error=self-assign",
"-Wno-error=enum-conversion",
"-Wno-error=logical-op-parentheses",
"-Wno-error=null-arithmetic",
"-Wno-error=null-conversion",
"-Wno-error=parentheses-equality",
"-Wno-error=undefined-bool-conversion",
"-Wno-error=tautological-compare",
"-Wno-error=switch",
"-Wno-error=date-time",
],
// Activate the following for regression testing
//sanitize: {
// misc_undefined: [
// "address",
// "cfi",
// "alignment",
// "bounds",
// "null",
// "unreachable",
// "integer",
// ],
//},
}

7
Android.mk

@ -1,5 +1,2 @@
ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),)
LOCAL_PATH := $(call my-dir)
include $(LOCAL_PATH)/build/target_specific_features.mk
include $(call all-makefiles-under,$(LOCAL_PATH))
endif
# Empty file as build guard
# Logic is in Android.bp files

33
gnsspps/Android.bp

@ -0,0 +1,33 @@
cc_library_headers {
name: "libgnsspps_headers",
vendor: true,
export_include_dirs: [
".",
],
}
cc_library_shared {
name: "libgnsspps",
vendor: true,
defaults: ["opensource_location_gnss_defaults"],
shared_libs: [
"libutils",
"libcutils",
"libgps.utils",
"liblog",
],
srcs: ["gnsspps.c"],
cflags: [
"-fno-short-enums",
"-D_ANDROID_",
],
header_libs: [
"libgps.utils_headers",
"libloc_pla_headers",
],
}

7
izat_api/Android.bp

@ -0,0 +1,7 @@
cc_library_headers {
name: "izat_remote_api_headers",
vendor: true,
export_include_dirs: [
".",
],
}

7
loc_api/include/Android.bp

@ -0,0 +1,7 @@
cc_library_headers {
name: "libloc_api_qmi_headers",
vendor: true,
export_include_dirs: [
".",
],
}

26
loc_api/libloc_loader/Android.bp

@ -0,0 +1,26 @@
cc_library_headers {
name: "libloc_loader_headers",
vendor: true,
export_include_dirs: [
".",
],
}
cc_library_shared {
name: "libloc_loader",
vendor: true,
defaults: ["opensource_location_gnss_defaults"],
shared_libs: [
"liblog",
],
srcs: ["libloc_loader.c"],
header_libs: [
"libloc_api_qmi_headers",
"libcutils_headers",
"libutils_headers",
],
}

46
loc_api/loc_api_v02/Android.bp

@ -0,0 +1,46 @@
cc_library_headers {
name: "libloc_api_v02_headers",
vendor: true,
export_include_dirs: [
".",
],
}
cc_library_shared {
name: "libloc_api_v02",
vendor: true,
defaults: ["opensource_location_gnss_defaults"],
shared_libs: [
"libutils",
"libcutils",
"libloc_core",
"libgps.utils",
"libdl",
"liblog",
"libloc_loader",
],
srcs: [
"LocApiV02.cpp",
"loc_api_v02_log.cpp",
"loc_api_v02_client.cpp",
"loc_api_sync_req.cpp",
"location_service_v02.c",
],
cflags: [
"-fno-short-enums",
"-D_ANDROID_",
],
header_libs: [
"libloc_loader_headers",
"libloc_api_qmi_headers",
"libloc_core_headers",
"libgps.utils_headers",
"libloc_pla_headers",
"liblocation_api_headers",
],
}

7
loc_sll_if/if/Android.bp

@ -0,0 +1,7 @@
cc_library_headers {
name: "loc_sll_if_headers",
vendor: true,
export_include_dirs: [
".",
],
}

42
synergy_loc_api/Android.bp

@ -0,0 +1,42 @@
cc_library_headers {
name: "libsynergyloc_api_headers",
vendor: true,
export_include_dirs: [
".",
],
}
cc_library_shared {
name: "libsynergy_loc_api",
vendor: true,
defaults: ["opensource_location_gnss_defaults"],
cflags: [
// BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET is true for SODP
"-DPDK_FEATURE_SET",
"-fno-short-enums",
"-D_ANDROID_",
],
shared_libs: [
"libutils",
"libcutils",
"libloc_core",
"libgps.utils",
"libdl",
"liblog",
"libloc_loader",
],
srcs: ["SynergyLocApi.cpp"],
header_libs: [
"libloc_loader_headers",
"libloc_core_headers",
"libgps.utils_headers",
"libloc_pla_headers",
"loc_sll_if_headers",
"liblocation_api_headers",
],
}

25
utils/loc_socket/Android.bp

@ -0,0 +1,25 @@
cc_library_shared {
name: "libloc_socket",
defaults: ["opensource_location_gnss_defaults"],
vendor: true,
srcs: [
"LocSocket.cpp",
],
shared_libs: [
"libutils",
"libcutils",
"liblog",
"libgps.utils",
],
cflags: [
"-fno-short-enums",
"-D_ANDROID_",
],
header_libs: [
"libloc_core_headers",
"libgps.utils_headers",
"libloc_pla_headers",
"liblocation_api_headers",
],
// QSOCKET/libqsocket is unused on 4.14+
}
Loading…
Cancel
Save