| # Copyright 2023 The Tint Authors. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| # See the License for the specific language governing permissions and | |
| # limitations under the License. | |
| ################################################################################ | |
| # File generated by 'tools/src/cmd/gen' using the template: | |
| # tools/src/cmd/gen/build/BUILD.bazel.tmpl | |
| # | |
| # To regenerate run: './tools/run gen' | |
| # | |
| # Do not modify this file directly | |
| ################################################################################ | |
| load("//src/tint:flags.bzl", "COPTS") | |
| load("@bazel_skylib//lib:selects.bzl", "selects") | |
| cc_library( | |
| name = "ast", | |
| srcs = [ | |
| "accessor_expression.cc", | |
| "alias.cc", | |
| "assignment_statement.cc", | |
| "attribute.cc", | |
| "binary_expression.cc", | |
| "binding_attribute.cc", | |
| "bitcast_expression.cc", | |
| "block_statement.cc", | |
| "bool_literal_expression.cc", | |
| "break_if_statement.cc", | |
| "break_statement.cc", | |
| "builder.cc", | |
| "builtin_attribute.cc", | |
| "call_expression.cc", | |
| "call_statement.cc", | |
| "case_selector.cc", | |
| "case_statement.cc", | |
| "clone_context.cc", | |
| "compound_assignment_statement.cc", | |
| "const.cc", | |
| "const_assert.cc", | |
| "continue_statement.cc", | |
| "diagnostic_attribute.cc", | |
| "diagnostic_control.cc", | |
| "diagnostic_directive.cc", | |
| "diagnostic_rule_name.cc", | |
| "disable_validation_attribute.cc", | |
| "discard_statement.cc", | |
| "enable.cc", | |
| "expression.cc", | |
| "extension.cc", | |
| "float_literal_expression.cc", | |
| "for_loop_statement.cc", | |
| "function.cc", | |
| "group_attribute.cc", | |
| "id_attribute.cc", | |
| "identifier.cc", | |
| "identifier_expression.cc", | |
| "if_statement.cc", | |
| "increment_decrement_statement.cc", | |
| "index_accessor_expression.cc", | |
| "index_attribute.cc", | |
| "int_literal_expression.cc", | |
| "internal_attribute.cc", | |
| "interpolate_attribute.cc", | |
| "invariant_attribute.cc", | |
| "let.cc", | |
| "literal_expression.cc", | |
| "location_attribute.cc", | |
| "loop_statement.cc", | |
| "member_accessor_expression.cc", | |
| "module.cc", | |
| "must_use_attribute.cc", | |
| "node.cc", | |
| "override.cc", | |
| "parameter.cc", | |
| "phony_expression.cc", | |
| "pipeline_stage.cc", | |
| "return_statement.cc", | |
| "stage_attribute.cc", | |
| "statement.cc", | |
| "stride_attribute.cc", | |
| "struct.cc", | |
| "struct_member.cc", | |
| "struct_member_align_attribute.cc", | |
| "struct_member_offset_attribute.cc", | |
| "struct_member_size_attribute.cc", | |
| "switch_statement.cc", | |
| "templated_identifier.cc", | |
| "type.cc", | |
| "type_decl.cc", | |
| "unary_op_expression.cc", | |
| "var.cc", | |
| "variable.cc", | |
| "variable_decl_statement.cc", | |
| "while_statement.cc", | |
| "workgroup_attribute.cc", | |
| ], | |
| hdrs = [ | |
| "accessor_expression.h", | |
| "alias.h", | |
| "assignment_statement.h", | |
| "attribute.h", | |
| "binary_expression.h", | |
| "binding_attribute.h", | |
| "bitcast_expression.h", | |
| "block_statement.h", | |
| "bool_literal_expression.h", | |
| "break_if_statement.h", | |
| "break_statement.h", | |
| "builder.h", | |
| "builtin_attribute.h", | |
| "call_expression.h", | |
| "call_statement.h", | |
| "case_selector.h", | |
| "case_statement.h", | |
| "clone_context.h", | |
| "compound_assignment_statement.h", | |
| "const.h", | |
| "const_assert.h", | |
| "continue_statement.h", | |
| "diagnostic_attribute.h", | |
| "diagnostic_control.h", | |
| "diagnostic_directive.h", | |
| "diagnostic_rule_name.h", | |
| "disable_validation_attribute.h", | |
| "discard_statement.h", | |
| "enable.h", | |
| "expression.h", | |
| "extension.h", | |
| "float_literal_expression.h", | |
| "for_loop_statement.h", | |
| "function.h", | |
| "group_attribute.h", | |
| "id_attribute.h", | |
| "identifier.h", | |
| "identifier_expression.h", | |
| "if_statement.h", | |
| "increment_decrement_statement.h", | |
| "index_accessor_expression.h", | |
| "index_attribute.h", | |
| "int_literal_expression.h", | |
| "internal_attribute.h", | |
| "interpolate_attribute.h", | |
| "invariant_attribute.h", | |
| "let.h", | |
| "literal_expression.h", | |
| "location_attribute.h", | |
| "loop_statement.h", | |
| "member_accessor_expression.h", | |
| "module.h", | |
| "must_use_attribute.h", | |
| "node.h", | |
| "node_id.h", | |
| "override.h", | |
| "parameter.h", | |
| "phony_expression.h", | |
| "pipeline_stage.h", | |
| "return_statement.h", | |
| "stage_attribute.h", | |
| "statement.h", | |
| "stride_attribute.h", | |
| "struct.h", | |
| "struct_member.h", | |
| "struct_member_align_attribute.h", | |
| "struct_member_offset_attribute.h", | |
| "struct_member_size_attribute.h", | |
| "switch_statement.h", | |
| "templated_identifier.h", | |
| "traverse_expressions.h", | |
| "type.h", | |
| "type_decl.h", | |
| "unary_op_expression.h", | |
| "var.h", | |
| "variable.h", | |
| "variable_decl_statement.h", | |
| "while_statement.h", | |
| "workgroup_attribute.h", | |
| ], | |
| deps = [ | |
| "//src/tint/api/common", | |
| "//src/tint/lang/core", | |
| "//src/tint/lang/core/constant", | |
| "//src/tint/lang/core/type", | |
| "//src/tint/lang/wgsl", | |
| "//src/tint/utils/containers", | |
| "//src/tint/utils/diagnostic", | |
| "//src/tint/utils/ice", | |
| "//src/tint/utils/id", | |
| "//src/tint/utils/macros", | |
| "//src/tint/utils/math", | |
| "//src/tint/utils/memory", | |
| "//src/tint/utils/reflection", | |
| "//src/tint/utils/result", | |
| "//src/tint/utils/rtti", | |
| "//src/tint/utils/symbol", | |
| "//src/tint/utils/text", | |
| "//src/tint/utils/traits", | |
| ], | |
| copts = COPTS, | |
| visibility = ["//visibility:public"], | |
| ) | |
| cc_library( | |
| name = "test", | |
| alwayslink = True, | |
| srcs = [ | |
| "alias_test.cc", | |
| "assignment_statement_test.cc", | |
| "binary_expression_test.cc", | |
| "binding_attribute_test.cc", | |
| "bitcast_expression_test.cc", | |
| "block_statement_test.cc", | |
| "bool_literal_expression_test.cc", | |
| "break_if_statement_test.cc", | |
| "break_statement_test.cc", | |
| "builtin_attribute_test.cc", | |
| "builtin_texture_helper_test.cc", | |
| "builtin_texture_helper_test.h", | |
| "call_expression_test.cc", | |
| "call_statement_test.cc", | |
| "case_selector_test.cc", | |
| "case_statement_test.cc", | |
| "clone_context_test.cc", | |
| "compound_assignment_statement_test.cc", | |
| "const_assert_test.cc", | |
| "continue_statement_test.cc", | |
| "diagnostic_attribute_test.cc", | |
| "diagnostic_control_test.cc", | |
| "diagnostic_directive_test.cc", | |
| "diagnostic_rule_name_test.cc", | |
| "discard_statement_test.cc", | |
| "enable_test.cc", | |
| "float_literal_expression_test.cc", | |
| "for_loop_statement_test.cc", | |
| "function_test.cc", | |
| "group_attribute_test.cc", | |
| "helper_test.cc", | |
| "helper_test.h", | |
| "id_attribute_test.cc", | |
| "identifier_expression_test.cc", | |
| "identifier_test.cc", | |
| "if_statement_test.cc", | |
| "increment_decrement_statement_test.cc", | |
| "index_accessor_expression_test.cc", | |
| "index_attribute_test.cc", | |
| "int_literal_expression_test.cc", | |
| "interpolate_attribute_test.cc", | |
| "location_attribute_test.cc", | |
| "loop_statement_test.cc", | |
| "member_accessor_expression_test.cc", | |
| "module_clone_test.cc", | |
| "module_test.cc", | |
| "phony_expression_test.cc", | |
| "return_statement_test.cc", | |
| "stage_attribute_test.cc", | |
| "stride_attribute_test.cc", | |
| "struct_member_align_attribute_test.cc", | |
| "struct_member_offset_attribute_test.cc", | |
| "struct_member_size_attribute_test.cc", | |
| "struct_member_test.cc", | |
| "struct_test.cc", | |
| "switch_statement_test.cc", | |
| "templated_identifier_test.cc", | |
| "traverse_expressions_test.cc", | |
| "unary_op_expression_test.cc", | |
| "variable_decl_statement_test.cc", | |
| "variable_test.cc", | |
| "while_statement_test.cc", | |
| "workgroup_attribute_test.cc", | |
| ], | |
| deps = [ | |
| "//src/tint/api/common", | |
| "//src/tint/lang/core", | |
| "//src/tint/lang/core/constant", | |
| "//src/tint/lang/core/type", | |
| "//src/tint/lang/wgsl", | |
| "//src/tint/lang/wgsl/ast", | |
| "//src/tint/lang/wgsl/ast/transform", | |
| "//src/tint/lang/wgsl/program", | |
| "//src/tint/lang/wgsl/reader", | |
| "//src/tint/lang/wgsl/resolver", | |
| "//src/tint/lang/wgsl/sem", | |
| "//src/tint/lang/wgsl/writer", | |
| "//src/tint/utils/containers", | |
| "//src/tint/utils/diagnostic", | |
| "//src/tint/utils/ice", | |
| "//src/tint/utils/id", | |
| "//src/tint/utils/macros", | |
| "//src/tint/utils/math", | |
| "//src/tint/utils/memory", | |
| "//src/tint/utils/reflection", | |
| "//src/tint/utils/result", | |
| "//src/tint/utils/rtti", | |
| "//src/tint/utils/symbol", | |
| "//src/tint/utils/text", | |
| "//src/tint/utils/traits", | |
| "@gtest", | |
| ], | |
| copts = COPTS, | |
| visibility = ["//visibility:public"], | |
| ) | |