blob: fda914f33ab216c567e37c7801a1b720772cdee3 [file] [log] [blame]
Austin Engcc2516a2023-10-17 20:57:54 +00001# Copyright 2023 The Dawn & Tint Authors
Ben Clayton7d81e552023-08-17 12:01:50 +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 Clayton7d81e552023-08-17 12:01:50 +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 Clayton7d81e552023-08-17 12:01:50 +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 Clayton7d81e552023-08-17 12:01:50 +000027
28################################################################################
Ben Clayton57ded6a2023-08-22 13:22:22 +000029# File generated by 'tools/src/cmd/gen' using the template:
Ben Clayton7d81e552023-08-17 12:01:50 +000030# tools/src/cmd/gen/build/BUILD.gn.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 Clayton7d81e552023-08-17 12:01:50 +000035################################################################################
36
dan sinclaird90557b2024-08-28 16:15:03 +000037import("../../../scripts/dawn_overrides_with_defaults.gni")
Ben Clayton66630762023-08-18 08:29:51 +000038import("../../../scripts/tint_overrides_with_defaults.gni")
Ben Clayton7d81e552023-08-17 12:01:50 +000039
40import("${tint_src_dir}/tint.gni")
41
42libtint_source_set("api") {
43 sources = [
44 "tint.cc",
45 "tint.h",
46 ]
47 deps = [
dan sinclaird90557b2024-08-28 16:15:03 +000048 "${dawn_root}/src/utils:utils",
Ben Clayton7d81e552023-08-17 12:01:50 +000049 "${tint_src_dir}/api/common",
Ben Clayton7d81e552023-08-17 12:01:50 +000050 "${tint_src_dir}/lang/core",
51 "${tint_src_dir}/lang/core/constant",
Ben Claytondfc815c2023-09-25 15:38:43 +000052 "${tint_src_dir}/lang/core/ir",
Ben Clayton7d81e552023-08-17 12:01:50 +000053 "${tint_src_dir}/lang/core/type",
54 "${tint_src_dir}/lang/hlsl/writer/common",
Ben Clayton11653892023-09-19 19:15:59 +000055 "${tint_src_dir}/lang/wgsl",
Ben Clayton7d81e552023-08-17 12:01:50 +000056 "${tint_src_dir}/lang/wgsl/ast",
dan sinclairf4729062024-05-16 01:23:25 +000057 "${tint_src_dir}/lang/wgsl/ast/transform",
James Price78da6642023-11-06 18:42:21 +000058 "${tint_src_dir}/lang/wgsl/common",
Ben Clayton3c54ba52023-11-28 21:36:08 +000059 "${tint_src_dir}/lang/wgsl/features",
James Price773271b02024-09-10 20:15:47 +000060 "${tint_src_dir}/lang/wgsl/inspector",
Ben Clayton7d81e552023-08-17 12:01:50 +000061 "${tint_src_dir}/lang/wgsl/program",
Ben Clayton7d81e552023-08-17 12:01:50 +000062 "${tint_src_dir}/lang/wgsl/sem",
James Pricefb728a32023-12-12 01:07:35 +000063 "${tint_src_dir}/lang/wgsl/writer/ir_to_program",
Ben Clayton7d81e552023-08-17 12:01:50 +000064 "${tint_src_dir}/utils/containers",
65 "${tint_src_dir}/utils/diagnostic",
66 "${tint_src_dir}/utils/ice",
67 "${tint_src_dir}/utils/id",
68 "${tint_src_dir}/utils/macros",
69 "${tint_src_dir}/utils/math",
70 "${tint_src_dir}/utils/memory",
71 "${tint_src_dir}/utils/reflection",
72 "${tint_src_dir}/utils/result",
73 "${tint_src_dir}/utils/rtti",
74 "${tint_src_dir}/utils/symbol",
75 "${tint_src_dir}/utils/text",
76 "${tint_src_dir}/utils/traits",
77 ]
78
79 if (tint_build_glsl_writer) {
80 deps += [
81 "${tint_src_dir}/lang/glsl/writer",
82 "${tint_src_dir}/lang/glsl/writer/common",
83 ]
84 }
85
86 if (tint_build_hlsl_writer) {
87 deps += [ "${tint_src_dir}/lang/hlsl/writer" ]
88 }
89
90 if (tint_build_msl_writer) {
91 deps += [
92 "${tint_src_dir}/lang/msl/writer",
93 "${tint_src_dir}/lang/msl/writer/common",
94 ]
95 }
96
97 if (tint_build_spv_reader) {
James Price526e4b82024-01-17 17:01:30 +000098 deps += [
99 "${tint_src_dir}/lang/spirv/reader",
100 "${tint_src_dir}/lang/spirv/reader/common",
101 ]
Ben Clayton7d81e552023-08-17 12:01:50 +0000102 }
103
104 if (tint_build_spv_writer) {
105 deps += [
106 "${tint_src_dir}/lang/spirv/writer",
107 "${tint_src_dir}/lang/spirv/writer/common",
108 ]
109 }
Ben Clayton2550b492023-10-11 10:41:12 +0000110
Ben Clayton80b987e2023-10-11 14:28:15 +0000111 if (tint_build_wgsl_reader) {
112 deps += [ "${tint_src_dir}/lang/wgsl/reader" ]
113 }
114
Ben Clayton2550b492023-10-11 10:41:12 +0000115 if (tint_build_wgsl_writer) {
116 deps += [ "${tint_src_dir}/lang/wgsl/writer" ]
117 }
Ben Clayton7d81e552023-08-17 12:01:50 +0000118}