| 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, | 10 assert(!syzygy_optimize || !is_syzyasan, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 if (is_official_build) { | 64 if (is_official_build) { |
| 65 dest_dir = "$syzygy_dest_dir/instrumented" | 65 dest_dir = "$syzygy_dest_dir/instrumented" |
| 66 deps += [ ":chrome_child_dll_syzygy_copy" ] | 66 deps += [ ":chrome_child_dll_syzygy_copy" ] |
| 67 } else { | 67 } else { |
| 68 dest_dir = syzygy_dest_dir | 68 dest_dir = syzygy_dest_dir |
| 69 } | 69 } |
| 70 } | 70 } |
| 71 | 71 |
| 72 if (is_official_build) { | 72 if (is_official_build) { |
| 73 # Copies the uninstrumented chrome_child.dll. | 73 # Copies the uninstrumented chrome_child.dll. |
| 74 # GYP version: chrome/chrome_syzygy.gyp:chrome_child_dll_syzygy_copy | |
| 75 copy("chrome_child_dll_syzygy_copy") { | 74 copy("chrome_child_dll_syzygy_copy") { |
| 76 sources = [ | 75 sources = [ |
| 77 "$root_out_dir/chrome_child.dll", | 76 "$root_out_dir/chrome_child.dll", |
| 78 ] | 77 ] |
| 79 outputs = [ | 78 outputs = [ |
| 80 "$syzygy_dest_dir/{{source_file_part}}", | 79 "$syzygy_dest_dir/{{source_file_part}}", |
| 81 ] | 80 ] |
| 82 deps = [ | 81 deps = [ |
| 83 "//chrome:chrome_child", | 82 "//chrome:chrome_child", |
| 84 ] | 83 ] |
| 85 } | 84 } |
| 86 } | 85 } |
| 87 } | 86 } |
| 88 } else { | 87 } else { |
| 89 # No syzygy. Generate dummy targets so other targets can unconditionally | 88 # No syzygy. Generate dummy targets so other targets can unconditionally |
| 90 # depend on these without having to duplicate our conditions. | 89 # depend on these without having to duplicate our conditions. |
| 91 group("chrome_dll_syzygy") { | 90 group("chrome_dll_syzygy") { |
| 92 } | 91 } |
| 93 if (is_multi_dll_chrome) { | 92 if (is_multi_dll_chrome) { |
| 94 group("chrome_child_dll_syzygy") { | 93 group("chrome_child_dll_syzygy") { |
| 95 } | 94 } |
| 96 } | 95 } |
| 97 } | 96 } |
| 98 | 97 |
| 99 # Prevent unused variable warning for code paths where this is unused. | 98 # Prevent unused variable warning for code paths where this is unused. |
| 100 assert(syzygy_dest_dir != "") | 99 assert(syzygy_dest_dir != "") |
| OLD | NEW |