Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: chrome/syzygy.gypi

Issue 7464040: Integrate syzygy (optionally) into the chrome build process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: always use intermediate chome_dll target on windows and pull syzygy from public repo Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« chrome/chrome_dll.gypi ('K') | « chrome/chrome_exe.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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"', {
10 'targets': [
11 {
12 'target_name': 'chrome_dll',
M-A Ruel 2011/08/03 17:32:59 I still don't like having this target in a separat
Roger McFarlane (Google) 2011/08/03 17:56:35 Merging this into chrome_dll.gypi would introduce
13 'type': 'none',
14 'sources' : [],
15 'dependencies': [
16 'chrome_dll_initial',
17 'chrome',
18 ],
19 'conditions': [
20 ['optimize_with_syzygy==1', {
21 # Optimize the initial chrome DLL and PDB files, placing the
22 # optimized output into the product directory.
23 'actions': [
24 {
25 'inputs': [
26 '<(PRODUCT_DIR)\\initial\\chrome.dll',
27 '<(PRODUCT_DIR)\\initial\\chrome_dll.pdb',
28 ],
29 'outputs': [
30 '<(PRODUCT_DIR)\\chrome.dll',
31 '<(PRODUCT_DIR)\\chrome_dll.pdb',
32 ],
33 'action_name': 'Optimize Chrome binaries with syzygy',
34 'msvs_cygwin_shell': 0,
35 'action': [
36 '<(DEPTH)\\third_party\\syzygy\\binaries\\optimize.bat',
37 '--verbose',
38 '--input-dir="<(PRODUCT_DIR)"',
39 '--input-dll="<(PRODUCT_DIR)\\initial\\chrome.dll"',
40 '--input-pdb="<(PRODUCT_DIR)\\initial\\chrome_dll.pdb"',
41 '--output-dir="<(INTERMEDIATE_DIR)\\optimized"',
42 '--copy-to="<(PRODUCT_DIR)"',
43 ],
44 }
45 ],
46 }, {
47 # optimize_with_syzygy != 1
48 # Simply copy the chrome DLL and PDB files into the product
49 # directory.
50 'actions': [
51 {
52 'action_name': 'Copy chrome.dll to product directory',
53 'msvs_cygwin_shell': 0,
54 'variables': {
55 'input': '<(PRODUCT_DIR)\\initial\\chrome.dll',
56 'output': '<(PRODUCT_DIR)\\chrome.dll',
57 },
58 'inputs': ['<(input)'],
59 'outputs': ['<(output)'],
60 'action': ['copy', '<(input)', '<(output)'],
chrisha 2011/08/03 17:16:27 There's a 'copies' functionality built in to GYP.
M-A Ruel 2011/08/03 17:32:59 hardlink ftw?
Roger McFarlane (Google) 2011/08/03 17:56:35 Excellent! Thanks for the tip.
Roger McFarlane (Google) 2011/08/03 17:56:35 Please elucidate? :) Not sure a hard link would
Roger McFarlane (Google) 2011/08/03 18:22:18 Done.
Roger McFarlane (Google) 2011/08/03 18:22:18 Siggi's reply seems to have vanished into the ethe
61 },
62 {
63 'action_name': 'Copy chrome_dll.pdb to product directory',
64 'msvs_cygwin_shell': 0,
65 'variables': {
66 'input': '<(PRODUCT_DIR)\\initial\\chrome_dll.pdb',
67 'output': '<(PRODUCT_DIR)\\chrome_dll.pdb',
68 },
69 'inputs': ['<(input)'],
70 'outputs': ['<(output)'],
71 'action': ['copy', '<(input)', '<(output)'],
72 },
73 ],
74 }],
75 ], # conditions
76 },
77 ],
78 }],
79 ],
80 }
OLDNEW
« chrome/chrome_dll.gypi ('K') | « chrome/chrome_exe.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698