1 # Copyright (c) 2011 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.
6 ['OS=="win" and fastbuild==0', {
7 # Reorder or instrument the initial chrome DLL executable, placing the
8 # optimized output and corresponding PDB file into the "syzygy"
10 # This target won't build in fastbuild, since there are no PDBs.
13 'target_name': 'chrome_dll_syzygy',
17 '<(DEPTH)/chrome/chrome.gyp:chrome_dll',
20 'dest_dir': '<(PRODUCT_DIR)\\syzygy',
24 # Reorder chrome DLL executable.
25 # If there's a matching chrome.dll-ordering.json file present in
26 # the output directory, chrome.dll will be ordered according to
27 # that, otherwise it will be randomized.
30 'action_name': 'Reorder Chrome with Syzygy',
31 'msvs_cygwin_shell': 0,
33 '<(PRODUCT_DIR)\\chrome.dll',
34 '<(PRODUCT_DIR)\\chrome.dll.pdb',
37 '<(dest_dir)\\chrome.dll',
38 '<(dest_dir)\\chrome.dll.pdb',
42 '<(DEPTH)/chrome/tools/build/win/syzygy_reorder.py',
43 '--input_executable', '<(PRODUCT_DIR)\\chrome.dll',
44 '--input_symbol', '<(PRODUCT_DIR)\\chrome.dll.pdb',
45 '--destination_dir', '<(dest_dir)',
50 # Instrument chrome DLL executable with SyzyAsan.
53 'action_name': 'Instrument Chrome with SyzyAsan',
54 'msvs_cygwin_shell': 0,
56 '<(PRODUCT_DIR)\\chrome.dll',
57 '<(PRODUCT_DIR)\\chrome.dll.pdb',
60 '<(dest_dir)\\chrome.dll',
61 '<(dest_dir)\\chrome.dll.pdb',
65 '<(DEPTH)/chrome/tools/build/win/syzygy_instrument.py',
67 '--agent_dll', '<(DEPTH)\\third_party\\syzygy\\binaries'
68 '\\exe\\asan_rtl.dll',
69 '--input_executable', '<(PRODUCT_DIR)\\chrome.dll',
70 '--input_symbol', '<(PRODUCT_DIR)\\chrome.dll.pdb',
71 '--destination_dir', '<(dest_dir)',