OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 import("//build/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 import("//build/config/compiler/compiler.gni") | 6 import("//build/config/compiler/compiler.gni") |
7 import("//build/config/sanitizers/sanitizers.gni") | 7 import("//build/config/sanitizers/sanitizers.gni") |
8 import("//build/win/syzygy/syzygy.gni") | 8 import("//build/win/syzygy/syzygy.gni") |
9 | 9 |
10 assert(!syzygy_optimize || !is_syzyasan, | |
11 "Don't do both syzygy_optimize and is_syzyasan") | |
12 | |
13 # Where the output binaries will be placed. | 10 # Where the output binaries will be placed. |
14 syzygy_dest_dir = "$root_out_dir/syzygy" | 11 syzygy_dest_dir = "$root_out_dir/syzygy" |
15 | 12 |
16 if (syzygy_optimize) { | 13 if (is_syzyasan) { |
17 syzygy_optimize("chrome_dll_syzygy") { | |
18 binary_name = "chrome.dll" | |
19 deps = [ | |
20 "//chrome:main_dll", | |
21 ] | |
22 if (is_multi_dll_chrome) { | |
23 data_deps = [ | |
24 ":chrome_child_dll_syzygy", | |
25 ] | |
26 } | |
27 } | |
28 if (is_multi_dll_chrome) { | |
29 # Also instrument chrome_child.dll. | |
30 syzygy_optimize("chrome_child_dll_syzygy") { | |
31 binary_name = "chrome_child.dll" | |
32 deps = [ | |
33 "//chrome:chrome_child", | |
34 ] | |
35 } | |
36 } | |
37 } else if (is_syzyasan) { | |
38 syzygy_asan("chrome_dll_syzygy") { | 14 syzygy_asan("chrome_dll_syzygy") { |
39 binary_name = "chrome.dll" | 15 binary_name = "chrome.dll" |
40 dest_dir = syzygy_dest_dir | 16 dest_dir = syzygy_dest_dir |
41 deps = [ | 17 deps = [ |
42 "//chrome:main_dll", | 18 "//chrome:main_dll", |
43 ] | 19 ] |
44 if (is_multi_dll_chrome) { | 20 if (is_multi_dll_chrome) { |
45 data_deps = [ | 21 data_deps = [ |
46 ":chrome_child_dll_syzygy", | 22 ":chrome_child_dll_syzygy", |
47 ] | 23 ] |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 group("chrome_dll_syzygy") { | 66 group("chrome_dll_syzygy") { |
91 } | 67 } |
92 if (is_multi_dll_chrome) { | 68 if (is_multi_dll_chrome) { |
93 group("chrome_child_dll_syzygy") { | 69 group("chrome_child_dll_syzygy") { |
94 } | 70 } |
95 } | 71 } |
96 } | 72 } |
97 | 73 |
98 # Prevent unused variable warning for code paths where this is unused. | 74 # Prevent unused variable warning for code paths where this is unused. |
99 assert(syzygy_dest_dir != "") | 75 assert(syzygy_dest_dir != "") |
OLD | NEW |