Austin Eng | cc2516a | 2023-10-17 20:57:54 +0000 | [diff] [blame] | 1 | # Copyright 2023 The Dawn & Tint Authors |
Ben Clayton | 3a3cb36 | 2023-08-16 01:05:21 +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 | 3a3cb36 | 2023-08-16 01:05:21 +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 | 3a3cb36 | 2023-08-16 01:05:21 +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 | 3a3cb36 | 2023-08-16 01:05:21 +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 | 3a3cb36 | 2023-08-16 01:05:21 +0000 | [diff] [blame] | 30 | # tools/src/cmd/gen/build/BUILD.cmake.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 | 3a3cb36 | 2023-08-16 01:05:21 +0000 | [diff] [blame] | 35 | ################################################################################ |
| 36 | |
Ben Clayton | c1942cf | 2023-08-16 19:15:21 +0000 | [diff] [blame] | 37 | include(api/common/BUILD.cmake) |
Ben Clayton | c1942cf | 2023-08-16 19:15:21 +0000 | [diff] [blame] | 38 | |
Ben Clayton | 55e6d71 | 2023-08-17 16:52:22 +0000 | [diff] [blame] | 39 | ################################################################################ |
Ben Clayton | 3fe6761 | 2023-08-17 18:22:29 +0000 | [diff] [blame] | 40 | # Target: tint_api |
| 41 | # Kind: lib |
Ben Clayton | 55e6d71 | 2023-08-17 16:52:22 +0000 | [diff] [blame] | 42 | ################################################################################ |
Ben Clayton | 3fe6761 | 2023-08-17 18:22:29 +0000 | [diff] [blame] | 43 | tint_add_target(tint_api lib |
Ben Clayton | 3a3cb36 | 2023-08-16 01:05:21 +0000 | [diff] [blame] | 44 | api/tint.cc |
| 45 | api/tint.h |
| 46 | ) |
| 47 | |
Ben Clayton | 3fe6761 | 2023-08-17 18:22:29 +0000 | [diff] [blame] | 48 | tint_target_add_dependencies(tint_api lib |
| 49 | tint_api_common |
Ben Clayton | 3fe6761 | 2023-08-17 18:22:29 +0000 | [diff] [blame] | 50 | tint_lang_core |
| 51 | tint_lang_core_constant |
Ben Clayton | dfc815c | 2023-09-25 15:38:43 +0000 | [diff] [blame] | 52 | tint_lang_core_ir |
Ben Clayton | 3fe6761 | 2023-08-17 18:22:29 +0000 | [diff] [blame] | 53 | tint_lang_core_type |
| 54 | tint_lang_hlsl_writer_common |
Ben Clayton | 1165389 | 2023-09-19 19:15:59 +0000 | [diff] [blame] | 55 | tint_lang_wgsl |
Ben Clayton | 3fe6761 | 2023-08-17 18:22:29 +0000 | [diff] [blame] | 56 | tint_lang_wgsl_ast |
dan sinclair | f472906 | 2024-05-16 01:23:25 +0000 | [diff] [blame] | 57 | tint_lang_wgsl_ast_transform |
James Price | 78da664 | 2023-11-06 18:42:21 +0000 | [diff] [blame] | 58 | tint_lang_wgsl_common |
Ben Clayton | 3c54ba5 | 2023-11-28 21:36:08 +0000 | [diff] [blame] | 59 | tint_lang_wgsl_features |
Ben Clayton | 3fe6761 | 2023-08-17 18:22:29 +0000 | [diff] [blame] | 60 | tint_lang_wgsl_program |
Ben Clayton | 3fe6761 | 2023-08-17 18:22:29 +0000 | [diff] [blame] | 61 | tint_lang_wgsl_sem |
James Price | fb728a3 | 2023-12-12 01:07:35 +0000 | [diff] [blame] | 62 | tint_lang_wgsl_writer_ir_to_program |
Ben Clayton | 3fe6761 | 2023-08-17 18:22:29 +0000 | [diff] [blame] | 63 | tint_utils_containers |
| 64 | tint_utils_diagnostic |
| 65 | tint_utils_ice |
| 66 | tint_utils_id |
| 67 | tint_utils_macros |
| 68 | tint_utils_math |
| 69 | tint_utils_memory |
| 70 | tint_utils_reflection |
| 71 | tint_utils_result |
| 72 | tint_utils_rtti |
| 73 | tint_utils_symbol |
| 74 | tint_utils_text |
| 75 | tint_utils_traits |
Ben Clayton | 3a3cb36 | 2023-08-16 01:05:21 +0000 | [diff] [blame] | 76 | ) |
| 77 | |
Ben Clayton | 0efa31c | 2023-08-18 18:32:55 +0000 | [diff] [blame] | 78 | if(TINT_BUILD_GLSL_WRITER) |
Ben Clayton | 3fe6761 | 2023-08-17 18:22:29 +0000 | [diff] [blame] | 79 | tint_target_add_dependencies(tint_api lib |
| 80 | tint_lang_glsl_writer |
| 81 | tint_lang_glsl_writer_common |
Ben Clayton | 3a3cb36 | 2023-08-16 01:05:21 +0000 | [diff] [blame] | 82 | ) |
| 83 | endif(TINT_BUILD_GLSL_WRITER) |
| 84 | |
Ben Clayton | 0efa31c | 2023-08-18 18:32:55 +0000 | [diff] [blame] | 85 | if(TINT_BUILD_HLSL_WRITER) |
Ben Clayton | 3fe6761 | 2023-08-17 18:22:29 +0000 | [diff] [blame] | 86 | tint_target_add_dependencies(tint_api lib |
| 87 | tint_lang_hlsl_writer |
Ben Clayton | 3a3cb36 | 2023-08-16 01:05:21 +0000 | [diff] [blame] | 88 | ) |
| 89 | endif(TINT_BUILD_HLSL_WRITER) |
| 90 | |
Ben Clayton | 0efa31c | 2023-08-18 18:32:55 +0000 | [diff] [blame] | 91 | if(TINT_BUILD_MSL_WRITER) |
Ben Clayton | 3fe6761 | 2023-08-17 18:22:29 +0000 | [diff] [blame] | 92 | tint_target_add_dependencies(tint_api lib |
| 93 | tint_lang_msl_writer |
| 94 | tint_lang_msl_writer_common |
Ben Clayton | 3a3cb36 | 2023-08-16 01:05:21 +0000 | [diff] [blame] | 95 | ) |
| 96 | endif(TINT_BUILD_MSL_WRITER) |
| 97 | |
Ben Clayton | 0efa31c | 2023-08-18 18:32:55 +0000 | [diff] [blame] | 98 | if(TINT_BUILD_SPV_READER) |
Ben Clayton | 3fe6761 | 2023-08-17 18:22:29 +0000 | [diff] [blame] | 99 | tint_target_add_dependencies(tint_api lib |
| 100 | tint_lang_spirv_reader |
James Price | 526e4b8 | 2024-01-17 17:01:30 +0000 | [diff] [blame] | 101 | tint_lang_spirv_reader_common |
Ben Clayton | 3a3cb36 | 2023-08-16 01:05:21 +0000 | [diff] [blame] | 102 | ) |
| 103 | endif(TINT_BUILD_SPV_READER) |
| 104 | |
Ben Clayton | 0efa31c | 2023-08-18 18:32:55 +0000 | [diff] [blame] | 105 | if(TINT_BUILD_SPV_WRITER) |
Ben Clayton | 3fe6761 | 2023-08-17 18:22:29 +0000 | [diff] [blame] | 106 | tint_target_add_dependencies(tint_api lib |
| 107 | tint_lang_spirv_writer |
| 108 | tint_lang_spirv_writer_common |
Ben Clayton | 3a3cb36 | 2023-08-16 01:05:21 +0000 | [diff] [blame] | 109 | ) |
| 110 | endif(TINT_BUILD_SPV_WRITER) |
Ben Clayton | 2550b49 | 2023-10-11 10:41:12 +0000 | [diff] [blame] | 111 | |
Ben Clayton | 80b987e | 2023-10-11 14:28:15 +0000 | [diff] [blame] | 112 | if(TINT_BUILD_WGSL_READER) |
| 113 | tint_target_add_dependencies(tint_api lib |
| 114 | tint_lang_wgsl_reader |
| 115 | ) |
| 116 | endif(TINT_BUILD_WGSL_READER) |
| 117 | |
Ben Clayton | 2550b49 | 2023-10-11 10:41:12 +0000 | [diff] [blame] | 118 | if(TINT_BUILD_WGSL_WRITER) |
| 119 | tint_target_add_dependencies(tint_api lib |
| 120 | tint_lang_wgsl_writer |
| 121 | ) |
| 122 | endif(TINT_BUILD_WGSL_WRITER) |