1
2package {
3    // See: http://go/android-license-faq
4    // A large-scale-change added 'default_applicable_licenses' to import
5    // all of the 'license_kinds' from "hardware_qcom_sm7250_gps_license"
6    // to get the below license kinds:
7    //   SPDX-license-identifier-Apache-2.0
8    //   SPDX-license-identifier-BSD
9    default_applicable_licenses: ["hardware_qcom_sm7250_gps_license"],
10}
11
12cc_library_shared {
13
14    name: "libgps.utils",
15    vendor: true,
16
17    sanitize: GNSS_SANITIZE,
18
19    //# Libs
20    shared_libs: [
21        "libdl",
22        "libutils",
23        "libcutils",
24        "liblog",
25        "libprocessgroup",
26    ],
27
28    srcs: [
29        "loc_log.cpp",
30        "loc_cfg.cpp",
31        "msg_q.c",
32        "linked_list.c",
33        "loc_target.cpp",
34        "LocHeap.cpp",
35        "LocTimer.cpp",
36        "LocThread.cpp",
37        "MsgTask.cpp",
38        "loc_misc_utils.cpp",
39        "loc_nmea.cpp",
40        "LocIpc.cpp",
41        "LogBuffer.cpp",
42    ],
43
44    cflags: [
45        "-fno-short-enums",
46        "-D_ANDROID_",
47    ] + GNSS_CFLAGS,
48
49    //# Includes
50    ldflags: ["-Wl,--export-dynamic"],
51
52    header_libs: [
53        "libutils_headers",
54        "libloc_pla_headers",
55        "liblocation_api_headers",
56    ],
57}
58
59cc_library_headers {
60
61    name: "libgps.utils_headers",
62    export_include_dirs: ["."],
63    vendor: true,
64}
65