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