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 # We place most generated source files in LIB_DIR (rather than, say | 7 # We place most generated source files in LIB_DIR (rather than, say |
8 # SHARED_INTERMEDIATE_DIR) because it is toolset specific. This avoids | 8 # SHARED_INTERMEDIATE_DIR) because it is toolset specific. This avoids |
9 # two problems. First, if a generated source file has architecture specific | 9 # two problems. First, if a generated source file has architecture specific |
10 # code, we'll get two different files in two different directories. Second, | 10 # code, we'll get two different files in two different directories. Second, |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 'process_test.cc', | 476 'process_test.cc', |
477 ] | 477 ] |
478 }, | 478 }, |
479 { | 479 { |
480 'target_name': 'run_vm_tests', | 480 'target_name': 'run_vm_tests', |
481 'type': 'executable', | 481 'type': 'executable', |
482 'dependencies': [ | 482 'dependencies': [ |
483 'libdart_withcore', | 483 'libdart_withcore', |
484 'libdart_builtin', | 484 'libdart_builtin', |
485 'libdart_io', | 485 'libdart_io', |
| 486 'generate_snapshot_file#host', |
486 'generate_snapshot_test_dat_file', | 487 'generate_snapshot_test_dat_file', |
487 ], | 488 ], |
488 'include_dirs': [ | 489 'include_dirs': [ |
489 '..', | 490 '..', |
490 '<(gen_source_dir)', | 491 '<(gen_source_dir)', |
491 ], | 492 ], |
492 'sources': [ | 493 'sources': [ |
493 'run_vm_tests.cc', | 494 'run_vm_tests.cc', |
494 'builtin.cc', | |
495 'builtin_natives.cc', | 495 'builtin_natives.cc', |
| 496 'builtin_nolib.cc', |
496 'builtin.h', | 497 'builtin.h', |
497 'io_natives.h', | 498 'io_natives.h', |
498 # Include generated source files. | 499 # Include generated source files. |
| 500 '<(snapshot_cc_file)', |
499 '<(builtin_cc_file)', | 501 '<(builtin_cc_file)', |
500 '<(io_cc_file)', | 502 '<(io_cc_file)', |
501 '<(io_patch_cc_file)', | 503 '<(io_patch_cc_file)', |
502 ], | 504 ], |
503 'includes': [ | 505 'includes': [ |
504 'builtin_impl_sources.gypi', | 506 'builtin_impl_sources.gypi', |
505 '../platform/platform_sources.gypi', | 507 '../platform/platform_sources.gypi', |
506 '../vm/vm_sources.gypi', | 508 '../vm/vm_sources.gypi', |
507 ], | 509 ], |
508 'defines': [ | 510 'defines': [ |
509 'TESTING', | 511 'TESTING', |
510 ], | 512 ], |
511 # Only include _test.[cc|h] files. | 513 # Only include _test.[cc|h] files. |
512 'sources/': [ | 514 'sources/': [ |
513 ['exclude', '\\.(cc|h)$'], | 515 ['exclude', '\\.(cc|h)$'], |
514 ['include', 'run_vm_tests.cc'], | 516 ['include', 'run_vm_tests.cc'], |
515 ['include', 'builtin.cc'], | 517 ['include', 'builtin_nolib.cc'], |
516 ['include', 'builtin_natives.cc'], | 518 ['include', 'builtin_natives.cc'], |
517 ['include', '_gen\\.cc$'], | 519 ['include', '_gen\\.cc$'], |
518 ['include', '_test\\.(cc|h)$'], | 520 ['include', '_test\\.(cc|h)$'], |
519 ], | 521 ], |
520 'conditions': [ | 522 'conditions': [ |
521 ['OS=="win"', { | 523 ['OS=="win"', { |
522 'link_settings': { | 524 'link_settings': { |
523 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], | 525 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
524 }, | 526 }, |
525 }], | 527 }], |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 ['OS=="linux"', { | 561 ['OS=="linux"', { |
560 'cflags': [ | 562 'cflags': [ |
561 '-fPIC', | 563 '-fPIC', |
562 ], | 564 ], |
563 }], | 565 }], |
564 ], | 566 ], |
565 }, | 567 }, |
566 ], | 568 ], |
567 } | 569 } |
568 | 570 |
OLD | NEW |