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 'variables': { | |
6 'optimize_with_syzygy%': 0, | |
7 }, | |
8 'conditions': [ | |
9 ['OS=="win" and optimize_with_syzygy==1', { | |
10 # Optimize the initial chrome DLL file, placing the optimized | |
11 # output and corresponding PDB file into the product directory. | |
12 # If fastbuild!=0 then no PDB files are generated by the build | |
13 # and the syzygy optimizations cannot run (they use the PDB | |
14 # information to properly understand the DLLs contents), so | |
15 # syzygy optimization cannot be performed. | |
16 'targets': [ | |
17 { | |
18 'target_name': 'chrome_dll', | |
19 'type': 'none', | |
20 'sources' : [], | |
21 'dependencies': [ | |
22 'chrome_dll_initial', | |
23 'chrome', | |
24 ], | |
25 'actions': [ | |
26 { | |
27 'action_name': 'Optimize Chrome binaries with syzygy', | |
28 'msvs_cygwin_shell': 0, | |
29 'inputs': [ | |
30 '<(PRODUCT_DIR)\\initial\\chrome.dll', | |
31 '<(PRODUCT_DIR)\\initial\\chrome_dll.pdb', | |
32 ], | |
33 'outputs': [ | |
34 '<(PRODUCT_DIR)\\chrome.dll', | |
35 '<(PRODUCT_DIR)\\chrome_dll.pdb', | |
36 ], | |
37 'action': [ | |
38 '<(DEPTH)\\third_party\\syzygy\\binaries\\optimize.bat', | |
39 '--verbose', | |
40 '--input-dir="<(PRODUCT_DIR)"', | |
41 '--input-dll="<(PRODUCT_DIR)\\initial\\chrome.dll"', | |
42 '--input-pdb="<(PRODUCT_DIR)\\initial\\chrome_dll.pdb"', | |
43 '--output-dir="<(INTERMEDIATE_DIR)\\optimized"', | |
44 '--copy-to="<(PRODUCT_DIR)"', | |
45 ], | |
46 }, | |
47 ], | |
48 }, | |
49 ], | |
50 }], | |
51 ], | |
52 } | |
OLD | NEW |