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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
359 '../include/dart_tools_api.h', | 359 '../include/dart_tools_api.h', |
360 '../vm/dart_api_impl.cc', | 360 '../vm/dart_api_impl.cc', |
361 '../vm/debugger_api_impl.cc', | 361 '../vm/debugger_api_impl.cc', |
362 '../vm/mirrors_api_impl.cc', | 362 '../vm/mirrors_api_impl.cc', |
363 '../vm/native_api_impl.cc', | 363 '../vm/native_api_impl.cc', |
364 '<(version_cc_file)', | 364 '<(version_cc_file)', |
365 ], | 365 ], |
366 'defines': [ | 366 'defines': [ |
367 'DART_SHARED_LIB', | 367 'DART_SHARED_LIB', |
368 'DART_NO_SNAPSHOT', | 368 'DART_NO_SNAPSHOT', |
369 'DART_PRECOMPILER', | |
369 ], | 370 ], |
370 }, | 371 }, |
371 { | 372 { |
372 # Completely statically linked binary for generating snapshots. | 373 # Completely statically linked binary for generating snapshots. |
373 'target_name': 'gen_snapshot', | 374 'target_name': 'gen_snapshot', |
374 'type': 'executable', | 375 'type': 'executable', |
375 'toolsets':['host'], | 376 'toolsets':['host'], |
376 'dependencies': [ | 377 'dependencies': [ |
377 'generate_resources_cc_file#host', | 378 'generate_resources_cc_file#host', |
378 'generate_observatory_assets_cc_file#host', | 379 'generate_observatory_assets_cc_file#host', |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
621 'Dart_Linux_Base': { | 622 'Dart_Linux_Base': { |
622 # Have the linker add all symbols to the dynamic symbol table | 623 # Have the linker add all symbols to the dynamic symbol table |
623 # so that extensions can look them up dynamically in the binary. | 624 # so that extensions can look them up dynamically in the binary. |
624 'ldflags': [ | 625 'ldflags': [ |
625 '-rdynamic', | 626 '-rdynamic', |
626 ], | 627 ], |
627 }, | 628 }, |
628 }, | 629 }, |
629 }, | 630 }, |
630 { | 631 { |
632 # dart binary with a snapshot of corelibs built in and support for testing | |
633 # precompilation (aka --noopt) | |
634 'target_name': 'dart_noopt', | |
635 'type': 'executable', | |
636 'dependencies': [ | |
637 'libdart_noopt', | |
638 'libdart_builtin', | |
639 'libdart_io', | |
640 'build_observatory#host', | |
641 'generate_snapshot_file#host', | |
642 'generate_resources_cc_file#host', | |
643 'generate_observatory_assets_cc_file#host', | |
644 ], | |
645 'include_dirs': [ | |
646 '..', | |
647 '../../third_party/', # Zlib | |
648 ], | |
649 'sources': [ | |
650 'main.cc', | |
651 'builtin_common.cc', | |
652 'builtin_natives.cc', | |
653 'builtin_nolib.cc', | |
654 'builtin.h', | |
655 'io_natives.h', | |
656 'vmservice_impl.cc', | |
657 'vmservice_impl.h', | |
658 '<(snapshot_cc_file)', | |
659 '<(resources_cc_file)', | |
660 '<(observatory_assets_cc_file)', | |
661 ], | |
662 'defines': [ | |
663 'DART_PRECOMPILER', | |
664 ], | |
665 'conditions': [ | |
666 ['OS=="win"', { | |
667 'link_settings': { | |
668 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], | |
669 }, | |
670 # Generate an import library on Windows, by exporting a function. | |
671 # Extensions use this import library to link to the API in dart.exe. | |
672 'msvs_settings': { | |
673 'VCLinkerTool': { | |
674 'AdditionalOptions': [ '/EXPORT:Dart_True' ], | |
675 }, | |
676 }, | |
677 }], | |
678 ], | |
679 'configurations': { | |
680 'Dart_Linux_Base': { | |
681 # Have the linker add all symbols to the dynamic symbol table | |
682 # so that extensions can look them up dynamically in the binary. | |
683 'ldflags': [ | |
684 '-rdynamic', | |
685 ], | |
686 }, | |
687 }, | |
688 }, | |
689 { | |
631 # dart binary for running precompiled snapshots without the compiler. | 690 # dart binary for running precompiled snapshots without the compiler. |
632 'target_name': 'dart_precompiled_runtime', | 691 'target_name': 'dart_precompiled_runtime', |
633 'type': 'executable', | 692 'type': 'executable', |
634 'dependencies': [ | 693 'dependencies': [ |
635 'libdart_precompiled_runtime', | 694 'libdart_precompiled_runtime', |
636 'libdart_builtin', | 695 'libdart_builtin', |
637 'libdart_io', | 696 'libdart_io', |
638 'build_observatory#host', | 697 'build_observatory#host', |
639 'generate_resources_cc_file#host', | 698 'generate_resources_cc_file#host', |
640 'generate_observatory_assets_cc_file#host', | 699 'generate_observatory_assets_cc_file#host', |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
753 'vmservice_impl.cc', | 812 'vmservice_impl.cc', |
754 'vmservice_impl.h', | 813 'vmservice_impl.h', |
755 # Include generated source files. | 814 # Include generated source files. |
756 '<(builtin_cc_file)', | 815 '<(builtin_cc_file)', |
757 '<(io_cc_file)', | 816 '<(io_cc_file)', |
758 '<(io_patch_cc_file)', | 817 '<(io_patch_cc_file)', |
759 '<(resources_cc_file)', | 818 '<(resources_cc_file)', |
760 '<(observatory_assets_cc_file)', | 819 '<(observatory_assets_cc_file)', |
761 'snapshot_empty.cc', | 820 'snapshot_empty.cc', |
762 ], | 821 ], |
822 'defines': [ | |
rmacnak
2016/02/02 22:38:56
+ DART_NO_SNAPSHOT
Florian Schneider
2016/02/03 01:25:43
Done.
| |
823 'DART_PRECOMPILER', | |
824 ], | |
763 'conditions': [ | 825 'conditions': [ |
764 ['OS=="win"', { | 826 ['OS=="win"', { |
765 'link_settings': { | 827 'link_settings': { |
766 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], | 828 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
767 }, | 829 }, |
768 # Generate an import library on Windows, by exporting a function. | 830 # Generate an import library on Windows, by exporting a function. |
769 # Extensions use this import library to link to the API in dart.exe. | 831 # Extensions use this import library to link to the API in dart.exe. |
770 'msvs_settings': { | 832 'msvs_settings': { |
771 'VCLinkerTool': { | 833 'VCLinkerTool': { |
772 'AdditionalOptions': [ '/EXPORT:Dart_True' ], | 834 'AdditionalOptions': [ '/EXPORT:Dart_True' ], |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
892 }], | 954 }], |
893 ['OS=="linux"', { | 955 ['OS=="linux"', { |
894 'cflags': [ | 956 'cflags': [ |
895 '-fPIC', | 957 '-fPIC', |
896 ], | 958 ], |
897 }], | 959 }], |
898 ], | 960 ], |
899 }, | 961 }, |
900 ], | 962 ], |
901 } | 963 } |
OLD | NEW |