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-BSD
7    default_applicable_licenses: ["hardware_qcom_sm8150_gps_license"],
8}
9
10cc_library_shared {
11
12    name: "libloc_core",
13    vendor: true,
14
15
16
17    shared_libs: [
18        "liblog",
19        "libutils",
20        "libcutils",
21        "libgps.utils",
22        "libdl",
23        "liblog",
24    ],
25
26    srcs: [
27        "LocApiBase.cpp",
28        "LocAdapterBase.cpp",
29        "ContextBase.cpp",
30        "LocContext.cpp",
31        "loc_core_log.cpp",
32        "data-items/DataItemsFactoryProxy.cpp",
33        "SystemStatusOsObserver.cpp",
34        "SystemStatus.cpp",
35    ],
36
37    cflags: [
38        "-fno-short-enums",
39        "-D_ANDROID_",
40    ] + GNSS_CFLAGS,
41
42    local_include_dirs: [
43        "data-items",
44        "observer",
45    ],
46
47    header_libs: [
48        "libutils_headers",
49        "libgps.utils_headers",
50        "libloc_pla_headers",
51        "liblocation_api_headers",
52    ],
53
54}
55
56cc_library_headers {
57
58    name: "libloc_core_headers",
59    vendor: true,
60    export_include_dirs: ["."] + [
61        "data-items",
62        "observer",
63    ],
64}
65