| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 'libraries': [ | 173 'libraries': [ |
| 174 '-ldl', | 174 '-ldl', |
| 175 ], | 175 ], |
| 176 }, | 176 }, |
| 177 }], | 177 }], |
| 178 ], | 178 ], |
| 179 }, | 179 }, |
| 180 { | 180 { |
| 181 'target_name': 'libdart_io', | 181 'target_name': 'libdart_io', |
| 182 'type': 'static_library', | 182 'type': 'static_library', |
| 183 'toolsets':['host', 'target'], |
| 183 'include_dirs': [ | 184 'include_dirs': [ |
| 184 '..', | 185 '..', |
| 185 ], | 186 ], |
| 186 'sources': [ | 187 'sources': [ |
| 187 'io_natives.h', | 188 'io_natives.h', |
| 188 'io_natives.cc', | 189 'io_natives.cc', |
| 189 ], | 190 ], |
| 190 'includes': [ | 191 'includes': [ |
| 191 'io_impl_sources.gypi', | 192 'io_impl_sources.gypi', |
| 192 ], | 193 ], |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 { | 473 { |
| 473 'target_name': 'process_test', | 474 'target_name': 'process_test', |
| 474 'type': 'executable', | 475 'type': 'executable', |
| 475 'sources': [ | 476 'sources': [ |
| 476 'process_test.cc', | 477 'process_test.cc', |
| 477 ] | 478 ] |
| 478 }, | 479 }, |
| 479 { | 480 { |
| 480 'target_name': 'run_vm_tests', | 481 'target_name': 'run_vm_tests', |
| 481 'type': 'executable', | 482 'type': 'executable', |
| 483 'toolsets':['target'], |
| 482 'dependencies': [ | 484 'dependencies': [ |
| 483 'libdart_withcore', | 485 'libdart_withcore', |
| 484 'libdart_builtin', | 486 'libdart_builtin', |
| 485 'libdart_io', | 487 'libdart_io', |
| 486 'generate_snapshot_file#host', | 488 'generate_snapshot_file#host', |
| 487 'generate_snapshot_test_dat_file', | 489 'generate_snapshot_test_dat_file', |
| 488 ], | 490 ], |
| 489 'include_dirs': [ | 491 'include_dirs': [ |
| 490 '..', | 492 '..', |
| 491 '<(gen_source_dir)', | 493 '<(gen_source_dir)', |
| (...skipping 29 matching lines...) Expand all Loading... |
| 521 ], | 523 ], |
| 522 'conditions': [ | 524 'conditions': [ |
| 523 ['OS=="win"', { | 525 ['OS=="win"', { |
| 524 'link_settings': { | 526 'link_settings': { |
| 525 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], | 527 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
| 526 }, | 528 }, |
| 527 }], | 529 }], |
| 528 ], | 530 ], |
| 529 }, | 531 }, |
| 530 { | 532 { |
| 533 'target_name': 'run_vm_tests.host', |
| 534 'type': 'executable', |
| 535 'toolsets':['host'], |
| 536 'dependencies': [ |
| 537 'libdart_withcore', |
| 538 'libdart_builtin', |
| 539 'libdart_io', |
| 540 'generate_snapshot_file#host', |
| 541 'generate_snapshot_test_dat_file', |
| 542 ], |
| 543 'include_dirs': [ |
| 544 '..', |
| 545 '<(gen_source_dir)', |
| 546 ], |
| 547 'sources': [ |
| 548 'run_vm_tests.cc', |
| 549 'builtin_natives.cc', |
| 550 'builtin_nolib.cc', |
| 551 'builtin.h', |
| 552 'io_natives.h', |
| 553 # Include generated source files. |
| 554 '<(snapshot_cc_file)', |
| 555 '<(builtin_cc_file)', |
| 556 '<(io_cc_file)', |
| 557 '<(io_patch_cc_file)', |
| 558 ], |
| 559 'includes': [ |
| 560 'builtin_impl_sources.gypi', |
| 561 '../platform/platform_sources.gypi', |
| 562 '../vm/vm_sources.gypi', |
| 563 ], |
| 564 'defines': [ |
| 565 'TESTING', |
| 566 ], |
| 567 # Only include _test.[cc|h] files. |
| 568 'sources/': [ |
| 569 ['exclude', '\\.(cc|h)$'], |
| 570 ['include', 'run_vm_tests.cc'], |
| 571 ['include', 'builtin_nolib.cc'], |
| 572 ['include', 'builtin_natives.cc'], |
| 573 ['include', '_gen\\.cc$'], |
| 574 ['include', '_test\\.(cc|h)$'], |
| 575 ], |
| 576 'conditions': [ |
| 577 ['OS=="win"', { |
| 578 'link_settings': { |
| 579 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
| 580 }, |
| 581 }], |
| 582 ], |
| 583 }, |
| 584 { |
| 531 'target_name': 'test_extension', | 585 'target_name': 'test_extension', |
| 532 'type': 'shared_library', | 586 'type': 'shared_library', |
| 533 'dependencies': [ | 587 'dependencies': [ |
| 534 'dart', | 588 'dart', |
| 535 ], | 589 ], |
| 536 'include_dirs': [ | 590 'include_dirs': [ |
| 537 '..', | 591 '..', |
| 538 ], | 592 ], |
| 539 'sources': [ | 593 'sources': [ |
| 540 'test_extension.cc', | 594 'test_extension.cc', |
| (...skipping 20 matching lines...) Expand all Loading... |
| 561 ['OS=="linux"', { | 615 ['OS=="linux"', { |
| 562 'cflags': [ | 616 'cflags': [ |
| 563 '-fPIC', | 617 '-fPIC', |
| 564 ], | 618 ], |
| 565 }], | 619 }], |
| 566 ], | 620 ], |
| 567 }, | 621 }, |
| 568 ], | 622 ], |
| 569 } | 623 } |
| 570 | 624 |
| OLD | NEW |