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', |
11 'builtin_in_cc_file': 'builtin_in.cc', | 11 'builtin_in_cc_file': 'builtin_in.cc', |
12 'builtin_cc_file': '<(gen_source_dir)/builtin_gen.cc', | 12 'builtin_cc_file': '<(gen_source_dir)/builtin_gen.cc', |
13 'snapshot_in_cc_file': 'snapshot_in.cc', | 13 'snapshot_in_cc_file': 'snapshot_in.cc', |
14 'vm_isolate_snapshot_bin_file': '<(gen_source_dir)/vm_isolate_snapshot_gen.b
in', | 14 'vm_isolate_snapshot_bin_file': '<(gen_source_dir)/vm_isolate_snapshot_gen.b
in', |
15 'isolate_snapshot_bin_file': '<(gen_source_dir)/isolate_snapshot_gen.bin', | 15 'isolate_snapshot_bin_file': '<(gen_source_dir)/isolate_snapshot_gen.bin', |
16 'gen_snapshot_stamp_file': '<(gen_source_dir)/gen_snapshot.stamp', | 16 'gen_snapshot_stamp_file': '<(gen_source_dir)/gen_snapshot.stamp', |
17 'resources_cc_file': '<(gen_source_dir)/resources_gen.cc', | 17 'resources_cc_file': '<(gen_source_dir)/resources_gen.cc', |
18 'bootstrap_resources_cc_file': | |
19 '<(gen_source_dir)/bootstrap_resources_gen.cc', | |
20 'snapshot_cc_file': '<(gen_source_dir)/snapshot_gen.cc', | 18 'snapshot_cc_file': '<(gen_source_dir)/snapshot_gen.cc', |
21 'observatory_assets_cc_file': '<(gen_source_dir)/observatory_assets.cc', | 19 'observatory_assets_cc_file': '<(gen_source_dir)/observatory_assets.cc', |
22 'observatory_assets_tar_file': '<(gen_source_dir)/observatory_assets.tar', | 20 'observatory_assets_tar_file': '<(gen_source_dir)/observatory_assets.tar', |
23 }, | 21 }, |
24 'targets': [ | 22 'targets': [ |
25 { | 23 { |
26 'target_name': 'generate_builtin_cc_file', | 24 'target_name': 'generate_builtin_cc_file', |
27 'type': 'none', | 25 'type': 'none', |
28 'toolsets':['host'], | 26 'toolsets':['host'], |
29 'includes': [ | 27 'includes': [ |
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 '--inner_namespace', 'bin', | 534 '--inner_namespace', 'bin', |
537 '--table_name', 'service_bin', | 535 '--table_name', 'service_bin', |
538 '--root_prefix', 'bin/', | 536 '--root_prefix', 'bin/', |
539 '<@(_sources)' | 537 '<@(_sources)' |
540 ], | 538 ], |
541 'message': 'Generating ''<(resources_cc_file)'' file.' | 539 'message': 'Generating ''<(resources_cc_file)'' file.' |
542 }, | 540 }, |
543 ] | 541 ] |
544 }, | 542 }, |
545 { | 543 { |
546 'target_name': 'generate_bootstrap_resources_cc_file', | |
547 'type': 'none', | |
548 'dependencies': [ | |
549 'bin/zlib.gyp:zlib_dart', | |
550 ], | |
551 'toolsets':['host'], | |
552 'includes': [ | |
553 'vmservice/vmservice_sources.gypi', | |
554 ], | |
555 'actions': [ | |
556 { | |
557 'action_name': 'generate_resources_cc', | |
558 'inputs': [ | |
559 '../tools/create_resources.py', | |
560 '<@(_sources)', | |
561 ], | |
562 'outputs': [ | |
563 '<(bootstrap_resources_cc_file)', | |
564 ], | |
565 'action': [ | |
566 'python', | |
567 'tools/create_resources.py', | |
568 '--output', '<(bootstrap_resources_cc_file)', | |
569 '--outer_namespace', 'dart', | |
570 '--inner_namespace', 'bin', | |
571 '--table_name', 'service_bin', | |
572 '--root_prefix', 'bin/', | |
573 '<@(_sources)' | |
574 ], | |
575 'message': | |
576 'Generating ''<(bootstrap_resources_cc_file)'' file.' | |
577 }, | |
578 ] | |
579 }, | |
580 { | |
581 # dart_product binary. | 544 # dart_product binary. |
582 'target_name': 'dart_product', | 545 'target_name': 'dart_product', |
583 'type': 'executable', | 546 'type': 'executable', |
584 'dependencies': [ | 547 'dependencies': [ |
585 'libdart', | 548 'libdart', |
586 'libdart_builtin', | 549 'libdart_builtin', |
587 'libdart_io', | 550 'libdart_io', |
588 ], | 551 ], |
589 'include_dirs': [ | 552 'include_dirs': [ |
590 '..', | 553 '..', |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 { | 736 { |
774 # dart binary built for the host. It does not use a snapshot | 737 # dart binary built for the host. It does not use a snapshot |
775 # and does not include Observatory. | 738 # and does not include Observatory. |
776 'target_name': 'dart_bootstrap', | 739 'target_name': 'dart_bootstrap', |
777 'type': 'executable', | 740 'type': 'executable', |
778 'toolsets':['host'], | 741 'toolsets':['host'], |
779 'dependencies': [ | 742 'dependencies': [ |
780 'libdart_nosnapshot', | 743 'libdart_nosnapshot', |
781 'libdart_builtin', | 744 'libdart_builtin', |
782 'libdart_io', | 745 'libdart_io', |
783 'generate_bootstrap_resources_cc_file#host', | |
784 ], | |
785 'include_dirs': [ | |
786 '..', | |
787 '../../third_party/', # Zlib | |
788 ], | |
789 'sources': [ | |
790 'main.cc', | |
791 'builtin_common.cc', | |
792 'builtin_natives.cc', | |
793 'builtin.cc', | |
794 'builtin.h', | |
795 'io_natives.h', | |
796 'vmservice_impl.cc', | |
797 'vmservice_impl.h', | |
798 # Include generated source files. | |
799 '<(builtin_cc_file)', | |
800 '<(io_cc_file)', | |
801 '<(io_patch_cc_file)', | |
802 '<(bootstrap_resources_cc_file)', | |
803 'observatory_assets_empty.cc', | |
804 'snapshot_empty.cc', | |
805 ], | |
806 'conditions': [ | |
807 ['OS=="win"', { | |
808 'link_settings': { | |
809 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], | |
810 }, | |
811 # Generate an import library on Windows, by exporting a function. | |
812 # Extensions use this import library to link to the API in dart.exe. | |
813 'msvs_settings': { | |
814 'VCLinkerTool': { | |
815 'AdditionalOptions': [ '/EXPORT:Dart_True' ], | |
816 }, | |
817 }, | |
818 }], | |
819 ], | |
820 'configurations': { | |
821 'Dart_Linux_Base': { | |
822 # Have the linker add all symbols to the dynamic symbol table | |
823 # so that extensions can look them up dynamically in the binary. | |
824 'ldflags': [ | |
825 '-rdynamic', | |
826 ], | |
827 }, | |
828 }, | |
829 }, | |
830 { | |
831 # dart binary without any snapshot built in. | |
832 'target_name': 'dart_no_snapshot', | |
833 'type': 'executable', | |
834 'dependencies': [ | |
835 'libdart_nosnapshot', | |
836 'libdart_builtin', | |
837 'libdart_io', | |
838 'generate_resources_cc_file#host', | 746 'generate_resources_cc_file#host', |
839 'generate_observatory_assets_cc_file#host', | |
840 ], | 747 ], |
841 'include_dirs': [ | 748 'include_dirs': [ |
842 '..', | 749 '..', |
843 '../../third_party/', # Zlib | 750 '../../third_party/', # Zlib |
844 ], | 751 ], |
845 'sources': [ | 752 'sources': [ |
846 'main.cc', | 753 'main.cc', |
847 'builtin_common.cc', | 754 'builtin_common.cc', |
848 'builtin_natives.cc', | 755 'builtin_natives.cc', |
849 'builtin.cc', | 756 'builtin.cc', |
850 'builtin.h', | 757 'builtin.h', |
851 'io_natives.h', | 758 'io_natives.h', |
852 'vmservice_impl.cc', | 759 'vmservice_impl.cc', |
853 'vmservice_impl.h', | 760 'vmservice_impl.h', |
854 # Include generated source files. | 761 # Include generated source files. |
855 '<(builtin_cc_file)', | 762 '<(builtin_cc_file)', |
856 '<(io_cc_file)', | 763 '<(io_cc_file)', |
857 '<(io_patch_cc_file)', | 764 '<(io_patch_cc_file)', |
858 '<(resources_cc_file)', | 765 '<(resources_cc_file)', |
859 '<(observatory_assets_cc_file)', | 766 'observatory_assets_empty.cc', |
860 'snapshot_empty.cc', | 767 'snapshot_empty.cc', |
861 ], | 768 ], |
862 'defines': [ | 769 'defines': [ |
863 'DART_NO_SNAPSHOT', | 770 'DART_NO_SNAPSHOT', |
864 'DART_PRECOMPILER', | 771 'DART_PRECOMPILER', |
865 ], | 772 ], |
866 'conditions': [ | 773 'conditions': [ |
867 ['OS=="win"', { | 774 ['OS=="win"', { |
868 'link_settings': { | 775 'link_settings': { |
869 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], | 776 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
995 }], | 902 }], |
996 ['OS=="linux"', { | 903 ['OS=="linux"', { |
997 'cflags': [ | 904 'cflags': [ |
998 '-fPIC', | 905 '-fPIC', |
999 ], | 906 ], |
1000 }], | 907 }], |
1001 ], | 908 ], |
1002 }, | 909 }, |
1003 ], | 910 ], |
1004 } | 911 } |
OLD | NEW |