OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 'conditions': [ | 5 'conditions': [ |
6 ['OS=="win" and fastbuild==0', { | 6 ['OS=="win" and fastbuild==0', { |
7 # Reorder the initial chrome DLL executable, placing the optimized | 7 # Reorder the initial chrome DLL executable, placing the optimized |
8 # output and corresponding PDB file into the "syzygy" subdirectory. | 8 # output and corresponding PDB file into the "syzygy" subdirectory. |
9 # If there's a matching chrome.dll-ordering.json file present in | 9 # If there's a matching chrome.dll-ordering.json file present in |
10 # the output directory, chrome.dll will be ordered according to that, | 10 # the output directory, chrome.dll will be ordered according to that, |
11 # otherwise it will be randomized. | 11 # otherwise it will be randomized. |
12 # This target won't build in fastbuild, since there are no PDBs. | 12 # This target won't build in fastbuild, since there are no PDBs. |
13 'targets': [ | 13 'targets': [ |
14 { | 14 { |
15 'target_name': 'chrome_dll_syzygy', | 15 'target_name': 'chrome_dll_syzygy', |
16 'type': 'none', | 16 'type': 'none', |
17 'sources' : [], | 17 'sources' : [], |
18 'dependencies': [ | 18 'dependencies': [ |
19 '<(DEPTH)/chrome/chrome.gyp:chrome_dll', | 19 '<(DEPTH)/chrome/chrome.gyp:chrome_dll', |
20 ], | 20 ], |
21 'variables': { | 21 'variables': { |
22 'dest_dir': '<(PRODUCT_DIR)\\syzygy', | 22 'dest_dir': '<(PRODUCT_DIR)\\syzygy', |
23 }, | 23 }, |
24 'actions': [ | 24 'actions': [ |
25 { | 25 { |
26 'action_name': 'Reorder Chrome with Syzygy', | 26 'action_name': 'Reorder Chrome with Syzygy', |
27 'msvs_cygwin_shell': 0, | 27 'msvs_cygwin_shell': 0, |
28 'inputs': [ | 28 'inputs': [ |
29 '<(PRODUCT_DIR)\\chrome.dll', | 29 '<(PRODUCT_DIR)\\chrome.dll', |
30 '<(PRODUCT_DIR)\\chrome_dll.pdb', | 30 '<(PRODUCT_DIR)\\chrome.dll.pdb', |
31 ], | 31 ], |
32 'outputs': [ | 32 'outputs': [ |
33 '<(dest_dir)\\chrome.dll', | 33 '<(dest_dir)\\chrome.dll', |
34 '<(dest_dir)\\chrome_dll.pdb', | 34 '<(dest_dir)\\chrome.dll.pdb', |
35 ], | 35 ], |
36 'action': [ | 36 'action': [ |
37 'python', | 37 'python', |
38 '<(DEPTH)/chrome/tools/build/win/syzygy_reorder.py', | 38 '<(DEPTH)/chrome/tools/build/win/syzygy_reorder.py', |
39 '--input_executable', '<(PRODUCT_DIR)\\chrome.dll', | 39 '--input_executable', '<(PRODUCT_DIR)\\chrome.dll', |
40 '--input_symbol', '<(PRODUCT_DIR)\\chrome_dll.pdb', | 40 '--input_symbol', '<(PRODUCT_DIR)\\chrome.dll.pdb', |
41 '--destination_dir', '<(dest_dir)', | 41 '--destination_dir', '<(dest_dir)', |
42 ], | 42 ], |
43 }, | 43 }, |
44 ], | 44 ], |
45 }, | 45 }, |
46 ], | 46 ], |
47 }], | 47 }], |
48 ], | 48 ], |
49 } | 49 } |
OLD | NEW |