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

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

Issue 643163002: v8_external_snapshot target visible only when using v8_use_external_startup_data (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Mirror natives_blob target Created 6 years, 2 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 | « no previous file | 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 'BUILDING_V8_SHARED', 222 'BUILDING_V8_SHARED',
223 'V8_SHARED', 223 'V8_SHARED',
224 ], 224 ],
225 }], 225 }],
226 ] 226 ]
227 }, 227 },
228 { 228 {
229 'target_name': 'v8_external_snapshot', 229 'target_name': 'v8_external_snapshot',
230 'type': 'static_library', 230 'type': 'static_library',
231 'conditions': [ 231 'conditions': [
232 ['want_separate_host_toolset==1', { 232 [ 'v8_use_external_startup_data==1', {
233 'toolsets': ['host', 'target'],
234 'dependencies': [
235 'mksnapshot#host',
236 'js2c#host',
237 'natives_blob',
238 ]}, {
239 'toolsets': ['target'],
240 'dependencies': [
241 'mksnapshot',
242 'js2c',
243 'natives_blob',
244 ],
245 }],
246 ['component=="shared_library"', {
247 'defines': [
248 'V8_SHARED',
249 'BUILDING_V8_SHARED',
250 ],
251 'direct_dependent_settings': {
252 'defines': [
253 'V8_SHARED',
254 'USING_V8_SHARED',
255 ],
256 },
257 }],
258 ],
259 'dependencies': [
260 'v8_base',
261 ],
262 'include_dirs+': [
263 '../..',
264 ],
265 'sources': [
266 '../../src/natives-external.cc',
267 '../../src/snapshot-external.cc',
268 ],
269 'actions': [
270 {
271 'action_name': 'run_mksnapshot (external)',
272 'inputs': [
273 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)',
274 ],
275 'conditions': [ 233 'conditions': [
276 ['want_separate_host_toolset==1', { 234 ['want_separate_host_toolset==1', {
277 'target_conditions': [ 235 'toolsets': ['host', 'target'],
278 ['_toolset=="host"', { 236 'dependencies': [
279 'outputs': [ 237 'mksnapshot#host',
280 '<(INTERMEDIATE_DIR)/snapshot.cc', 238 'js2c#host',
281 '<(PRODUCT_DIR)/snapshot_blob_host.bin', 239 'natives_blob',
240 ]}, {
241 'toolsets': ['target'],
242 'dependencies': [
243 'mksnapshot',
244 'js2c',
245 'natives_blob',
246 ],
247 }],
248 ['component=="shared_library"', {
249 'defines': [
250 'V8_SHARED',
251 'BUILDING_V8_SHARED',
252 ],
253 'direct_dependent_settings': {
254 'defines': [
255 'V8_SHARED',
256 'USING_V8_SHARED',
257 ],
258 },
259 }],
260 ],
261 'dependencies': [
262 'v8_base',
263 ],
264 'include_dirs+': [
265 '../..',
266 ],
267 'sources': [
268 '../../src/natives-external.cc',
269 '../../src/snapshot-external.cc',
270 ],
271 'actions': [
272 {
273 'action_name': 'run_mksnapshot (external)',
274 'inputs': [
275 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFI X)',
276 ],
277 'conditions': [
278 ['want_separate_host_toolset==1', {
279 'target_conditions': [
280 ['_toolset=="host"', {
281 'outputs': [
282 '<(INTERMEDIATE_DIR)/snapshot.cc',
283 '<(PRODUCT_DIR)/snapshot_blob_host.bin',
284 ],
285 }, {
286 'outputs': [
287 '<(INTERMEDIATE_DIR)/snapshot.cc',
288 '<(PRODUCT_DIR)/snapshot_blob.bin',
289 ],
290 }],
282 ], 291 ],
283 }, { 292 }, {
284 'outputs': [ 293 'outputs': [
285 '<(INTERMEDIATE_DIR)/snapshot.cc', 294 '<(INTERMEDIATE_DIR)/snapshot.cc',
286 '<(PRODUCT_DIR)/snapshot_blob.bin', 295 '<(PRODUCT_DIR)/snapshot_blob.bin',
287 ], 296 ],
288 }], 297 }],
289 ], 298 ],
290 }, { 299 'variables': {
291 'outputs': [ 300 'mksnapshot_flags': [
292 '<(INTERMEDIATE_DIR)/snapshot.cc', 301 '--log-snapshot-positions',
293 '<(PRODUCT_DIR)/snapshot_blob.bin', 302 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log',
303 ],
304 'conditions': [
305 ['v8_random_seed!=0', {
306 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'],
307 }],
308 ],
309 },
310 'action': [
311 '<@(_inputs)',
312 '<@(mksnapshot_flags)',
313 '<@(INTERMEDIATE_DIR)/snapshot.cc',
314 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin',
294 ], 315 ],
295 }], 316 },
296 ], 317 ],
297 'variables': { 318 }],
298 'mksnapshot_flags': [
299 '--log-snapshot-positions',
300 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log',
301 ],
302 'conditions': [
303 ['v8_random_seed!=0', {
304 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'],
305 }],
306 ],
307 },
308 'action': [
309 '<@(_inputs)',
310 '<@(mksnapshot_flags)',
311 '<@(INTERMEDIATE_DIR)/snapshot.cc',
312 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin',
313 ],
314 },
315 ], 319 ],
316 }, 320 },
317 { 321 {
318 'target_name': 'v8_base', 322 'target_name': 'v8_base',
319 'type': 'static_library', 323 'type': 'static_library',
320 'dependencies': [ 324 'dependencies': [
321 'v8_libbase', 325 'v8_libbase',
322 ], 326 ],
323 'variables': { 327 'variables': {
324 'optimize': 'max', 328 'optimize': 'max',
(...skipping 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 }], 1718 }],
1715 ['v8_compress_startup_data=="bz2"', { 1719 ['v8_compress_startup_data=="bz2"', {
1716 'libraries': [ 1720 'libraries': [
1717 '-lbz2', 1721 '-lbz2',
1718 ] 1722 ]
1719 }], 1723 }],
1720 ], 1724 ],
1721 }, 1725 },
1722 ], 1726 ],
1723 } 1727 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698