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