[tint][GN]: wrap all IR rules in 'if (tint_build_ir)'

Change-Id: Idc75849e337c9436e8a74a9abdb61f71d9370293
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/133700
Auto-Submit: Ben Clayton <bclayton@google.com>
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
Ben Clayton 2023-05-19 12:00:39 +00:00 committed by Dawn LUCI CQ
parent ced1cf33ce
commit 7b2dbeb634
1 changed files with 126 additions and 117 deletions

View File

@ -384,11 +384,16 @@ libtint_source_set("libtint_transform_manager_src") {
]
deps = [
":libtint_ast_transform_base_src",
":libtint_ir_builder_src",
":libtint_ir_src",
":libtint_program_src",
":libtint_transform_src",
]
if (tint_build_ir) {
deps += [
":libtint_ir_builder_src",
":libtint_ir_src",
]
}
}
libtint_source_set("libtint_ast_transform_src") {
@ -1175,7 +1180,8 @@ libtint_source_set("libtint_syntax_tree_writer_src") {
]
}
libtint_source_set("libtint_ir_builder_src") {
if (tint_build_ir) {
libtint_source_set("libtint_ir_builder_src") {
sources = [
"ir/from_program.cc",
"ir/from_program.h",
@ -1192,9 +1198,9 @@ libtint_source_set("libtint_ir_builder_src") {
":libtint_type_src",
":libtint_utils_src",
]
}
}
libtint_source_set("libtint_ir_src") {
libtint_source_set("libtint_ir_src") {
sources = [
"ir/binary.cc",
"ir/binary.h",
@ -1266,6 +1272,7 @@ libtint_source_set("libtint_ir_src") {
":libtint_type_src",
":libtint_utils_src",
]
}
}
source_set("libtint") {
@ -2246,6 +2253,7 @@ if (tint_build_unittests) {
}
}
if (tint_build_ir) {
tint_unittests_source_set("tint_unittests_ir_src") {
sources = [
"ir/binary_test.cc",
@ -2274,6 +2282,7 @@ if (tint_build_unittests) {
":libtint_ir_src",
]
}
}
if (build_with_chromium) {
tint_unittests_source_set("tint_unittests_fuzzer_src") {