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

Side by Side Diff: tools/gyp/v8.gyp

Issue 845973003: Embed custom script into the snapshot. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « src/snapshot-common.cc ('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')
OLDNEW
1 # Copyright 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 12 matching lines...) Expand all
23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 { 28 {
29 'variables': { 29 'variables': {
30 'icu_use_data_file_flag%': 0, 30 'icu_use_data_file_flag%': 0,
31 'v8_code': 1, 31 'v8_code': 1,
32 'v8_random_seed%': 314159265, 32 'v8_random_seed%': 314159265,
33 'embed_script%': "",
vogelheim 2015/01/12 13:50:44 BUILD.gn probably wants to know about embed_script
34 'mksnapshot_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABL E_SUFFIX)',
33 }, 35 },
34 'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'], 36 'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'],
35 'targets': [ 37 'targets': [
36 { 38 {
37 'target_name': 'v8', 39 'target_name': 'v8',
38 'dependencies_traverse': 1, 40 'dependencies_traverse': 1,
39 'conditions': [ 41 'conditions': [
40 ['want_separate_host_toolset==1', { 42 ['want_separate_host_toolset==1', {
41 'toolsets': ['host', 'target'], 43 'toolsets': ['host', 'target'],
42 }, { 44 }, {
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 ], 164 ],
163 'sources': [ 165 'sources': [
164 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', 166 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
165 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', 167 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
166 '<(INTERMEDIATE_DIR)/snapshot.cc', 168 '<(INTERMEDIATE_DIR)/snapshot.cc',
167 ], 169 ],
168 'actions': [ 170 'actions': [
169 { 171 {
170 'action_name': 'run_mksnapshot', 172 'action_name': 'run_mksnapshot',
171 'inputs': [ 173 'inputs': [
172 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)', 174 '<(mksnapshot_exec)',
175 '<(embed_script)',
173 ], 176 ],
174 'outputs': [ 177 'outputs': [
175 '<(INTERMEDIATE_DIR)/snapshot.cc', 178 '<(INTERMEDIATE_DIR)/snapshot.cc',
176 ], 179 ],
177 'variables': { 180 'variables': {
178 'mksnapshot_flags': [ 181 'mksnapshot_flags': [
179 '--log-snapshot-positions', 182 '--log-snapshot-positions',
180 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log', 183 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log',
181 ], 184 ],
182 'conditions': [ 185 'conditions': [
183 ['v8_random_seed!=0', { 186 ['v8_random_seed!=0', {
184 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'], 187 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'],
185 }], 188 }],
186 ], 189 ],
187 }, 190 },
188 'action': [ 191 'action': [
189 '<@(_inputs)', 192 '<(mksnapshot_exec)',
190 '<@(mksnapshot_flags)', 193 '<@(mksnapshot_flags)',
191 '<@(INTERMEDIATE_DIR)/snapshot.cc' 194 '<@(INTERMEDIATE_DIR)/snapshot.cc',
195 '<(embed_script)',
192 ], 196 ],
193 }, 197 },
194 ], 198 ],
195 }, 199 },
196 { 200 {
197 'target_name': 'v8_nosnapshot', 201 'target_name': 'v8_nosnapshot',
198 'type': 'static_library', 202 'type': 'static_library',
199 'dependencies': [ 203 'dependencies': [
200 'v8_base', 204 'v8_base',
201 ], 205 ],
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 '../..', 267 '../..',
264 ], 268 ],
265 'sources': [ 269 'sources': [
266 '../../src/natives-external.cc', 270 '../../src/natives-external.cc',
267 '../../src/snapshot-external.cc', 271 '../../src/snapshot-external.cc',
268 ], 272 ],
269 'actions': [ 273 'actions': [
270 { 274 {
271 'action_name': 'run_mksnapshot (external)', 275 'action_name': 'run_mksnapshot (external)',
272 'inputs': [ 276 'inputs': [
273 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFI X)', 277 '<(mksnapshot_exec)',
274 ], 278 ],
275 'variables': { 279 'variables': {
276 'mksnapshot_flags': [ 280 'mksnapshot_flags': [
277 '--log-snapshot-positions', 281 '--log-snapshot-positions',
278 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log', 282 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log',
279 ], 283 ],
280 'conditions': [ 284 'conditions': [
281 ['v8_random_seed!=0', { 285 ['v8_random_seed!=0', {
282 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'], 286 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'],
283 }], 287 }],
284 ], 288 ],
285 }, 289 },
286 'conditions': [ 290 'conditions': [
287 ['want_separate_host_toolset==1', { 291 ['want_separate_host_toolset==1', {
288 'target_conditions': [ 292 'target_conditions': [
289 ['_toolset=="host"', { 293 ['_toolset=="host"', {
290 'outputs': [ 294 'outputs': [
291 '<(INTERMEDIATE_DIR)/snapshot.cc', 295 '<(INTERMEDIATE_DIR)/snapshot.cc',
292 '<(PRODUCT_DIR)/snapshot_blob_host.bin', 296 '<(PRODUCT_DIR)/snapshot_blob_host.bin',
293 ], 297 ],
294 'action': [ 298 'action': [
295 '<@(_inputs)', 299 '<(mksnapshot_exec)',
296 '<@(mksnapshot_flags)', 300 '<@(mksnapshot_flags)',
297 '<@(INTERMEDIATE_DIR)/snapshot.cc', 301 '<@(INTERMEDIATE_DIR)/snapshot.cc',
298 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_host.bin ', 302 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_host.bin ',
303 '<(embed_script)',
299 ], 304 ],
300 }, { 305 }, {
301 'outputs': [ 306 'outputs': [
302 '<(INTERMEDIATE_DIR)/snapshot.cc', 307 '<(INTERMEDIATE_DIR)/snapshot.cc',
303 '<(PRODUCT_DIR)/snapshot_blob.bin', 308 '<(PRODUCT_DIR)/snapshot_blob.bin',
304 ], 309 ],
305 'action': [ 310 'action': [
306 '<@(_inputs)', 311 '<(mksnapshot_exec)',
307 '<@(mksnapshot_flags)', 312 '<@(mksnapshot_flags)',
308 '<@(INTERMEDIATE_DIR)/snapshot.cc', 313 '<@(INTERMEDIATE_DIR)/snapshot.cc',
309 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin', 314 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin',
315 '<(embed_script)',
310 ], 316 ],
311 }], 317 }],
312 ], 318 ],
313 }, { 319 }, {
314 'outputs': [ 320 'outputs': [
315 '<(INTERMEDIATE_DIR)/snapshot.cc', 321 '<(INTERMEDIATE_DIR)/snapshot.cc',
316 '<(PRODUCT_DIR)/snapshot_blob.bin', 322 '<(PRODUCT_DIR)/snapshot_blob.bin',
317 ], 323 ],
318 'action': [ 324 'action': [
319 '<@(_inputs)', 325 '<(mksnapshot_exec)',
320 '<@(mksnapshot_flags)', 326 '<@(mksnapshot_flags)',
321 '<@(INTERMEDIATE_DIR)/snapshot.cc', 327 '<@(INTERMEDIATE_DIR)/snapshot.cc',
322 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin', 328 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin',
329 '<(embed_script)',
323 ], 330 ],
324 }], 331 }],
325 ], 332 ],
326 }, 333 },
327 ], 334 ],
328 }], 335 }],
329 ], 336 ],
330 }, 337 },
331 { 338 {
332 'target_name': 'v8_base', 339 'target_name': 'v8_base',
(...skipping 1421 matching lines...) Expand 10 before | Expand all | Expand 10 after
1754 }], 1761 }],
1755 ['want_separate_host_toolset==1', { 1762 ['want_separate_host_toolset==1', {
1756 'toolsets': ['host'], 1763 'toolsets': ['host'],
1757 }, { 1764 }, {
1758 'toolsets': ['target'], 1765 'toolsets': ['target'],
1759 }], 1766 }],
1760 ], 1767 ],
1761 }, 1768 },
1762 ], 1769 ],
1763 } 1770 }
OLDNEW
« no previous file with comments | « src/snapshot-common.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698