1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 # Intended to be included by chrome_syzygy.gyp. A variable 'dll_name' should
6 # be set to the base name of the DLL. This is used to generate the build steps
7 # for both chrome.dll and chrome_child.dll when in multiple dll mode.
9 # Reorder or instrument the initial chrome DLL executable, placing the
10 # optimized output and corresponding PDB file into the "syzygy"
12 # This target won't build in fastbuild, since there are no PDBs.
14 '<(DEPTH)/chrome/chrome.gyp:<(dll_name)_dll',
17 ['syzyasan==0 and syzygy_optimize==1', {
18 # Reorder chrome DLL executable.
19 # If there's a matching chrome.dll-ordering.json file present in
20 # the output directory, chrome.dll will be ordered according to
21 # that, otherwise it will be randomized.
24 'action_name': 'Reorder Chrome with Syzygy',
26 '<(PRODUCT_DIR)/<(dll_name).dll',
27 '<(PRODUCT_DIR)/<(dll_name).dll.pdb',
30 '<(dest_dir)/<(dll_name).dll',
31 '<(dest_dir)/<(dll_name).dll.pdb',
35 '<(DEPTH)/chrome/tools/build/win/syzygy_reorder.py',
36 '--input_executable', '<(PRODUCT_DIR)/<(dll_name).dll',
37 '--input_symbol', '<(PRODUCT_DIR)/<(dll_name).dll.pdb',
38 '--destination_dir', '<(dest_dir)',
43 ['syzyasan==1 and syzygy_optimize==0', {
44 # Instrument chrome DLL executable with SyzyAsan.
47 'action_name': 'Instrument Chrome with SyzyAsan',
49 '<(DEPTH)/chrome/tools/build/win/win-syzyasan-filter.txt',
50 '<(PRODUCT_DIR)/<(dll_name).dll',
53 '<(dest_dir)/<(dll_name).dll',
54 '<(dest_dir)/<(dll_name).dll.pdb',
55 '<(dest_dir)/win-syzyasan-filter-<(dll_name).txt.json',
59 '<(DEPTH)/chrome/tools/build/win/syzygy_instrument.py',
61 '--input_executable', '<(PRODUCT_DIR)/<(dll_name).dll',
62 '--input_symbol', '<(PRODUCT_DIR)/<(dll_name).dll.pdb',
64 '<(DEPTH)/chrome/tools/build/win/win-syzyasan-filter.txt',
65 '--output-filter-file',
66 '<(dest_dir)/win-syzyasan-filter-<(dll_name).txt.json',
67 '--destination_dir', '<(dest_dir)',
72 'copy_syzyasan_binaries',