Ben Clayton | 6562555 | 2023-09-11 18:33:43 +0000 | [diff] [blame] | 1 | # Copyright 2023 The Tint Authors. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | # GEN_BUILD:DO_NOT_GENERATE - This is a hand-crafted file. |
| 16 | |
| 17 | load(":flags.bzl", "declare_bool_flag", "declare_os_flag") |
| 18 | |
| 19 | # Declares the 'tint_build_*' flags that control what parts of Tint get built |
Ben Clayton | f1b8a01 | 2023-10-11 17:15:52 +0000 | [diff] [blame] | 20 | declare_bool_flag(name = "tint_build_glsl_writer", default = False) |
| 21 | declare_bool_flag(name = "tint_build_glsl_validator", default = False) |
| 22 | declare_bool_flag(name = "tint_build_hlsl_writer", default = True) |
| 23 | declare_bool_flag(name = "tint_build_ir", default = True) |
| 24 | declare_bool_flag(name = "tint_build_msl_writer", default = True) |
| 25 | declare_bool_flag(name = "tint_build_spv_reader", default = True) |
| 26 | declare_bool_flag(name = "tint_build_spv_writer", default = True) |
| 27 | declare_bool_flag(name = "tint_build_wgsl_reader", default = True) |
| 28 | declare_bool_flag(name = "tint_build_wgsl_writer", default = True) |
Ben Clayton | 6562555 | 2023-09-11 18:33:43 +0000 | [diff] [blame] | 29 | |
| 30 | # Declares the 'os' flag that control what OS-specific Tint code gets built |
| 31 | declare_os_flag() |