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

Side by Side Diff: chrome/chrome_dll.gypi

Issue 7464040: Integrate syzygy (optionally) into the chrome build process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: gcl sync to latest for an additional try-server invocation 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
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/chrome_dll_syzygy.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 'target_defaults': { 5 'target_defaults': {
6 'variables': { 6 'variables': {
7 'chrome_dll_target': 0, 7 'chrome_dll_target': 0,
8 }, 8 },
9 'target_conditions': [ 9 'target_conditions': [
10 ['chrome_dll_target==1', { 10 ['chrome_dll_target==1', {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 }, 56 },
57 }], # OS=="win" 57 }], # OS=="win"
58 ], # conditions 58 ], # conditions
59 }], 59 }],
60 ], 60 ],
61 }, 61 },
62 'conditions': [ 62 'conditions': [
63 ['OS=="mac" or OS=="win"', { 63 ['OS=="mac" or OS=="win"', {
64 'targets': [ 64 'targets': [
65 { 65 {
66 'target_name': 'chrome_dll',
67 'type': 'shared_library',
68 'variables': { 66 'variables': {
69 'chrome_dll_target': 1, 67 'chrome_dll_target': 1,
68 'conditions' : [
69 ['OS=="win"', {
70 # On Windows we use build chrome_dll as an intermediate target
71 # then have a subsequent step which either optimizes it to its
72 # final location, or copies it to its final location, depending
73 # on whether or not optimize_with_syzygy==1. Please, refer to
74 # chrome_dll_syzygy.gypi for the subsequent defintion of the
75 # Windows chrome_dll target.
76 'dll_target_name': 'chrome_dll_initial',
77 }, {
78 'dll_target_name': 'chrome_dll',
79 }],
80 ],
70 }, 81 },
82 'target_name': '<(dll_target_name)',
83 'type': 'shared_library',
71 'dependencies': [ 84 'dependencies': [
72 '<@(chromium_dependencies)', 85 '<@(chromium_dependencies)',
73 'app/policy/cloud_policy_codegen.gyp:policy', 86 'app/policy/cloud_policy_codegen.gyp:policy',
74 ], 87 ],
75 'conditions': [ 88 'conditions': [
76 ['OS=="win"', { 89 ['OS=="win"', {
77 'product_name': 'chrome', 90 'product_name': 'chrome',
78 'dependencies': [ 91 'dependencies': [
79 # On Windows, link the dependencies (libraries) that make 92 # On Windows, link the dependencies (libraries) that make
80 # up actual Chromium functionality into this .dll. 93 # up actual Chromium functionality into this .dll.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.rc', 139 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.rc',
127 140
128 # TODO(sgk): left-over from pre-gyp build, figure out 141 # TODO(sgk): left-over from pre-gyp build, figure out
129 # if we still need them and/or how to update to gyp. 142 # if we still need them and/or how to update to gyp.
130 #'app/check_dependents.bat', 143 #'app/check_dependents.bat',
131 #'app/chrome.dll.deps', 144 #'app/chrome.dll.deps',
132 ], 145 ],
133 'msvs_settings': { 146 'msvs_settings': {
134 'VCLinkerTool': { 147 'VCLinkerTool': {
135 'ImportLibrary': '$(OutDir)\\lib\\chrome_dll.lib', 148 'ImportLibrary': '$(OutDir)\\lib\\chrome_dll.lib',
136 'ProgramDatabaseFile': '$(OutDir)\\chrome_dll.pdb', 149 # On Windows we use build chrome_dll as an intermediate target
150 # then have a subsequent step which either optimizes it to its
151 # final location, or copies it to its final location, based
152 # on whether or not optimize_with_syzygy==1.
153 'ProgramDatabaseFile': '$(OutDir)\\initial\\chrome_dll.pdb',
154 'OutputFile': '$(OutDir)\\initial\\chrome.dll',
155 'conditions': [
156 ['fastbuild==0', {
157 # This corresponds to the /PROFILE flag which ensures the PDB
158 # file contains FIXUP information. This information is use d
159 # by the Syzygy optimization tool. Syzygy optimization is
160 # disabled when fastbuild!=0.
161 'Profile': 'true',
162 }],
163 ],
137 }, 164 },
138 }, 165 },
139 }], # OS=="win" 166 }], # OS=="win"
140 ['OS=="mac"', { 167 ['OS=="mac"', {
141 # The main browser executable's name is <(mac_product_name). 168 # The main browser executable's name is <(mac_product_name).
142 # Certain things will get confused if two modules in the 169 # Certain things will get confused if two modules in the
143 # executable share the same name, so append " Framework" to the 170 # executable share the same name, so append " Framework" to the
144 # product_name used for the framework. This will result in 171 # product_name used for the framework. This will result in
145 # a name like "Chromium Framework.framework". 172 # a name like "Chromium Framework.framework".
146 'product_name': '<(mac_product_name) Framework', 173 'product_name': '<(mac_product_name) Framework',
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 'LinkIncremental': '<(msvs_debug_link_nonincremental)', 739 'LinkIncremental': '<(msvs_debug_link_nonincremental)',
713 }, 740 },
714 }, 741 },
715 }, 742 },
716 }, 743 },
717 }, # target chrome_dll 744 }, # target chrome_dll
718 ], 745 ],
719 }], 746 }],
720 ], 747 ],
721 } 748 }
OLDNEW
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/chrome_dll_syzygy.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698