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 "**/*.hal", 19 "**/required_error", 20 ], 21} 22 23cc_test_host { 24 name: "hidl_error_test", 25 cflags: ["-Wall", "-Werror"], 26 generated_sources: ["hidl_error_test_gen"], 27 gtest: false, 28} 29