| 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" |
| ], |
| 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"], |
| } |