Austin Eng | cc2516a | 2023-10-17 20:57:54 +0000 | [diff] [blame] | 1 | # Copyright 2023 The Dawn & Tint Authors |
Ben Clayton | 6562555 | 2023-09-11 18:33:43 +0000 | [diff] [blame] | 2 | # |
Austin Eng | cc2516a | 2023-10-17 20:57:54 +0000 | [diff] [blame] | 3 | # Redistribution and use in source and binary forms, with or without |
| 4 | # modification, are permitted provided that the following conditions are met: |
Ben Clayton | 6562555 | 2023-09-11 18:33:43 +0000 | [diff] [blame] | 5 | # |
Austin Eng | cc2516a | 2023-10-17 20:57:54 +0000 | [diff] [blame] | 6 | # 1. Redistributions of source code must retain the above copyright notice, this |
| 7 | # list of conditions and the following disclaimer. |
Ben Clayton | 6562555 | 2023-09-11 18:33:43 +0000 | [diff] [blame] | 8 | # |
Austin Eng | cc2516a | 2023-10-17 20:57:54 +0000 | [diff] [blame] | 9 | # 2. Redistributions in binary form must reproduce the above copyright notice, |
| 10 | # this list of conditions and the following disclaimer in the documentation |
| 11 | # and/or other materials provided with the distribution. |
| 12 | # |
| 13 | # 3. Neither the name of the copyright holder nor the names of its |
| 14 | # contributors may be used to endorse or promote products derived from |
| 15 | # this software without specific prior written permission. |
| 16 | # |
| 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 18 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 19 | # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 20 | # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| 21 | # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 22 | # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 23 | # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| 24 | # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 25 | # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Ben Clayton | 6562555 | 2023-09-11 18:33:43 +0000 | [diff] [blame] | 27 | |
| 28 | ################################################################################ |
| 29 | # File generated by 'tools/src/cmd/gen' using the template: |
| 30 | # tools/src/cmd/gen/build/BUILD.bazel.tmpl |
| 31 | # |
| 32 | # To regenerate run: './tools/run gen' |
| 33 | # |
| 34 | # Do not modify this file directly |
| 35 | ################################################################################ |
| 36 | |
| 37 | load("//src/tint:flags.bzl", "COPTS") |
| 38 | load("@bazel_skylib//lib:selects.bzl", "selects") |
| 39 | cc_library( |
| 40 | name = "sem", |
| 41 | srcs = [ |
| 42 | "accessor_expression.cc", |
Ben Clayton | b8ff13e | 2023-10-09 12:22:38 +0000 | [diff] [blame] | 43 | "array.cc", |
Ben Clayton | 6562555 | 2023-09-11 18:33:43 +0000 | [diff] [blame] | 44 | "array_count.cc", |
| 45 | "behavior.cc", |
| 46 | "block_statement.cc", |
| 47 | "break_if_statement.cc", |
Ben Clayton | 6562555 | 2023-09-11 18:33:43 +0000 | [diff] [blame] | 48 | "builtin_enum_expression.cc", |
Ben Clayton | d9766dc | 2023-09-21 12:41:20 +0000 | [diff] [blame] | 49 | "builtin_fn.cc", |
Ben Clayton | 6562555 | 2023-09-11 18:33:43 +0000 | [diff] [blame] | 50 | "call.cc", |
| 51 | "call_target.cc", |
| 52 | "expression.cc", |
| 53 | "for_loop_statement.cc", |
| 54 | "function.cc", |
| 55 | "function_expression.cc", |
| 56 | "if_statement.cc", |
| 57 | "index_accessor_expression.cc", |
| 58 | "info.cc", |
| 59 | "load.cc", |
| 60 | "loop_statement.cc", |
| 61 | "materialize.cc", |
| 62 | "member_accessor_expression.cc", |
| 63 | "module.cc", |
| 64 | "node.cc", |
| 65 | "statement.cc", |
| 66 | "struct.cc", |
| 67 | "switch_statement.cc", |
| 68 | "type_expression.cc", |
| 69 | "value_constructor.cc", |
| 70 | "value_conversion.cc", |
| 71 | "value_expression.cc", |
| 72 | "variable.cc", |
| 73 | "while_statement.cc", |
| 74 | ], |
| 75 | hdrs = [ |
| 76 | "accessor_expression.h", |
Ben Clayton | b8ff13e | 2023-10-09 12:22:38 +0000 | [diff] [blame] | 77 | "array.h", |
Ben Clayton | 6562555 | 2023-09-11 18:33:43 +0000 | [diff] [blame] | 78 | "array_count.h", |
| 79 | "behavior.h", |
| 80 | "block_statement.h", |
| 81 | "break_if_statement.h", |
Ben Clayton | 6562555 | 2023-09-11 18:33:43 +0000 | [diff] [blame] | 82 | "builtin_enum_expression.h", |
Ben Clayton | d9766dc | 2023-09-21 12:41:20 +0000 | [diff] [blame] | 83 | "builtin_fn.h", |
Ben Clayton | 6562555 | 2023-09-11 18:33:43 +0000 | [diff] [blame] | 84 | "call.h", |
| 85 | "call_target.h", |
| 86 | "expression.h", |
| 87 | "for_loop_statement.h", |
| 88 | "function.h", |
| 89 | "function_expression.h", |
| 90 | "if_statement.h", |
| 91 | "index_accessor_expression.h", |
| 92 | "info.h", |
| 93 | "load.h", |
| 94 | "loop_statement.h", |
| 95 | "materialize.h", |
| 96 | "member_accessor_expression.h", |
| 97 | "module.h", |
| 98 | "node.h", |
| 99 | "pipeline_stage_set.h", |
| 100 | "sampler_texture_pair.h", |
| 101 | "statement.h", |
| 102 | "struct.h", |
| 103 | "switch_statement.h", |
| 104 | "type_expression.h", |
| 105 | "type_mappings.h", |
| 106 | "value_constructor.h", |
| 107 | "value_conversion.h", |
| 108 | "value_expression.h", |
| 109 | "variable.h", |
| 110 | "while_statement.h", |
| 111 | ], |
| 112 | deps = [ |
| 113 | "//src/tint/api/common", |
| 114 | "//src/tint/lang/core", |
| 115 | "//src/tint/lang/core/constant", |
Ben Clayton | 7c8832a | 2024-02-13 16:30:15 +0000 | [diff] [blame] | 116 | "//src/tint/lang/core/intrinsic", |
Ben Clayton | 6562555 | 2023-09-11 18:33:43 +0000 | [diff] [blame] | 117 | "//src/tint/lang/core/type", |
Ben Clayton | 1165389 | 2023-09-19 19:15:59 +0000 | [diff] [blame] | 118 | "//src/tint/lang/wgsl", |
Ben Clayton | 6562555 | 2023-09-11 18:33:43 +0000 | [diff] [blame] | 119 | "//src/tint/lang/wgsl/ast", |
Ben Clayton | 3c54ba5 | 2023-11-28 21:36:08 +0000 | [diff] [blame] | 120 | "//src/tint/lang/wgsl/features", |
Ben Clayton | 6562555 | 2023-09-11 18:33:43 +0000 | [diff] [blame] | 121 | "//src/tint/utils/containers", |
| 122 | "//src/tint/utils/diagnostic", |
| 123 | "//src/tint/utils/ice", |
| 124 | "//src/tint/utils/id", |
| 125 | "//src/tint/utils/macros", |
| 126 | "//src/tint/utils/math", |
| 127 | "//src/tint/utils/memory", |
| 128 | "//src/tint/utils/reflection", |
| 129 | "//src/tint/utils/result", |
| 130 | "//src/tint/utils/rtti", |
| 131 | "//src/tint/utils/symbol", |
| 132 | "//src/tint/utils/text", |
| 133 | "//src/tint/utils/traits", |
dan sinclair | d90557b | 2024-08-28 16:15:03 +0000 | [diff] [blame] | 134 | "//src/utils", |
Ben Clayton | 6562555 | 2023-09-11 18:33:43 +0000 | [diff] [blame] | 135 | ], |
| 136 | copts = COPTS, |
| 137 | visibility = ["//visibility:public"], |
| 138 | ) |
| 139 | cc_library( |
| 140 | name = "test", |
| 141 | alwayslink = True, |
| 142 | srcs = [ |
Ben Clayton | d9766dc | 2023-09-21 12:41:20 +0000 | [diff] [blame] | 143 | "builtin_fn_test.cc", |
Ben Clayton | 6562555 | 2023-09-11 18:33:43 +0000 | [diff] [blame] | 144 | "diagnostic_severity_test.cc", |
| 145 | "helper_test.h", |
Ben Clayton | f1dc9e3 | 2024-02-08 17:47:19 +0000 | [diff] [blame] | 146 | "sampler_texture_pair_test.cc", |
Ben Clayton | 6562555 | 2023-09-11 18:33:43 +0000 | [diff] [blame] | 147 | "struct_test.cc", |
| 148 | "value_expression_test.cc", |
| 149 | ], |
| 150 | deps = [ |
| 151 | "//src/tint/api/common", |
| 152 | "//src/tint/lang/core", |
| 153 | "//src/tint/lang/core/constant", |
| 154 | "//src/tint/lang/core/type", |
Ben Clayton | 1165389 | 2023-09-19 19:15:59 +0000 | [diff] [blame] | 155 | "//src/tint/lang/wgsl", |
Ben Clayton | 6562555 | 2023-09-11 18:33:43 +0000 | [diff] [blame] | 156 | "//src/tint/lang/wgsl/ast", |
James Price | 78da664 | 2023-11-06 18:42:21 +0000 | [diff] [blame] | 157 | "//src/tint/lang/wgsl/common", |
Ben Clayton | 3c54ba5 | 2023-11-28 21:36:08 +0000 | [diff] [blame] | 158 | "//src/tint/lang/wgsl/features", |
Ben Clayton | 6562555 | 2023-09-11 18:33:43 +0000 | [diff] [blame] | 159 | "//src/tint/lang/wgsl/program", |
| 160 | "//src/tint/lang/wgsl/resolver", |
| 161 | "//src/tint/lang/wgsl/sem", |
| 162 | "//src/tint/utils/containers", |
| 163 | "//src/tint/utils/diagnostic", |
| 164 | "//src/tint/utils/ice", |
| 165 | "//src/tint/utils/id", |
| 166 | "//src/tint/utils/macros", |
| 167 | "//src/tint/utils/math", |
| 168 | "//src/tint/utils/memory", |
| 169 | "//src/tint/utils/reflection", |
| 170 | "//src/tint/utils/result", |
| 171 | "//src/tint/utils/rtti", |
| 172 | "//src/tint/utils/symbol", |
| 173 | "//src/tint/utils/text", |
| 174 | "//src/tint/utils/traits", |
| 175 | "@gtest", |
dan sinclair | d90557b | 2024-08-28 16:15:03 +0000 | [diff] [blame] | 176 | "//src/utils", |
Ben Clayton | 6562555 | 2023-09-11 18:33:43 +0000 | [diff] [blame] | 177 | ], |
| 178 | copts = COPTS, |
| 179 | visibility = ["//visibility:public"], |
| 180 | ) |
| 181 | |