blob: 2ed5fffb4b6389f29c09ee6ca145dc0c88a05721 [file] [log] [blame]
Austin Engcc2516a2023-10-17 20:57:54 +00001# Copyright 2023 The Dawn & Tint Authors
Ben Clayton3a3cb362023-08-16 01:05:21 +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 Clayton3a3cb362023-08-16 01:05:21 +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 Clayton3a3cb362023-08-16 01:05:21 +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 Clayton3a3cb362023-08-16 01:05:21 +000027
28################################################################################
Ben Clayton57ded6a2023-08-22 13:22:22 +000029# File generated by 'tools/src/cmd/gen' using the template:
Ben Clayton3a3cb362023-08-16 01:05:21 +000030# tools/src/cmd/gen/build/BUILD.cmake.tmpl
31#
Ben Clayton57ded6a2023-08-22 13:22:22 +000032# To regenerate run: './tools/run gen'
33#
34# Do not modify this file directly
Ben Clayton3a3cb362023-08-16 01:05:21 +000035################################################################################
36
dan sinclaircd5a5e92024-06-06 02:09:13 +000037include(lang/core/common/BUILD.cmake)
Ben Clayton3a3cb362023-08-16 01:05:21 +000038include(lang/core/constant/BUILD.cmake)
39include(lang/core/intrinsic/BUILD.cmake)
40include(lang/core/ir/BUILD.cmake)
41include(lang/core/type/BUILD.cmake)
42
Ben Clayton55e6d712023-08-17 16:52:22 +000043################################################################################
Ben Clayton3fe67612023-08-17 18:22:29 +000044# Target: tint_lang_core
45# Kind: lib
Ben Clayton55e6d712023-08-17 16:52:22 +000046################################################################################
Ben Clayton3fe67612023-08-17 18:22:29 +000047tint_add_target(tint_lang_core lib
Ben Clayton3a3cb362023-08-16 01:05:21 +000048 lang/core/access.cc
49 lang/core/access.h
50 lang/core/address_space.cc
51 lang/core/address_space.h
52 lang/core/attribute.cc
53 lang/core/attribute.h
54 lang/core/binary_op.cc
55 lang/core/binary_op.h
Ben Claytond9766dc2023-09-21 12:41:20 +000056 lang/core/builtin_fn.cc
57 lang/core/builtin_fn.h
Ben Clayton0a7aa0c2023-09-21 12:41:20 +000058 lang/core/builtin_type.cc
59 lang/core/builtin_type.h
Ben Clayton3a3cb362023-08-16 01:05:21 +000060 lang/core/builtin_value.cc
61 lang/core/builtin_value.h
Ben Clayton3a3cb362023-08-16 01:05:21 +000062 lang/core/evaluation_stage.h
Ben Clayton3a3cb362023-08-16 01:05:21 +000063 lang/core/fluent_types.h
Ben Clayton3a3cb362023-08-16 01:05:21 +000064 lang/core/interpolation.h
65 lang/core/interpolation_sampling.cc
66 lang/core/interpolation_sampling.h
67 lang/core/interpolation_type.cc
68 lang/core/interpolation_type.h
James Pricea8798b82024-07-04 16:31:11 +000069 lang/core/io_attributes.h
Ben Clayton3a3cb362023-08-16 01:05:21 +000070 lang/core/number.cc
71 lang/core/number.h
72 lang/core/parameter_usage.cc
73 lang/core/parameter_usage.h
dan sinclair23fa64f2024-08-19 22:50:10 +000074 lang/core/subgroup_matrix_kind.cc
75 lang/core/subgroup_matrix_kind.h
Ben Clayton3a3cb362023-08-16 01:05:21 +000076 lang/core/texel_format.cc
77 lang/core/texel_format.h
78 lang/core/unary_op.cc
79 lang/core/unary_op.h
80)
81
Ben Clayton3fe67612023-08-17 18:22:29 +000082tint_target_add_dependencies(tint_lang_core lib
Ben Clayton16fb2542023-09-25 11:43:19 +000083 tint_utils_containers
84 tint_utils_diagnostic
Ben Clayton3fe67612023-08-17 18:22:29 +000085 tint_utils_ice
86 tint_utils_macros
Ben Clayton16fb2542023-09-25 11:43:19 +000087 tint_utils_math
Ben Clayton3fe67612023-08-17 18:22:29 +000088 tint_utils_memory
dan sinclair2fe1f262024-01-09 16:17:56 +000089 tint_utils_reflection
Ben Clayton3fe67612023-08-17 18:22:29 +000090 tint_utils_result
Ben Clayton16fb2542023-09-25 11:43:19 +000091 tint_utils_rtti
Ben Clayton3fe67612023-08-17 18:22:29 +000092 tint_utils_text
93 tint_utils_traits
Ben Clayton3a3cb362023-08-16 01:05:21 +000094)
95
dan sinclaird90557b2024-08-28 16:15:03 +000096tint_target_add_external_dependencies(tint_lang_core lib
97 "src_utils"
98)
99
Ben Clayton55e6d712023-08-17 16:52:22 +0000100################################################################################
Ben Clayton3fe67612023-08-17 18:22:29 +0000101# Target: tint_lang_core_test
102# Kind: test
Ben Clayton55e6d712023-08-17 16:52:22 +0000103################################################################################
Ben Clayton3fe67612023-08-17 18:22:29 +0000104tint_add_target(tint_lang_core_test test
Ben Clayton3a3cb362023-08-16 01:05:21 +0000105 lang/core/access_test.cc
106 lang/core/address_space_test.cc
107 lang/core/attribute_test.cc
Ben Clayton0a7aa0c2023-09-21 12:41:20 +0000108 lang/core/builtin_type_test.cc
Ben Clayton3a3cb362023-08-16 01:05:21 +0000109 lang/core/builtin_value_test.cc
Ben Clayton3a3cb362023-08-16 01:05:21 +0000110 lang/core/interpolation_sampling_test.cc
111 lang/core/interpolation_type_test.cc
112 lang/core/number_test.cc
113 lang/core/texel_format_test.cc
114)
115
Ben Clayton3fe67612023-08-17 18:22:29 +0000116tint_target_add_dependencies(tint_lang_core_test test
117 tint_api_common
118 tint_lang_core
119 tint_lang_core_constant
120 tint_lang_core_type
Ben Clayton11653892023-09-19 19:15:59 +0000121 tint_lang_wgsl
Ben Clayton3fe67612023-08-17 18:22:29 +0000122 tint_lang_wgsl_ast
Ben Clayton3c54ba52023-11-28 21:36:08 +0000123 tint_lang_wgsl_features
Ben Clayton3fe67612023-08-17 18:22:29 +0000124 tint_lang_wgsl_program
125 tint_lang_wgsl_sem
126 tint_utils_containers
127 tint_utils_diagnostic
128 tint_utils_ice
129 tint_utils_id
130 tint_utils_macros
131 tint_utils_math
132 tint_utils_memory
133 tint_utils_reflection
134 tint_utils_result
135 tint_utils_rtti
136 tint_utils_symbol
137 tint_utils_text
138 tint_utils_traits
Ben Clayton3a3cb362023-08-16 01:05:21 +0000139)
140
Ben Clayton3fe67612023-08-17 18:22:29 +0000141tint_target_add_external_dependencies(tint_lang_core_test test
Ben Clayton7545f952023-08-17 09:53:58 +0000142 "gtest"
dan sinclaird90557b2024-08-28 16:15:03 +0000143 "src_utils"
Ben Clayton7545f952023-08-17 09:53:58 +0000144)
145
Ben Clayton55e6d712023-08-17 16:52:22 +0000146################################################################################
Ben Clayton3fe67612023-08-17 18:22:29 +0000147# Target: tint_lang_core_bench
148# Kind: bench
Ben Clayton55e6d712023-08-17 16:52:22 +0000149################################################################################
Ben Clayton3fe67612023-08-17 18:22:29 +0000150tint_add_target(tint_lang_core_bench bench
Ben Clayton3a3cb362023-08-16 01:05:21 +0000151 lang/core/access_bench.cc
152 lang/core/address_space_bench.cc
153 lang/core/attribute_bench.cc
Ben Clayton0a7aa0c2023-09-21 12:41:20 +0000154 lang/core/builtin_type_bench.cc
Ben Clayton3a3cb362023-08-16 01:05:21 +0000155 lang/core/builtin_value_bench.cc
Ben Clayton3a3cb362023-08-16 01:05:21 +0000156 lang/core/interpolation_sampling_bench.cc
157 lang/core/interpolation_type_bench.cc
158 lang/core/texel_format_bench.cc
159)
160
Ben Clayton3fe67612023-08-17 18:22:29 +0000161tint_target_add_dependencies(tint_lang_core_bench bench
162 tint_lang_core
Ben Claytonf1dc9e32024-02-08 17:47:19 +0000163 tint_utils_containers
164 tint_utils_diagnostic
165 tint_utils_ice
dan sinclair2fe1f262024-01-09 16:17:56 +0000166 tint_utils_macros
Ben Clayton2555f182024-02-05 12:13:43 +0000167 tint_utils_math
Ben Claytonf1dc9e32024-02-08 17:47:19 +0000168 tint_utils_memory
dan sinclair2fe1f262024-01-09 16:17:56 +0000169 tint_utils_reflection
Ben Claytonf1dc9e32024-02-08 17:47:19 +0000170 tint_utils_result
171 tint_utils_rtti
172 tint_utils_text
Ben Clayton3fe67612023-08-17 18:22:29 +0000173 tint_utils_traits
Ben Clayton3a3cb362023-08-16 01:05:21 +0000174)
Ben Clayton9d1b6102023-09-29 12:12:48 +0000175
176tint_target_add_external_dependencies(tint_lang_core_bench bench
177 "google-benchmark"
dan sinclaird90557b2024-08-28 16:15:03 +0000178 "src_utils"
Ben Clayton9d1b6102023-09-29 12:12:48 +0000179)