blob: fa6fdf7ce6077a8356a99cdfa4627066752d2f9d [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
37include(lang/core/constant/BUILD.cmake)
38include(lang/core/intrinsic/BUILD.cmake)
39include(lang/core/ir/BUILD.cmake)
40include(lang/core/type/BUILD.cmake)
41
Ben Clayton55e6d712023-08-17 16:52:22 +000042################################################################################
Ben Clayton3fe67612023-08-17 18:22:29 +000043# Target: tint_lang_core
44# Kind: lib
Ben Clayton55e6d712023-08-17 16:52:22 +000045################################################################################
Ben Clayton3fe67612023-08-17 18:22:29 +000046tint_add_target(tint_lang_core lib
Ben Clayton3a3cb362023-08-16 01:05:21 +000047 lang/core/access.cc
48 lang/core/access.h
49 lang/core/address_space.cc
50 lang/core/address_space.h
51 lang/core/attribute.cc
52 lang/core/attribute.h
53 lang/core/binary_op.cc
54 lang/core/binary_op.h
Ben Claytond9766dc2023-09-21 12:41:20 +000055 lang/core/builtin_fn.cc
56 lang/core/builtin_fn.h
Ben Clayton0a7aa0c2023-09-21 12:41:20 +000057 lang/core/builtin_type.cc
58 lang/core/builtin_type.h
Ben Clayton3a3cb362023-08-16 01:05:21 +000059 lang/core/builtin_value.cc
60 lang/core/builtin_value.h
Ben Clayton3a3cb362023-08-16 01:05:21 +000061 lang/core/evaluation_stage.h
Ben Clayton3a3cb362023-08-16 01:05:21 +000062 lang/core/fluent_types.h
Ben Clayton3a3cb362023-08-16 01:05:21 +000063 lang/core/interpolation.h
64 lang/core/interpolation_sampling.cc
65 lang/core/interpolation_sampling.h
66 lang/core/interpolation_type.cc
67 lang/core/interpolation_type.h
68 lang/core/number.cc
69 lang/core/number.h
70 lang/core/parameter_usage.cc
71 lang/core/parameter_usage.h
72 lang/core/texel_format.cc
73 lang/core/texel_format.h
74 lang/core/unary_op.cc
75 lang/core/unary_op.h
76)
77
Ben Clayton3fe67612023-08-17 18:22:29 +000078tint_target_add_dependencies(tint_lang_core lib
Ben Clayton16fb2542023-09-25 11:43:19 +000079 tint_utils_containers
80 tint_utils_diagnostic
Ben Clayton3fe67612023-08-17 18:22:29 +000081 tint_utils_ice
82 tint_utils_macros
Ben Clayton16fb2542023-09-25 11:43:19 +000083 tint_utils_math
Ben Clayton3fe67612023-08-17 18:22:29 +000084 tint_utils_memory
dan sinclair2fe1f262024-01-09 16:17:56 +000085 tint_utils_reflection
Ben Clayton3fe67612023-08-17 18:22:29 +000086 tint_utils_result
Ben Clayton16fb2542023-09-25 11:43:19 +000087 tint_utils_rtti
Ben Clayton3fe67612023-08-17 18:22:29 +000088 tint_utils_text
89 tint_utils_traits
Ben Clayton3a3cb362023-08-16 01:05:21 +000090)
91
Ben Clayton55e6d712023-08-17 16:52:22 +000092################################################################################
Ben Clayton3fe67612023-08-17 18:22:29 +000093# Target: tint_lang_core_test
94# Kind: test
Ben Clayton55e6d712023-08-17 16:52:22 +000095################################################################################
Ben Clayton3fe67612023-08-17 18:22:29 +000096tint_add_target(tint_lang_core_test test
Ben Clayton3a3cb362023-08-16 01:05:21 +000097 lang/core/access_test.cc
98 lang/core/address_space_test.cc
99 lang/core/attribute_test.cc
Ben Clayton0a7aa0c2023-09-21 12:41:20 +0000100 lang/core/builtin_type_test.cc
Ben Clayton3a3cb362023-08-16 01:05:21 +0000101 lang/core/builtin_value_test.cc
Ben Clayton3a3cb362023-08-16 01:05:21 +0000102 lang/core/interpolation_sampling_test.cc
103 lang/core/interpolation_type_test.cc
104 lang/core/number_test.cc
105 lang/core/texel_format_test.cc
106)
107
Ben Clayton3fe67612023-08-17 18:22:29 +0000108tint_target_add_dependencies(tint_lang_core_test test
109 tint_api_common
110 tint_lang_core
111 tint_lang_core_constant
112 tint_lang_core_type
Ben Clayton11653892023-09-19 19:15:59 +0000113 tint_lang_wgsl
Ben Clayton3fe67612023-08-17 18:22:29 +0000114 tint_lang_wgsl_ast
Ben Clayton3c54ba52023-11-28 21:36:08 +0000115 tint_lang_wgsl_features
Ben Clayton3fe67612023-08-17 18:22:29 +0000116 tint_lang_wgsl_program
117 tint_lang_wgsl_sem
118 tint_utils_containers
119 tint_utils_diagnostic
120 tint_utils_ice
121 tint_utils_id
122 tint_utils_macros
123 tint_utils_math
124 tint_utils_memory
125 tint_utils_reflection
126 tint_utils_result
127 tint_utils_rtti
128 tint_utils_symbol
129 tint_utils_text
130 tint_utils_traits
Ben Clayton3a3cb362023-08-16 01:05:21 +0000131)
132
Ben Clayton3fe67612023-08-17 18:22:29 +0000133tint_target_add_external_dependencies(tint_lang_core_test test
Ben Clayton7545f952023-08-17 09:53:58 +0000134 "gtest"
135)
136
Ben Clayton55e6d712023-08-17 16:52:22 +0000137################################################################################
Ben Clayton3fe67612023-08-17 18:22:29 +0000138# Target: tint_lang_core_bench
139# Kind: bench
Ben Clayton55e6d712023-08-17 16:52:22 +0000140################################################################################
Ben Clayton3fe67612023-08-17 18:22:29 +0000141tint_add_target(tint_lang_core_bench bench
Ben Clayton3a3cb362023-08-16 01:05:21 +0000142 lang/core/access_bench.cc
143 lang/core/address_space_bench.cc
144 lang/core/attribute_bench.cc
Ben Clayton0a7aa0c2023-09-21 12:41:20 +0000145 lang/core/builtin_type_bench.cc
Ben Clayton3a3cb362023-08-16 01:05:21 +0000146 lang/core/builtin_value_bench.cc
Ben Clayton3a3cb362023-08-16 01:05:21 +0000147 lang/core/interpolation_sampling_bench.cc
148 lang/core/interpolation_type_bench.cc
149 lang/core/texel_format_bench.cc
150)
151
Ben Clayton3fe67612023-08-17 18:22:29 +0000152tint_target_add_dependencies(tint_lang_core_bench bench
153 tint_lang_core
Ben Claytonf1dc9e32024-02-08 17:47:19 +0000154 tint_utils_containers
155 tint_utils_diagnostic
156 tint_utils_ice
dan sinclair2fe1f262024-01-09 16:17:56 +0000157 tint_utils_macros
Ben Clayton2555f182024-02-05 12:13:43 +0000158 tint_utils_math
Ben Claytonf1dc9e32024-02-08 17:47:19 +0000159 tint_utils_memory
dan sinclair2fe1f262024-01-09 16:17:56 +0000160 tint_utils_reflection
Ben Claytonf1dc9e32024-02-08 17:47:19 +0000161 tint_utils_result
162 tint_utils_rtti
163 tint_utils_text
Ben Clayton3fe67612023-08-17 18:22:29 +0000164 tint_utils_traits
Ben Clayton3a3cb362023-08-16 01:05:21 +0000165)
Ben Clayton9d1b6102023-09-29 12:12:48 +0000166
167tint_target_add_external_dependencies(tint_lang_core_bench bench
168 "google-benchmark"
169)