blob: 75b0dae28ab51abfe6f7c3740b858bad4d7a7fc7 [file] [log] [blame]
Ben Clayton65625552023-09-11 18:33:43 +00001# Copyright 2023 The Tint Authors.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15################################################################################
16# File generated by 'tools/src/cmd/gen' using the template:
17# tools/src/cmd/gen/build/BUILD.bazel.tmpl
18#
19# To regenerate run: './tools/run gen'
20#
21# Do not modify this file directly
22################################################################################
23
24load("//src/tint:flags.bzl", "COPTS")
25load("@bazel_skylib//lib:selects.bzl", "selects")
26cc_library(
27 name = "sem",
28 srcs = [
29 "accessor_expression.cc",
30 "array_count.cc",
31 "behavior.cc",
32 "block_statement.cc",
33 "break_if_statement.cc",
34 "builtin.cc",
35 "builtin_enum_expression.cc",
36 "call.cc",
37 "call_target.cc",
38 "expression.cc",
39 "for_loop_statement.cc",
40 "function.cc",
41 "function_expression.cc",
42 "if_statement.cc",
43 "index_accessor_expression.cc",
44 "info.cc",
45 "load.cc",
46 "loop_statement.cc",
47 "materialize.cc",
48 "member_accessor_expression.cc",
49 "module.cc",
50 "node.cc",
51 "statement.cc",
52 "struct.cc",
53 "switch_statement.cc",
54 "type_expression.cc",
55 "value_constructor.cc",
56 "value_conversion.cc",
57 "value_expression.cc",
58 "variable.cc",
59 "while_statement.cc",
60 ],
61 hdrs = [
62 "accessor_expression.h",
63 "array_count.h",
64 "behavior.h",
65 "block_statement.h",
66 "break_if_statement.h",
67 "builtin.h",
68 "builtin_enum_expression.h",
69 "call.h",
70 "call_target.h",
71 "expression.h",
72 "for_loop_statement.h",
73 "function.h",
74 "function_expression.h",
75 "if_statement.h",
76 "index_accessor_expression.h",
77 "info.h",
78 "load.h",
79 "loop_statement.h",
80 "materialize.h",
81 "member_accessor_expression.h",
82 "module.h",
83 "node.h",
84 "pipeline_stage_set.h",
85 "sampler_texture_pair.h",
86 "statement.h",
87 "struct.h",
88 "switch_statement.h",
89 "type_expression.h",
90 "type_mappings.h",
91 "value_constructor.h",
92 "value_conversion.h",
93 "value_expression.h",
94 "variable.h",
95 "while_statement.h",
96 ],
97 deps = [
98 "//src/tint/api/common",
99 "//src/tint/lang/core",
100 "//src/tint/lang/core/constant",
101 "//src/tint/lang/core/type",
Ben Clayton11653892023-09-19 19:15:59 +0000102 "//src/tint/lang/wgsl",
Ben Clayton65625552023-09-11 18:33:43 +0000103 "//src/tint/lang/wgsl/ast",
104 "//src/tint/utils/containers",
105 "//src/tint/utils/diagnostic",
106 "//src/tint/utils/ice",
107 "//src/tint/utils/id",
108 "//src/tint/utils/macros",
109 "//src/tint/utils/math",
110 "//src/tint/utils/memory",
111 "//src/tint/utils/reflection",
112 "//src/tint/utils/result",
113 "//src/tint/utils/rtti",
114 "//src/tint/utils/symbol",
115 "//src/tint/utils/text",
116 "//src/tint/utils/traits",
117 ],
118 copts = COPTS,
119 visibility = ["//visibility:public"],
120)
121cc_library(
122 name = "test",
123 alwayslink = True,
124 srcs = [
125 "builtin_test.cc",
126 "diagnostic_severity_test.cc",
127 "helper_test.h",
128 "struct_test.cc",
129 "value_expression_test.cc",
130 ],
131 deps = [
132 "//src/tint/api/common",
133 "//src/tint/lang/core",
134 "//src/tint/lang/core/constant",
135 "//src/tint/lang/core/type",
Ben Clayton11653892023-09-19 19:15:59 +0000136 "//src/tint/lang/wgsl",
Ben Clayton65625552023-09-11 18:33:43 +0000137 "//src/tint/lang/wgsl/ast",
138 "//src/tint/lang/wgsl/program",
139 "//src/tint/lang/wgsl/resolver",
140 "//src/tint/lang/wgsl/sem",
141 "//src/tint/utils/containers",
142 "//src/tint/utils/diagnostic",
143 "//src/tint/utils/ice",
144 "//src/tint/utils/id",
145 "//src/tint/utils/macros",
146 "//src/tint/utils/math",
147 "//src/tint/utils/memory",
148 "//src/tint/utils/reflection",
149 "//src/tint/utils/result",
150 "//src/tint/utils/rtti",
151 "//src/tint/utils/symbol",
152 "//src/tint/utils/text",
153 "//src/tint/utils/traits",
154 "@gtest",
155 ],
156 copts = COPTS,
157 visibility = ["//visibility:public"],
158)
159