[tint] Add dependency from `api` to `inspector`
We use includes in `tint.cc` to force our meta build system to
generate dependencies to components that should always be
available. The WGSL inspector was missing from this dependency list
when GLSL, HLSL, and MSL were disabled, as there was no other implicit
dependency to it.
Add an explicit dependency whenever the WGSL reader is enabled, and
re-generate the BUILD files.
Change-Id: I98e0d95ae82ee091be04c4ce8388f5d53987ee44
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/206236
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
Commit-Queue: James Price <jrprice@google.com>
Auto-Submit: James Price <jrprice@google.com>
diff --git a/src/tint/api/BUILD.bazel b/src/tint/api/BUILD.bazel
index 8a0a6c4..120bf20 100644
--- a/src/tint/api/BUILD.bazel
+++ b/src/tint/api/BUILD.bazel
@@ -56,6 +56,7 @@
"//src/tint/lang/wgsl/ast/transform",
"//src/tint/lang/wgsl/common",
"//src/tint/lang/wgsl/features",
+ "//src/tint/lang/wgsl/inspector",
"//src/tint/lang/wgsl/program",
"//src/tint/lang/wgsl/sem",
"//src/tint/lang/wgsl/writer/ir_to_program",
diff --git a/src/tint/api/BUILD.cmake b/src/tint/api/BUILD.cmake
index 0037d83..6372c4e 100644
--- a/src/tint/api/BUILD.cmake
+++ b/src/tint/api/BUILD.cmake
@@ -57,6 +57,7 @@
tint_lang_wgsl_ast_transform
tint_lang_wgsl_common
tint_lang_wgsl_features
+ tint_lang_wgsl_inspector
tint_lang_wgsl_program
tint_lang_wgsl_sem
tint_lang_wgsl_writer_ir_to_program
diff --git a/src/tint/api/BUILD.gn b/src/tint/api/BUILD.gn
index f446619..fda914f 100644
--- a/src/tint/api/BUILD.gn
+++ b/src/tint/api/BUILD.gn
@@ -57,6 +57,7 @@
"${tint_src_dir}/lang/wgsl/ast/transform",
"${tint_src_dir}/lang/wgsl/common",
"${tint_src_dir}/lang/wgsl/features",
+ "${tint_src_dir}/lang/wgsl/inspector",
"${tint_src_dir}/lang/wgsl/program",
"${tint_src_dir}/lang/wgsl/sem",
"${tint_src_dir}/lang/wgsl/writer/ir_to_program",
diff --git a/src/tint/api/tint.cc b/src/tint/api/tint.cc
index 12e47e6..5a3ff9d 100644
--- a/src/tint/api/tint.cc
+++ b/src/tint/api/tint.cc
@@ -55,7 +55,8 @@
#endif
#if TINT_BUILD_WGSL_READER
-#include "src/tint/lang/wgsl/reader/reader.h" // nogncheck
+#include "src/tint/lang/wgsl/inspector/inspector.h" // nogncheck
+#include "src/tint/lang/wgsl/reader/reader.h" // nogncheck
#endif
#if TINT_BUILD_WGSL_WRITER