[tint][benchmark] Depend on auto-generated header
For GN, add a new source set template for benchmarks instead of
re-using the unittests template, and add the dependency there.
For CMake, add the dependency to the special case for benchmark
options that we already had.
Bug: 42251289
Change-Id: I9e034763d7fdb707d958c0a1c76fad4ca4df531d
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/200540
Reviewed-by: dan sinclair <dsinclair@chromium.org>
Commit-Queue: James Price <jrprice@google.com>
Auto-Submit: James Price <jrprice@google.com>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
diff --git a/src/tint/CMakeLists.txt b/src/tint/CMakeLists.txt
index 0e0ff6e..93d2772 100644
--- a/src/tint/CMakeLists.txt
+++ b/src/tint/CMakeLists.txt
@@ -259,6 +259,7 @@
function(tint_bench_compile_options TARGET)
tint_core_compile_options(${TARGET})
+ add_dependencies(${TARGET} tint_generate_benchmark_inputs)
target_include_directories(${TARGET} PUBLIC "${DAWN_BUILD_GEN_DIR}")
set_target_properties(${TARGET} PROPERTIES FOLDER "Benchmarks")
endfunction()