OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 copy("copy_syzyasan_binaries") { | 5 source_dir = "//third_party/syzygy/binaries/exe" |
| 6 |
| 7 template("copy_syzyasan_binaries_base") { |
| 8 copy_name = "copy_" + target_name |
| 9 copy(copy_name) { |
| 10 forward_variables_from(invoker, [ "sources" ]) |
| 11 |
| 12 outputs = [ |
| 13 "$root_out_dir/syzygy/{{source_file_part}}", |
| 14 ] |
| 15 } |
| 16 } |
| 17 |
| 18 copy_syzyasan_binaries_base("syzyasan_logging_binaries") { |
| 19 sources = [ |
| 20 "$source_dir/agent_logger.exe", |
| 21 "$source_dir/minidump_symbolizer.py", |
| 22 ] |
| 23 } |
| 24 |
| 25 copy_syzyasan_binaries_base("syzyasan_runtime_binaries") { |
| 26 sources = [ |
| 27 "$source_dir/syzyasan_rtl.dll", |
| 28 "$source_dir/syzyasan_rtl.dll.pdb", |
| 29 ] |
| 30 } |
| 31 |
| 32 group("copy_syzyasan_binaries") { |
6 visibility = [ | 33 visibility = [ |
7 "//chrome/*", | 34 "//chrome/*", |
8 "//content/*", | 35 "//content/*", |
9 ] | 36 ] |
10 | 37 deps = [ |
11 source_dir = "//third_party/syzygy/binaries/exe" | 38 ":copy_syzyasan_logging_binaries", |
12 | 39 ":copy_syzyasan_runtime_binaries", |
13 sources = [ | |
14 "$source_dir/agent_logger.exe", | |
15 "$source_dir/minidump_symbolizer.py", | |
16 "$source_dir/syzyasan_rtl.dll", | |
17 "$source_dir/syzyasan_rtl.dll.pdb", | |
18 ] | |
19 | |
20 outputs = [ | |
21 "$root_out_dir/syzygy/{{source_file_part}}", | |
22 ] | 40 ] |
23 } | 41 } |
OLD | NEW |