blob: d9b2f7ece15b3d599b9c5fa70135e5f14180e4f4 [file] [log] [blame]
Ben Clayton65625552023-09-11 18:33:43 +00001# 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
17load(":flags.bzl", "declare_bool_flag", "declare_os_flag")
18
19# Declares the 'tint_build_*' flags that control what parts of Tint get built
Ben Claytonf1b8a012023-10-11 17:15:52 +000020declare_bool_flag(name = "tint_build_glsl_writer", default = False)
21declare_bool_flag(name = "tint_build_glsl_validator", default = False)
22declare_bool_flag(name = "tint_build_hlsl_writer", default = True)
23declare_bool_flag(name = "tint_build_ir", default = True)
24declare_bool_flag(name = "tint_build_msl_writer", default = True)
25declare_bool_flag(name = "tint_build_spv_reader", default = True)
26declare_bool_flag(name = "tint_build_spv_writer", default = True)
27declare_bool_flag(name = "tint_build_wgsl_reader", default = True)
28declare_bool_flag(name = "tint_build_wgsl_writer", default = True)
Ben Clayton65625552023-09-11 18:33:43 +000029
30# Declares the 'os' flag that control what OS-specific Tint code gets built
31declare_os_flag()