| 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 'gen_source_dir': '<(SHARED_INTERMEDIATE_DIR)', | 7 'gen_source_dir': '<(SHARED_INTERMEDIATE_DIR)', |
| 8 | 8 |
| 9 'io_cc_file': '<(gen_source_dir)/io_gen.cc', | 9 'io_cc_file': '<(gen_source_dir)/io_gen.cc', |
| 10 'io_patch_cc_file': '<(gen_source_dir)/io_patch_gen.cc', | 10 'io_patch_cc_file': '<(gen_source_dir)/io_patch_gen.cc', |
| (...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 'Dart_Linux_Base': { | 619 'Dart_Linux_Base': { |
| 620 # Have the linker add all symbols to the dynamic symbol table | 620 # Have the linker add all symbols to the dynamic symbol table |
| 621 # so that extensions can look them up dynamically in the binary. | 621 # so that extensions can look them up dynamically in the binary. |
| 622 'ldflags': [ | 622 'ldflags': [ |
| 623 '-rdynamic', | 623 '-rdynamic', |
| 624 ], | 624 ], |
| 625 }, | 625 }, |
| 626 }, | 626 }, |
| 627 }, | 627 }, |
| 628 { | 628 { |
| 629 # dart binary for running precompiled snapshots without the compiler. |
| 630 'target_name': 'dart_precompiled', |
| 631 'type': 'executable', |
| 632 'dependencies': [ |
| 633 'libdart_precompiled', |
| 634 'libdart_builtin', |
| 635 'libdart_io', |
| 636 'build_observatory#host', |
| 637 'generate_resources_cc_file#host', |
| 638 'generate_observatory_assets_cc_file#host', |
| 639 ], |
| 640 'include_dirs': [ |
| 641 '..', |
| 642 ], |
| 643 'sources': [ |
| 644 'main.cc', |
| 645 'builtin_common.cc', |
| 646 'builtin_natives.cc', |
| 647 'builtin_nolib.cc', |
| 648 'builtin.h', |
| 649 'io_natives.h', |
| 650 'vmservice_impl.cc', |
| 651 'vmservice_impl.h', |
| 652 'snapshot_empty.cc', |
| 653 '<(resources_cc_file)', |
| 654 '<(observatory_assets_cc_file)', |
| 655 ], |
| 656 'conditions': [ |
| 657 ['OS=="win"', { |
| 658 'link_settings': { |
| 659 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
| 660 }, |
| 661 # Generate an import library on Windows, by exporting a function. |
| 662 # Extensions use this import library to link to the API in dart.exe. |
| 663 'msvs_settings': { |
| 664 'VCLinkerTool': { |
| 665 'AdditionalOptions': [ '/EXPORT:Dart_True' ], |
| 666 }, |
| 667 }, |
| 668 }], |
| 669 ], |
| 670 }, |
| 671 { |
| 629 # dart binary built for the host. It does not use a snapshot | 672 # dart binary built for the host. It does not use a snapshot |
| 630 # and does not include Observatory. | 673 # and does not include Observatory. |
| 631 'target_name': 'dart_bootstrap', | 674 'target_name': 'dart_bootstrap', |
| 632 'type': 'executable', | 675 'type': 'executable', |
| 633 'toolsets':['host'], | 676 'toolsets':['host'], |
| 634 'dependencies': [ | 677 'dependencies': [ |
| 635 'libdart_nosnapshot', | 678 'libdart_nosnapshot', |
| 636 'libdart_builtin', | 679 'libdart_builtin', |
| 637 'libdart_io', | 680 'libdart_io', |
| 638 'generate_bootstrap_resources_cc_file#host', | 681 'generate_bootstrap_resources_cc_file#host', |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 844 }], | 887 }], |
| 845 ['OS=="linux"', { | 888 ['OS=="linux"', { |
| 846 'cflags': [ | 889 'cflags': [ |
| 847 '-fPIC', | 890 '-fPIC', |
| 848 ], | 891 ], |
| 849 }], | 892 }], |
| 850 ], | 893 ], |
| 851 }, | 894 }, |
| 852 ], | 895 ], |
| 853 } | 896 } |
| OLD | NEW |