1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "hardware_interfaces_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["hardware_interfaces_license"],
8}
9
10cc_library_shared {
11    name: "android.hardware.graphics.allocator@2.0-impl",
12    defaults: ["hidl_defaults"],
13    vendor: true,
14    relative_install_path: "hw",
15    srcs: ["passthrough.cpp"],
16    header_libs: [
17        "android.hardware.graphics.allocator@2.0-passthrough",
18    ],
19    shared_libs: [
20        "android.hardware.graphics.allocator@2.0",
21        "libbase",
22        "libcutils",
23        "libhardware",
24        "libhidlbase",
25        "liblog",
26        "libutils",
27    ],
28    cflags: ["-DLOG_TAG=\"AllocatorHal\""],
29}
30
31cc_binary {
32    name: "android.hardware.graphics.allocator@2.0-service",
33    defaults: ["hidl_defaults"],
34    proprietary: true,
35    relative_install_path: "hw",
36    srcs: ["service.cpp"],
37    init_rc: ["android.hardware.graphics.allocator@2.0-service.rc"],
38
39    shared_libs: [
40        "android.hardware.graphics.allocator@2.0",
41        "libhidlbase",
42        "liblog",
43        "libutils",
44    ],
45}
46