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 "system_tools_hidl_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["system_tools_hidl_license"],
8}
9
10genrule {
11    name: "hidl_export_test_gen-headers",
12    tools: [
13        "hidl-gen",
14    ],
15    srcs: [
16        "1.0/IFoo.hal",
17        "1.0/types.hal",
18        ":android.hidl.base@1.0_hal",
19    ],
20    cmd: "$(location hidl-gen) -o $(genDir)/export-base.h -Lexport-header " +
21         "-rexport:system/tools/hidl/test/export_test export@1.0",
22    out: [
23        "export-base.h"
24    ],
25}
26
27cc_test_library {
28    name: "hidl_export_test",
29    cflags: ["-Wall", "-Werror"],
30    generated_headers: ["hidl_export_test_gen-headers"],
31    srcs: ["test.cpp"],
32}
33