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