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_error_test_gen", 12 tools: ["hidl-gen"], 13 tool_files: ["hidl_error_test.sh"], 14 cmd: "$(location hidl_error_test.sh) $(location hidl-gen) &&" + 15 "echo 'int main(){return 0;}' > $(genDir)/TODO_b_37575883.cpp", 16 out: ["TODO_b_37575883.cpp"], 17 srcs: [ 18 ":[email protected]_hal", 19 "**/*.hal", 20 "**/required_error", 21 ], 22} 23 24cc_test_host { 25 name: "hidl_error_test", 26 cflags: ["-Wall", "-Werror"], 27 generated_sources: ["hidl_error_test_gen"], 28 gtest: false, 29} 30