|
7 | 7 | 'node_use_dtrace%': 'false', |
8 | 8 | 'node_use_etw%': 'false', |
9 | 9 | 'node_no_browser_globals%': 'false', |
| 10 | + 'node_snapshot_main%': '', |
10 | 11 | 'node_use_node_snapshot%': 'false', |
11 | 12 | 'node_use_v8_platform%': 'true', |
12 | 13 | 'node_use_bundled_v8%': 'true', |
|
305 | 306 | 'dependencies': [ |
306 | 307 | 'node_mksnapshot', |
307 | 308 | ], |
308 | | - 'actions': [ |
309 | | - { |
310 | | - 'action_name': 'node_mksnapshot', |
311 | | - 'process_outputs_as_sources': 1, |
312 | | - 'inputs': [ |
313 | | - '<(node_mksnapshot_exec)', |
314 | | - ], |
315 | | - 'outputs': [ |
316 | | - '<(SHARED_INTERMEDIATE_DIR)/node_snapshot.cc', |
| 309 | + 'conditions': [ |
| 310 | + ['node_snapshot_main!=""', { |
| 311 | + 'actions': [ |
| 312 | + { |
| 313 | + 'action_name': 'node_mksnapshot', |
| 314 | + 'process_outputs_as_sources': 1, |
| 315 | + 'inputs': [ |
| 316 | + '<(node_mksnapshot_exec)', |
| 317 | + '<(node_snapshot_main)', |
| 318 | + ], |
| 319 | + 'outputs': [ |
| 320 | + '<(SHARED_INTERMEDIATE_DIR)/node_snapshot.cc', |
| 321 | + ], |
| 322 | + 'action': [ |
| 323 | + '<(node_mksnapshot_exec)', |
| 324 | + '--snapshot-main', |
| 325 | + '<(node_snapshot_main)', |
| 326 | + '<@(_outputs)', |
| 327 | + ], |
| 328 | + }, |
317 | 329 | ], |
318 | | - 'action': [ |
319 | | - '<@(_inputs)', |
320 | | - '<@(_outputs)', |
| 330 | + }, { |
| 331 | + 'actions': [ |
| 332 | + { |
| 333 | + 'action_name': 'node_mksnapshot', |
| 334 | + 'process_outputs_as_sources': 1, |
| 335 | + 'inputs': [ |
| 336 | + '<(node_mksnapshot_exec)', |
| 337 | + ], |
| 338 | + 'outputs': [ |
| 339 | + '<(SHARED_INTERMEDIATE_DIR)/node_snapshot.cc', |
| 340 | + ], |
| 341 | + 'action': [ |
| 342 | + '<@(_inputs)', |
| 343 | + '<@(_outputs)', |
| 344 | + ], |
| 345 | + }, |
321 | 346 | ], |
322 | | - }, |
| 347 | + }], |
323 | 348 | ], |
324 | | - }, { |
| 349 | + }, { |
325 | 350 | 'sources': [ |
326 | 351 | 'src/node_snapshot_stub.cc' |
327 | 352 | ], |
|
0 commit comments