aboutsummaryrefslogtreecommitdiff
path: root/test/export_test/Android.bp
blob: b52415b318ff67e03aada313aeeffbb38c2ef84d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "system_tools_hidl_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["system_tools_hidl_license"],
}

genrule {
    name: "hidl_export_test_gen-headers",
    tools: [
        "hidl-gen",
    ],
    srcs: [
        "1.0/IFoo.hal",
        "1.0/types.hal",
        ":android.hidl.base@1.0_hal",
    ],
    cmd: "$(location hidl-gen) -o $(genDir)/export-base.h -Lexport-header " +
         "-rexport:system/tools/hidl/test/export_test export@1.0",
    out: [
        "export-base.h"
    ],
}

cc_test_library {
    name: "hidl_export_test",
    cflags: ["-Wall", "-Werror"],
    generated_headers: ["hidl_export_test_gen-headers"],
    srcs: ["test.cpp"],
}