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    ],
19    cmd: "$(location hidl-gen) -o $(genDir)/export-base.h -Lexport-header " +
20         "-rexport:system/tools/hidl/test/export_test export@1.0",
21    out: [
22        "export-base.h"
23    ],
24}
25
26cc_test_library {
27    name: "hidl_export_test",
28    cflags: ["-Wall", "-Werror"],
29    generated_headers: ["hidl_export_test_gen-headers"],
30    srcs: ["test.cpp"],
31}
32