Index: build/win/syzygy/BUILD.gn |
diff --git a/build/win/syzygy/BUILD.gn b/build/win/syzygy/BUILD.gn |
index 1d26b5a6e7c18841f8b7ce1d41e5375ec7941547..a8309e65cc022134dd86cd8bd4db8a7ae91826d6 100644 |
--- a/build/win/syzygy/BUILD.gn |
+++ b/build/win/syzygy/BUILD.gn |
@@ -2,22 +2,40 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
-copy("copy_syzyasan_binaries") { |
- visibility = [ |
- "//chrome/*", |
- "//content/*", |
- ] |
+source_dir = "//third_party/syzygy/binaries/exe" |
- source_dir = "//third_party/syzygy/binaries/exe" |
+template("copy_syzyasan_binaries_base") { |
+ copy_name = "copy_" + target_name |
+ copy(copy_name) { |
+ forward_variables_from(invoker, [ "sources" ]) |
+ outputs = [ |
+ "$root_out_dir/syzygy/{{source_file_part}}", |
+ ] |
+ } |
+} |
+ |
+copy_syzyasan_binaries_base("syzyasan_logging_binaries") { |
sources = [ |
"$source_dir/agent_logger.exe", |
"$source_dir/minidump_symbolizer.py", |
+ ] |
+} |
+ |
+copy_syzyasan_binaries_base("syzyasan_runtime_binaries") { |
+ sources = [ |
"$source_dir/syzyasan_rtl.dll", |
"$source_dir/syzyasan_rtl.dll.pdb", |
] |
+} |
- outputs = [ |
- "$root_out_dir/syzygy/{{source_file_part}}", |
+group("copy_syzyasan_binaries") { |
+ visibility = [ |
+ "//chrome/*", |
+ "//content/*", |
+ ] |
+ deps = [ |
+ ":copy_syzyasan_logging_binaries", |
+ ":copy_syzyasan_runtime_binaries", |
] |
} |