1package {
2    // See: http://go/android-license-faq
3    // Inherits all licenses from parent to get Apache 2.0 and package name.
4    default_applicable_licenses: [
5        "packages_modules_NeuralNetworks_runtime_license",
6    ],
7}
8
9cc_library_shared {
10    name: "libneuralnetworks_packageinfo",
11    defaults: ["neuralnetworks_defaults"],
12    host_supported: true,
13
14    srcs: [
15        "PackageInfo.cpp",
16    ],
17
18    shared_libs: [
19        "libbase",
20        "libbinder",
21        "libcutils",
22        "liblog",
23        "libutils",
24        "packagemanager_aidl-cpp",
25    ],
26
27    export_include_dirs: ["include"],
28
29    cflags: [
30        "-Wall",
31        "-Werror",
32        "-Wno-error=deprecated-declarations",
33    ],
34
35    // enumerate stable entry points, for apex use
36    stubs: {
37        symbol_file: "libneuralnetworks_packageinfo.map.txt",
38        versions: [
39            "1",
40        ],
41    },
42
43    header_abi_checker: {
44        enabled: true,
45        symbol_file: "libneuralnetworks_packageinfo.map.txt",
46    },
47
48    visibility: [
49        "//packages/modules/NeuralNetworks:__subpackages__",
50        "//visibility:any_system_partition",
51    ],
52}
53