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