| genrule { |
| name: "hidl_error_test_gen", |
| tools: ["hidl-gen"], |
| tool_files: ["hidl_error_test.sh"], |
| cmd: "$(location hidl_error_test.sh) $(location hidl-gen) &&" + |
| "echo 'int main(){return 0;}' > $(genDir)/TODO_b_37575883.cpp", |
| out: ["TODO_b_37575883.cpp"], |
| srcs: [ |
| "bad_character/1.0/IFoo.hal", |
| "enum_storage/1.0/IFoo.hal", |
| "enum_unique_field_names/1.0/IFoo.hal", |
| "enum_unique_field_names_extends/1.0/IFoo.hal", |
| "interface_extends_only_interface/1.0/IFoo.hal", |
| "interface_extends_only_interface/1.0/types.hal", |
| "cpp_forward_decl_restriction/1.0/types.hal", |
| "interface_no_using_reserved_method_names/1.0/IFoo.hal", |
| "interface_semicolon/1.0/IFoo.hal", |
| "interface_unique_method_names/1.0/IFoo.hal", |
| "interface_unique_method_names_inheritance/1.0/IFoo.hal", |
| "interface_unique_method_names_inheritance/1.0/IBar.hal", |
| "method_ends_in_semicolon/1.0/IFoo.hal", |
| "no_cyclic_declaration_1/1.0/IFoo.hal", |
| "no_cyclic_declaration_2/1.0/IFoo.hal", |
| "no_cyclic_declaration_3/1.0/types.hal", |
| "no_cyclic_declaration_4/1.0/types.hal", |
| "no_cyclic_expressions_1/1.0/types.hal", |
| "no_cyclic_expressions_2/1.0/types.hal", |
| "no_cyclic_expressions_3/1.0/types.hal", |
| "no_data_outside_interface/1.0/IFoo.hal", |
| "no_interface_in_types/1.0/IFoo.hal", |
| "no_interface_in_types/1.0/types.hal", |
| "no_two_interfaces/1.0/IFoo.hal", |
| "same_name_interface/1.0/IFoo.hal", |
| "same_package_name/1.0/IFoo.hal", |
| "scope_unique_type_names/1.0/IFoo.hal", |
| "struct_unique_field_names/1.0/IFoo.hal", |
| ], |
| } |
| |
| cc_test_host { |
| name: "hidl_error_test", |
| generated_sources: ["hidl_error_test_gen"], |
| } |