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 'optimize_with_syzygy%': 0,
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.
18 'target_name': 'chrome_dll',
27 'action_name': 'Optimize Chrome binaries with syzygy',
28 'msvs_cygwin_shell': 0,
30 '<(PRODUCT_DIR)\\initial\\chrome.dll',
31 '<(PRODUCT_DIR)\\initial\\chrome_dll.pdb',
34 '<(PRODUCT_DIR)\\chrome.dll',
35 '<(PRODUCT_DIR)\\chrome_dll.pdb',
38 '<(DEPTH)\\third_party\\syzygy\\binaries\\optimize.bat',
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)"',