OLD | NEW |
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 'dependencies': ['v8_base', 'v8_nosnapshot'], | 114 'dependencies': ['v8_base', 'v8_nosnapshot'], |
115 }], | 115 }], |
116 ['v8_use_snapshot=="true" and v8_use_external_startup_data==0', { | 116 ['v8_use_snapshot=="true" and v8_use_external_startup_data==0', { |
117 # The dependency on v8_base should come from a transitive | 117 # The dependency on v8_base should come from a transitive |
118 # dependency however the Android toolchain requires libv8_base.a | 118 # dependency however the Android toolchain requires libv8_base.a |
119 # to appear before libv8_snapshot.a so it's listed explicitly. | 119 # to appear before libv8_snapshot.a so it's listed explicitly. |
120 'dependencies': ['v8_base', 'v8_snapshot'], | 120 'dependencies': ['v8_base', 'v8_snapshot'], |
121 }], | 121 }], |
122 ['v8_use_snapshot=="true" and v8_use_external_startup_data==1 and want_s
eparate_host_toolset==0', { | 122 ['v8_use_snapshot=="true" and v8_use_external_startup_data==1 and want_s
eparate_host_toolset==0', { |
123 'dependencies': ['v8_base', 'v8_external_snapshot'], | 123 'dependencies': ['v8_base', 'v8_external_snapshot'], |
124 'inputs': ['<(PRODUCT_DIR)/snapshot_blob.bin'], | 124 'inputs': [ '<(PRODUCT_DIR)/snapshot_blob.bin', ], |
125 'conditions': [ | |
126 ['v8_separate_ignition_snapshot==1', { | |
127 'inputs': ['<(PRODUCT_DIR)/snapshot_blob_ignition.bin'], | |
128 }], | |
129 ] | |
130 }], | 125 }], |
131 ['v8_use_snapshot=="true" and v8_use_external_startup_data==1 and want_s
eparate_host_toolset==1', { | 126 ['v8_use_snapshot=="true" and v8_use_external_startup_data==1 and want_s
eparate_host_toolset==1', { |
132 'dependencies': ['v8_base', 'v8_external_snapshot'], | 127 'dependencies': ['v8_base', 'v8_external_snapshot'], |
133 'target_conditions': [ | 128 'target_conditions': [ |
134 ['_toolset=="host"', { | 129 ['_toolset=="host"', { |
135 'inputs': ['<(PRODUCT_DIR)/snapshot_blob_host.bin'], | 130 'inputs': [ |
| 131 '<(PRODUCT_DIR)/snapshot_blob_host.bin', |
| 132 ], |
136 }, { | 133 }, { |
137 'inputs': ['<(PRODUCT_DIR)/snapshot_blob.bin'], | 134 'inputs': [ |
138 }], | 135 '<(PRODUCT_DIR)/snapshot_blob.bin', |
139 ], | |
140 'conditions': [ | |
141 ['v8_separate_ignition_snapshot==1', { | |
142 'target_conditions': [ | |
143 ['_toolset=="host"', { | |
144 'inputs': ['<(PRODUCT_DIR)/snapshot_blob_ignition_host.bin'], | |
145 }, { | |
146 'inputs': ['<(PRODUCT_DIR)/snapshot_blob_ignition.bin'], | |
147 }], | |
148 ], | 136 ], |
149 }], | 137 }], |
150 ], | 138 ], |
151 }], | 139 }], |
152 ['want_separate_host_toolset==1', { | 140 ['want_separate_host_toolset==1', { |
153 'toolsets': ['host', 'target'], | 141 'toolsets': ['host', 'target'], |
154 }, { | 142 }, { |
155 'toolsets': ['target'], | 143 'toolsets': ['target'], |
156 }], | 144 }], |
157 ] | 145 ] |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 'V8_SHARED', | 276 'V8_SHARED', |
289 'BUILDING_V8_SHARED', | 277 'BUILDING_V8_SHARED', |
290 ], | 278 ], |
291 'direct_dependent_settings': { | 279 'direct_dependent_settings': { |
292 'defines': [ | 280 'defines': [ |
293 'V8_SHARED', | 281 'V8_SHARED', |
294 'USING_V8_SHARED', | 282 'USING_V8_SHARED', |
295 ], | 283 ], |
296 }, | 284 }, |
297 }], | 285 }], |
298 # Extra snapshot blob for ignition. | |
299 ['v8_separate_ignition_snapshot==1', { | |
300 # This is concatenated to the other actions list of | |
301 # v8_external_snapshot. | |
302 'actions': [ | |
303 { | |
304 'action_name': 'run_mksnapshot (ignition)', | |
305 'inputs': ['<(mksnapshot_exec)'], | |
306 'variables': { | |
307 # TODO: Extract common mksnapshot_flags to a separate | |
308 # variable. | |
309 'mksnapshot_flags_ignition': [ | |
310 '--ignition', | |
311 ], | |
312 'conditions': [ | |
313 ['v8_random_seed!=0', { | |
314 'mksnapshot_flags_ignition': ['--random-seed', '<(v8_ran
dom_seed)'], | |
315 }], | |
316 ['v8_vector_stores!=0', { | |
317 'mksnapshot_flags_ignition': ['--vector-stores'], | |
318 }], | |
319 ], | |
320 }, | |
321 'conditions': [ | |
322 ['want_separate_host_toolset==1', { | |
323 'target_conditions': [ | |
324 ['_toolset=="host"', { | |
325 'outputs': ['<(PRODUCT_DIR)/snapshot_blob_ignition_hos
t.bin'], | |
326 'action': [ | |
327 '<(mksnapshot_exec)', | |
328 '<@(mksnapshot_flags_ignition)', | |
329 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_igni
tion_host.bin', | |
330 '<(embed_script)', | |
331 '<(warmup_script)', | |
332 ], | |
333 }, { | |
334 'outputs': ['<(PRODUCT_DIR)/snapshot_blob_ignition.bin
'], | |
335 'action': [ | |
336 '<(mksnapshot_exec)', | |
337 '<@(mksnapshot_flags_ignition)', | |
338 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_igni
tion.bin', | |
339 '<(embed_script)', | |
340 '<(warmup_script)', | |
341 ], | |
342 }], | |
343 ], | |
344 }, { | |
345 'outputs': ['<(PRODUCT_DIR)/snapshot_blob_ignition.bin'], | |
346 'action': [ | |
347 '<(mksnapshot_exec)', | |
348 '<@(mksnapshot_flags_ignition)', | |
349 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_ignition
.bin', | |
350 '<(embed_script)', | |
351 '<(warmup_script)', | |
352 ], | |
353 }], | |
354 ], | |
355 }, | |
356 ], | |
357 }], | |
358 ], | 286 ], |
359 'dependencies': [ | 287 'dependencies': [ |
360 'v8_base', | 288 'v8_base', |
361 ], | 289 ], |
362 'include_dirs+': [ | 290 'include_dirs+': [ |
363 '../..', | 291 '../..', |
364 ], | 292 ], |
365 'sources': [ | 293 'sources': [ |
366 '../../src/snapshot/natives-external.cc', | 294 '../../src/snapshot/natives-external.cc', |
367 '../../src/snapshot/snapshot-external.cc', | 295 '../../src/snapshot/snapshot-external.cc', |
368 ], | 296 ], |
369 'actions': [ | 297 'actions': [ |
370 { | 298 { |
371 'action_name': 'run_mksnapshot (external)', | 299 'action_name': 'run_mksnapshot (external)', |
372 'inputs': ['<(mksnapshot_exec)'], | 300 'inputs': [ |
| 301 '<(mksnapshot_exec)', |
| 302 ], |
373 'variables': { | 303 'variables': { |
374 'mksnapshot_flags': [], | 304 'mksnapshot_flags': [], |
375 'conditions': [ | 305 'conditions': [ |
376 ['v8_random_seed!=0', { | 306 ['v8_random_seed!=0', { |
377 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'], | 307 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'], |
378 }], | 308 }], |
379 ['v8_vector_stores!=0', { | 309 ['v8_vector_stores!=0', { |
380 'mksnapshot_flags': ['--vector-stores'], | 310 'mksnapshot_flags': ['--vector-stores'], |
381 }], | 311 }], |
382 ], | 312 ], |
383 }, | 313 }, |
384 'conditions': [ | 314 'conditions': [ |
385 ['want_separate_host_toolset==1', { | 315 ['want_separate_host_toolset==1', { |
386 'target_conditions': [ | 316 'target_conditions': [ |
387 ['_toolset=="host"', { | 317 ['_toolset=="host"', { |
388 'outputs': ['<(PRODUCT_DIR)/snapshot_blob_host.bin'], | 318 'outputs': [ |
| 319 '<(PRODUCT_DIR)/snapshot_blob_host.bin', |
| 320 ], |
389 'action': [ | 321 'action': [ |
390 '<(mksnapshot_exec)', | 322 '<(mksnapshot_exec)', |
391 '<@(mksnapshot_flags)', | 323 '<@(mksnapshot_flags)', |
392 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_host.bin
', | 324 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_host.bin
', |
393 '<(embed_script)', | 325 '<(embed_script)', |
394 '<(warmup_script)', | 326 '<(warmup_script)', |
395 ], | 327 ], |
396 }, { | 328 }, { |
397 'outputs': ['<(PRODUCT_DIR)/snapshot_blob.bin'], | 329 'outputs': [ |
| 330 '<(PRODUCT_DIR)/snapshot_blob.bin', |
| 331 ], |
398 'action': [ | 332 'action': [ |
399 '<(mksnapshot_exec)', | 333 '<(mksnapshot_exec)', |
400 '<@(mksnapshot_flags)', | 334 '<@(mksnapshot_flags)', |
401 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin', | 335 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin', |
402 '<(embed_script)', | 336 '<(embed_script)', |
403 '<(warmup_script)', | 337 '<(warmup_script)', |
404 ], | 338 ], |
405 }], | 339 }], |
406 ], | 340 ], |
407 }, { | 341 }, { |
408 'outputs': ['<(PRODUCT_DIR)/snapshot_blob.bin'], | 342 'outputs': [ |
| 343 '<(PRODUCT_DIR)/snapshot_blob.bin', |
| 344 ], |
409 'action': [ | 345 'action': [ |
410 '<(mksnapshot_exec)', | 346 '<(mksnapshot_exec)', |
411 '<@(mksnapshot_flags)', | 347 '<@(mksnapshot_flags)', |
412 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin', | 348 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin', |
413 '<(embed_script)', | 349 '<(embed_script)', |
414 '<(warmup_script)', | 350 '<(warmup_script)', |
415 ], | 351 ], |
416 }], | 352 }], |
417 ], | 353 ], |
418 }, | 354 }, |
(...skipping 1853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2272 }], | 2208 }], |
2273 ['want_separate_host_toolset==1', { | 2209 ['want_separate_host_toolset==1', { |
2274 'toolsets': ['host'], | 2210 'toolsets': ['host'], |
2275 }, { | 2211 }, { |
2276 'toolsets': ['target'], | 2212 'toolsets': ['target'], |
2277 }], | 2213 }], |
2278 ], | 2214 ], |
2279 }, | 2215 }, |
2280 ], | 2216 ], |
2281 } | 2217 } |
OLD | NEW |