Austin Eng | cc2516a | 2023-10-17 20:57:54 +0000 | [diff] [blame] | 1 | # Copyright 2023 The Dawn & Tint Authors |
Ben Clayton | 7d81e55 | 2023-08-17 12:01:50 +0000 | [diff] [blame] | 2 | # |
Austin Eng | cc2516a | 2023-10-17 20:57:54 +0000 | [diff] [blame] | 3 | # Redistribution and use in source and binary forms, with or without |
| 4 | # modification, are permitted provided that the following conditions are met: |
Ben Clayton | 7d81e55 | 2023-08-17 12:01:50 +0000 | [diff] [blame] | 5 | # |
Austin Eng | cc2516a | 2023-10-17 20:57:54 +0000 | [diff] [blame] | 6 | # 1. Redistributions of source code must retain the above copyright notice, this |
| 7 | # list of conditions and the following disclaimer. |
Ben Clayton | 7d81e55 | 2023-08-17 12:01:50 +0000 | [diff] [blame] | 8 | # |
Austin Eng | cc2516a | 2023-10-17 20:57:54 +0000 | [diff] [blame] | 9 | # 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 Clayton | 7d81e55 | 2023-08-17 12:01:50 +0000 | [diff] [blame] | 27 | |
| 28 | ################################################################################ |
Ben Clayton | 57ded6a | 2023-08-22 13:22:22 +0000 | [diff] [blame] | 29 | # File generated by 'tools/src/cmd/gen' using the template: |
Ben Clayton | 7d81e55 | 2023-08-17 12:01:50 +0000 | [diff] [blame] | 30 | # tools/src/cmd/gen/build/BUILD.gn.tmpl |
| 31 | # |
Ben Clayton | 57ded6a | 2023-08-22 13:22:22 +0000 | [diff] [blame] | 32 | # To regenerate run: './tools/run gen' |
| 33 | # |
| 34 | # Do not modify this file directly |
Ben Clayton | 7d81e55 | 2023-08-17 12:01:50 +0000 | [diff] [blame] | 35 | ################################################################################ |
| 36 | |
dan sinclair | d90557b | 2024-08-28 16:15:03 +0000 | [diff] [blame] | 37 | import("../../../scripts/dawn_overrides_with_defaults.gni") |
Ben Clayton | 6663076 | 2023-08-18 08:29:51 +0000 | [diff] [blame] | 38 | import("../../../scripts/tint_overrides_with_defaults.gni") |
Ben Clayton | 7d81e55 | 2023-08-17 12:01:50 +0000 | [diff] [blame] | 39 | |
| 40 | import("${tint_src_dir}/tint.gni") |
| 41 | |
| 42 | libtint_source_set("api") { |
| 43 | sources = [ |
| 44 | "tint.cc", |
| 45 | "tint.h", |
| 46 | ] |
| 47 | deps = [ |
dan sinclair | d90557b | 2024-08-28 16:15:03 +0000 | [diff] [blame] | 48 | "${dawn_root}/src/utils:utils", |
Ben Clayton | 7d81e55 | 2023-08-17 12:01:50 +0000 | [diff] [blame] | 49 | "${tint_src_dir}/api/common", |
Ben Clayton | 7d81e55 | 2023-08-17 12:01:50 +0000 | [diff] [blame] | 50 | "${tint_src_dir}/lang/core", |
| 51 | "${tint_src_dir}/lang/core/constant", |
Ben Clayton | dfc815c | 2023-09-25 15:38:43 +0000 | [diff] [blame] | 52 | "${tint_src_dir}/lang/core/ir", |
Ben Clayton | 7d81e55 | 2023-08-17 12:01:50 +0000 | [diff] [blame] | 53 | "${tint_src_dir}/lang/core/type", |
| 54 | "${tint_src_dir}/lang/hlsl/writer/common", |
Ben Clayton | 1165389 | 2023-09-19 19:15:59 +0000 | [diff] [blame] | 55 | "${tint_src_dir}/lang/wgsl", |
Ben Clayton | 7d81e55 | 2023-08-17 12:01:50 +0000 | [diff] [blame] | 56 | "${tint_src_dir}/lang/wgsl/ast", |
dan sinclair | f472906 | 2024-05-16 01:23:25 +0000 | [diff] [blame] | 57 | "${tint_src_dir}/lang/wgsl/ast/transform", |
James Price | 78da664 | 2023-11-06 18:42:21 +0000 | [diff] [blame] | 58 | "${tint_src_dir}/lang/wgsl/common", |
Ben Clayton | 3c54ba5 | 2023-11-28 21:36:08 +0000 | [diff] [blame] | 59 | "${tint_src_dir}/lang/wgsl/features", |
James Price | 773271b0 | 2024-09-10 20:15:47 +0000 | [diff] [blame] | 60 | "${tint_src_dir}/lang/wgsl/inspector", |
Ben Clayton | 7d81e55 | 2023-08-17 12:01:50 +0000 | [diff] [blame] | 61 | "${tint_src_dir}/lang/wgsl/program", |
Ben Clayton | 7d81e55 | 2023-08-17 12:01:50 +0000 | [diff] [blame] | 62 | "${tint_src_dir}/lang/wgsl/sem", |
James Price | fb728a3 | 2023-12-12 01:07:35 +0000 | [diff] [blame] | 63 | "${tint_src_dir}/lang/wgsl/writer/ir_to_program", |
Ben Clayton | 7d81e55 | 2023-08-17 12:01:50 +0000 | [diff] [blame] | 64 | "${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 Price | 526e4b8 | 2024-01-17 17:01:30 +0000 | [diff] [blame] | 98 | deps += [ |
| 99 | "${tint_src_dir}/lang/spirv/reader", |
| 100 | "${tint_src_dir}/lang/spirv/reader/common", |
| 101 | ] |
Ben Clayton | 7d81e55 | 2023-08-17 12:01:50 +0000 | [diff] [blame] | 102 | } |
| 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 Clayton | 2550b49 | 2023-10-11 10:41:12 +0000 | [diff] [blame] | 110 | |
Ben Clayton | 80b987e | 2023-10-11 14:28:15 +0000 | [diff] [blame] | 111 | if (tint_build_wgsl_reader) { |
| 112 | deps += [ "${tint_src_dir}/lang/wgsl/reader" ] |
| 113 | } |
| 114 | |
Ben Clayton | 2550b49 | 2023-10-11 10:41:12 +0000 | [diff] [blame] | 115 | if (tint_build_wgsl_writer) { |
| 116 | deps += [ "${tint_src_dir}/lang/wgsl/writer" ] |
| 117 | } |
Ben Clayton | 7d81e55 | 2023-08-17 12:01:50 +0000 | [diff] [blame] | 118 | } |