blob: a39ef7fc88addd220cf71af475d6d43a3b5206c4 [file] [log] [blame]
Austin Engcc2516a2023-10-17 20:57:54 +00001# Copyright 2023 The Dawn & Tint Authors
Ben Clayton65625552023-09-11 18:33:43 +00002#
Austin Engcc2516a2023-10-17 20:57:54 +00003# Redistribution and use in source and binary forms, with or without
4# modification, are permitted provided that the following conditions are met:
Ben Clayton65625552023-09-11 18:33:43 +00005#
Austin Engcc2516a2023-10-17 20:57:54 +00006# 1. Redistributions of source code must retain the above copyright notice, this
7# list of conditions and the following disclaimer.
Ben Clayton65625552023-09-11 18:33:43 +00008#
Austin Engcc2516a2023-10-17 20:57:54 +00009# 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 Clayton65625552023-09-11 18:33:43 +000027
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
37load("//src/tint:flags.bzl", "COPTS")
38load("@bazel_skylib//lib:selects.bzl", "selects")
39cc_library(
40 name = "sem",
41 srcs = [
42 "accessor_expression.cc",
Ben Claytonb8ff13e2023-10-09 12:22:38 +000043 "array.cc",
Ben Clayton65625552023-09-11 18:33:43 +000044 "array_count.cc",
45 "behavior.cc",
46 "block_statement.cc",
47 "break_if_statement.cc",
Ben Clayton65625552023-09-11 18:33:43 +000048 "builtin_enum_expression.cc",
Ben Claytond9766dc2023-09-21 12:41:20 +000049 "builtin_fn.cc",
Ben Clayton65625552023-09-11 18:33:43 +000050 "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 Claytonb8ff13e2023-10-09 12:22:38 +000077 "array.h",
Ben Clayton65625552023-09-11 18:33:43 +000078 "array_count.h",
79 "behavior.h",
80 "block_statement.h",
81 "break_if_statement.h",
Ben Clayton65625552023-09-11 18:33:43 +000082 "builtin_enum_expression.h",
Ben Claytond9766dc2023-09-21 12:41:20 +000083 "builtin_fn.h",
Ben Clayton65625552023-09-11 18:33:43 +000084 "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 Clayton7c8832a2024-02-13 16:30:15 +0000116 "//src/tint/lang/core/intrinsic",
Ben Clayton65625552023-09-11 18:33:43 +0000117 "//src/tint/lang/core/type",
Ben Clayton11653892023-09-19 19:15:59 +0000118 "//src/tint/lang/wgsl",
Ben Clayton65625552023-09-11 18:33:43 +0000119 "//src/tint/lang/wgsl/ast",
Ben Clayton3c54ba52023-11-28 21:36:08 +0000120 "//src/tint/lang/wgsl/features",
Ben Clayton65625552023-09-11 18:33:43 +0000121 "//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 sinclaird90557b2024-08-28 16:15:03 +0000134 "//src/utils",
Ben Clayton65625552023-09-11 18:33:43 +0000135 ],
136 copts = COPTS,
137 visibility = ["//visibility:public"],
138)
139cc_library(
140 name = "test",
141 alwayslink = True,
142 srcs = [
Ben Claytond9766dc2023-09-21 12:41:20 +0000143 "builtin_fn_test.cc",
Ben Clayton65625552023-09-11 18:33:43 +0000144 "diagnostic_severity_test.cc",
145 "helper_test.h",
Ben Claytonf1dc9e32024-02-08 17:47:19 +0000146 "sampler_texture_pair_test.cc",
Ben Clayton65625552023-09-11 18:33:43 +0000147 "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 Clayton11653892023-09-19 19:15:59 +0000155 "//src/tint/lang/wgsl",
Ben Clayton65625552023-09-11 18:33:43 +0000156 "//src/tint/lang/wgsl/ast",
James Price78da6642023-11-06 18:42:21 +0000157 "//src/tint/lang/wgsl/common",
Ben Clayton3c54ba52023-11-28 21:36:08 +0000158 "//src/tint/lang/wgsl/features",
Ben Clayton65625552023-09-11 18:33:43 +0000159 "//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 sinclaird90557b2024-08-28 16:15:03 +0000176 "//src/utils",
Ben Clayton65625552023-09-11 18:33:43 +0000177 ],
178 copts = COPTS,
179 visibility = ["//visibility:public"],
180)
181