OLD | NEW |
---|---|
1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'crypto_cc_file': '<(SHARED_INTERMEDIATE_DIR)/crypto_gen.cc', | 7 'crypto_cc_file': '<(SHARED_INTERMEDIATE_DIR)/crypto_gen.cc', |
8 'io_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_gen.cc', | 8 'io_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_gen.cc', |
9 'json_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_gen.cc', | 9 'json_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_gen.cc', |
10 'uri_cc_file': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.cc', | 10 'uri_cc_file': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.cc', |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
342 '<(web_cc_file)', | 342 '<(web_cc_file)', |
343 ], | 343 ], |
344 'conditions': [ | 344 'conditions': [ |
345 ['OS=="win"', { | 345 ['OS=="win"', { |
346 'link_settings': { | 346 'link_settings': { |
347 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 347 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
348 }, | 348 }, |
349 }]], | 349 }]], |
350 }, | 350 }, |
351 { | 351 { |
352 # Generate snapshot bin file. | |
353 'target_name': 'generate_snapshot_bin', | |
354 'type': 'none', | |
355 'dependencies': [ | |
356 'gen_snapshot', | |
357 ], | |
358 'actions': [ | |
359 { | |
360 'action_name': 'generate_snapshot_bin', | |
361 'inputs': [ | |
362 '../tools/create_snapshot_bin.py', | |
363 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)gen_snapshot<(EXECUTABLE_SUFFIX) ', | |
364 ], | |
365 'outputs': [ | |
366 '<(snapshot_bin_file)', | |
367 ], | |
368 'action': [ | |
369 'python', | |
370 'tools/create_snapshot_bin.py', | |
ahe
2012/08/09 20:57:16
This doesn't match line 362. Are you sure the depe
jackpal
2012/08/13 20:19:45
See the discussion below. This line is correct as
| |
371 '--executable', '<(PRODUCT_DIR)/gen_snapshot', | |
ahe
2012/08/09 20:57:16
This should match line 363.
jackpal
2012/08/13 20:19:45
Done.
| |
372 '--output_bin', '<(snapshot_bin_file)', | |
373 '--target_os', '<(OS)' | |
374 ], | |
375 'message': 'Generating ''<(snapshot_bin_file)'' file.' | |
376 }, | |
377 ], | |
378 }, | |
379 { | |
352 # Generate snapshot file. | 380 # Generate snapshot file. |
353 'target_name': 'generate_snapshot_file', | 381 'target_name': 'generate_snapshot_file', |
354 'type': 'none', | 382 'type': 'none', |
355 'dependencies': [ | 383 'dependencies': [ |
356 'gen_snapshot', | 384 'generate_snapshot_bin', |
357 ], | 385 ], |
358 'actions': [ | 386 'actions': [ |
359 { | 387 { |
360 'action_name': 'generate_snapshot_file', | 388 'action_name': 'generate_snapshot_file', |
361 'inputs': [ | 389 'inputs': [ |
362 '../tools/create_snapshot_file.py', | 390 '../tools/create_snapshot_file.py', |
363 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)gen_snapshot<(EXECUTABLE_SUFFIX) ', | |
364 '<(snapshot_in_cc_file)', | 391 '<(snapshot_in_cc_file)', |
392 '<(snapshot_bin_file)' | |
365 ], | 393 ], |
366 'outputs': [ | 394 'outputs': [ |
367 '<(snapshot_cc_file)', | 395 '<(snapshot_cc_file)', |
368 ], | 396 ], |
369 'action': [ | 397 'action': [ |
370 'python', | 398 'python', |
371 'tools/create_snapshot_file.py', | 399 'tools/create_snapshot_file.py', |
ahe
2012/08/09 20:57:16
This doesn't match line 390.
Ivan Posva
2012/08/09 21:48:15
I agree with Peter that the paths in input and act
jackpal
2012/08/13 20:19:45
Ivan and I discussed this and came to the conclusi
| |
372 '--executable', '<(PRODUCT_DIR)/gen_snapshot', | 400 '--input_bin', '<(snapshot_bin_file)', |
373 '--output_bin', '<(snapshot_bin_file)', | |
374 '--input_cc', '<(snapshot_in_cc_file)', | 401 '--input_cc', '<(snapshot_in_cc_file)', |
375 '--output', '<(snapshot_cc_file)', | 402 '--output', '<(snapshot_cc_file)', |
376 ], | 403 ], |
377 'message': 'Generating ''<(snapshot_cc_file)'' file.' | 404 'message': 'Generating ''<(snapshot_cc_file)'' file.' |
378 }, | 405 }, |
379 ] | 406 ] |
380 }, | 407 }, |
381 { | 408 { |
382 # dart binary with a snapshot of corelibs built in. | 409 # dart binary with a snapshot of corelibs built in. |
383 'target_name': 'dart', | 410 'target_name': 'dart', |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
525 ['OS=="mac"', { | 552 ['OS=="mac"', { |
526 'xcode_settings': { | 553 'xcode_settings': { |
527 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], | 554 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], |
528 }, | 555 }, |
529 }], | 556 }], |
530 ], | 557 ], |
531 }, | 558 }, |
532 ], | 559 ], |
533 } | 560 } |
534 | 561 |
OLD | NEW |