Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2014, 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 import("gypi_contents.gni") | 5 import("gypi_contents.gni") |
| 6 import("../runtime_args.gni") | 6 import("../runtime_args.gni") |
| 7 import("../../build/compiled_action.gni") | 7 import("../../build/compiled_action.gni") |
| 8 | 8 |
| 9 declare_args() { | 9 declare_args() { |
| 10 # Controls the kind of core snapshot linked into the standalone VM. Using a | 10 # Controls the kind of core snapshot linked into the standalone VM. Using a |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 267 "log_macos.cc", | 267 "log_macos.cc", |
| 268 "log_win.cc", | 268 "log_win.cc", |
| 269 ] + builtin_impl_sources_gypi | 269 ] + builtin_impl_sources_gypi |
| 270 } | 270 } |
| 271 | 271 |
| 272 executable("gen_snapshot") { | 272 executable("gen_snapshot") { |
| 273 configs += [ | 273 configs += [ |
| 274 "..:dart_config", | 274 "..:dart_config", |
| 275 "..:dart_maybe_product_config", | 275 "..:dart_maybe_product_config", |
| 276 "..:dart_precompiler_config", | 276 "..:dart_precompiler_config", |
| 277 "..:dart_use_target_arch_config", | |
| 277 ] | 278 ] |
| 278 deps = [ | 279 deps = [ |
| 279 ":gen_resources_cc", | 280 ":gen_resources_cc", |
| 280 ":gen_snapshot_dart_io", | 281 ":gen_snapshot_dart_io", |
| 281 ":generate_builtin_cc_file", | 282 ":generate_builtin_cc_file", |
| 282 ":generate_io_cc_file", | 283 ":generate_io_cc_file", |
| 283 ":generate_io_patch_cc_file", | 284 ":generate_io_patch_cc_file", |
| 284 ":libdart_builtin", | 285 ":libdart_builtin", |
| 285 "..:libdart_nosnapshot_with_precompiler", | 286 "..:libdart_nosnapshot_with_precompiler", |
| 286 ] | 287 ] |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 661 ] | 662 ] |
| 662 } | 663 } |
| 663 | 664 |
| 664 if (is_fuchsia) { | 665 if (is_fuchsia) { |
| 665 libs = [ "launchpad" ] | 666 libs = [ "launchpad" ] |
| 666 } | 667 } |
| 667 } | 668 } |
| 668 } | 669 } |
| 669 | 670 |
| 670 dart_executable("dart") { | 671 dart_executable("dart") { |
| 672 extra_configs = [ "..:dart_use_target_arch_config" ] | |
| 671 extra_deps = [ | 673 extra_deps = [ |
| 672 "..:libdart_jit", | 674 "..:libdart_jit", |
| 673 ":dart_snapshot_cc", | 675 ":dart_snapshot_cc", |
| 674 "../observatory:standalone_observatory_archive", | 676 "../observatory:standalone_observatory_archive", |
| 675 ] | 677 ] |
| 676 extra_sources = [ | 678 extra_sources = [ |
| 677 "builtin_nolib.cc", | 679 "builtin_nolib.cc", |
| 678 "dfe.cc", | 680 "dfe.cc", |
| 679 "dfe.h", | 681 "dfe.h", |
| 680 "loader.cc", | 682 "loader.cc", |
| 681 "loader.h", | 683 "loader.h", |
| 682 ] | 684 ] |
| 683 } | 685 } |
| 684 | 686 |
| 685 dart_executable("dart_precompiled_runtime") { | 687 dart_executable("dart_precompiled_runtime") { |
| 686 extra_configs = [ "..:dart_precompiled_runtime_config" ] | 688 extra_configs = [ "..:dart_precompiled_runtime_config" ] |
| 687 extra_deps = [ | 689 extra_deps = [ |
| 688 "..:libdart_precompiled_runtime", | 690 "..:libdart_precompiled_runtime", |
| 689 "../observatory:standalone_observatory_archive", | 691 "../observatory:standalone_observatory_archive", |
| 690 ] | 692 ] |
| 691 extra_sources = [ | 693 extra_sources = [ |
| 692 "builtin_nolib.cc", | 694 "builtin_nolib.cc", |
| 693 "snapshot_empty.cc", | 695 "snapshot_empty.cc", |
| 694 "loader.cc", | 696 "loader.cc", |
| 695 "loader.h", | 697 "loader.h", |
| 696 ] | 698 ] |
| 697 } | 699 } |
| 698 | 700 |
| 699 dart_executable("dart_bootstrap") { | 701 template("dart_bootstrap_template") { |
| 700 extra_configs = [ | 702 invoker_extra_configs = [] |
| 701 "..:dart_precompiler_config", | 703 if (defined(invoker.extra_configs)) { |
| 702 "..:dart_no_snapshot_config", | 704 invoker_extra_configs += invoker.extra_configs |
| 703 ] | 705 } |
| 704 extra_deps = [ | 706 dart_executable(target_name) { |
| 705 ":generate_builtin_cc_file", | 707 extra_configs = [ |
| 706 ":generate_io_cc_file", | 708 "..:dart_precompiler_config", |
| 707 ":generate_io_patch_cc_file", | 709 "..:dart_no_snapshot_config", |
| 708 ":generate_html_cc_file", | 710 ] + invoker_extra_configs |
| 709 ":generate_html_common_cc_file", | 711 extra_deps = [ |
| 710 ":generate_js_cc_file", | 712 ":generate_builtin_cc_file", |
| 711 ":generate_js_util_cc_file", | 713 ":generate_io_cc_file", |
| 712 ":generate_blink_cc_file", | 714 ":generate_io_patch_cc_file", |
| 713 ":generate_indexed_db_cc_file", | 715 ":generate_html_cc_file", |
| 714 ":generate_cached_patches_cc_file", | 716 ":generate_html_common_cc_file", |
| 715 ":generate_web_gl_cc_file", | 717 ":generate_js_cc_file", |
| 716 ":generate_metadata_cc_file", | 718 ":generate_js_util_cc_file", |
| 717 ":generate_web_sql_cc_file", | 719 ":generate_blink_cc_file", |
| 718 ":generate_svg_cc_file", | 720 ":generate_indexed_db_cc_file", |
| 719 ":generate_web_audio_cc_file", | 721 ":generate_cached_patches_cc_file", |
| 720 "..:libdart_nosnapshot_with_precompiler", | 722 ":generate_web_gl_cc_file", |
| 721 ] | 723 ":generate_metadata_cc_file", |
| 722 extra_defines = [ "NO_OBSERVATORY" ] | 724 ":generate_web_sql_cc_file", |
| 723 extra_sources = [ | 725 ":generate_svg_cc_file", |
| 724 "builtin.cc", | 726 ":generate_web_audio_cc_file", |
| 725 "builtin.h", | 727 "..:libdart_nosnapshot_with_precompiler", |
| 726 "dfe.cc", | 728 ] |
| 727 "dfe.h", | 729 extra_defines = [ "NO_OBSERVATORY" ] |
| 728 "loader.cc", | 730 extra_sources = [ |
| 729 "loader.h", | 731 "builtin.cc", |
| 730 "observatory_assets_empty.cc", | 732 "builtin.h", |
| 731 "snapshot_empty.cc", | 733 "dfe.cc", |
| 734 "dfe.h", | |
| 735 "loader.cc", | |
| 736 "loader.h", | |
| 737 "observatory_assets_empty.cc", | |
| 738 "snapshot_empty.cc", | |
| 732 | 739 |
| 733 # Include generated source files. | 740 # Include generated source files. |
| 734 "$target_gen_dir/builtin_gen.cc", | 741 "$target_gen_dir/builtin_gen.cc", |
| 735 "$target_gen_dir/io_gen.cc", | 742 "$target_gen_dir/io_gen.cc", |
| 736 "$target_gen_dir/io_patch_gen.cc", | 743 "$target_gen_dir/io_patch_gen.cc", |
| 737 "$target_gen_dir/html_gen.cc", | 744 "$target_gen_dir/html_gen.cc", |
| 738 "$target_gen_dir/html_common_gen.cc", | 745 "$target_gen_dir/html_common_gen.cc", |
| 739 "$target_gen_dir/js_gen.cc", | 746 "$target_gen_dir/js_gen.cc", |
| 740 "$target_gen_dir/js_util_gen.cc", | 747 "$target_gen_dir/js_util_gen.cc", |
| 741 "$target_gen_dir/blink_gen.cc", | 748 "$target_gen_dir/blink_gen.cc", |
| 742 "$target_gen_dir/indexed_db_gen.cc", | 749 "$target_gen_dir/indexed_db_gen.cc", |
| 743 "$target_gen_dir/cached_patches_gen.cc", | 750 "$target_gen_dir/cached_patches_gen.cc", |
| 744 "$target_gen_dir/web_gl_gen.cc", | 751 "$target_gen_dir/web_gl_gen.cc", |
| 745 "$target_gen_dir/metadata_gen.cc", | 752 "$target_gen_dir/metadata_gen.cc", |
| 746 "$target_gen_dir/web_sql_gen.cc", | 753 "$target_gen_dir/web_sql_gen.cc", |
| 747 "$target_gen_dir/svg_gen.cc", | 754 "$target_gen_dir/svg_gen.cc", |
| 748 "$target_gen_dir/web_audio_gen.cc", | 755 "$target_gen_dir/web_audio_gen.cc", |
| 749 ] | 756 ] |
| 757 } | |
| 758 } | |
| 759 | |
| 760 dart_bootstrap_template("dart_bootstrap") { | |
| 761 extra_configs = [ "..:dart_use_target_arch_config" ] | |
| 762 } | |
| 763 | |
| 764 # TODO(rmacnak): Remove if Fuchsia adds a checked-in SDK. | |
| 765 dart_bootstrap_template("dart_bootstrap_host_arch") { | |
| 766 extra_configs = [] | |
| 750 } | 767 } |
| 751 | 768 |
| 752 if (is_fuchsia) { | 769 if (is_fuchsia) { |
| 753 hello_fuchsia_source = rebase_path("../tests/vm/dart/hello_fuchsia_test.dart") | 770 hello_fuchsia_source = rebase_path("../tests/vm/dart/hello_fuchsia_test.dart") |
| 754 | 771 |
| 755 copy("hello_fuchsia") { | 772 copy("hello_fuchsia") { |
| 756 sources = [ | 773 sources = [ |
| 757 hello_fuchsia_source, | 774 hello_fuchsia_source, |
| 758 ] | 775 ] |
| 759 outputs = [ | 776 outputs = [ |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 828 } | 845 } |
| 829 | 846 |
| 830 executable("run_vm_tests") { | 847 executable("run_vm_tests") { |
| 831 if (is_fuchsia || is_fuchsia_host) { | 848 if (is_fuchsia || is_fuchsia_host) { |
| 832 testonly = true | 849 testonly = true |
| 833 } | 850 } |
| 834 | 851 |
| 835 configs += [ | 852 configs += [ |
| 836 "..:dart_config", | 853 "..:dart_config", |
| 837 "..:dart_maybe_product_config", | 854 "..:dart_maybe_product_config", |
| 855 "..:dart_use_target_arch_config", | |
|
rmacnak
2017/06/12 23:59:57
Here
| |
| 838 ] | 856 ] |
| 839 | 857 |
| 840 deps = [ | 858 deps = [ |
| 841 ":dart_snapshot_cc", | 859 ":dart_snapshot_cc", |
| 842 ":generate_snapshot_test_dat_file", | 860 ":generate_snapshot_test_dat_file", |
| 843 ":libdart_builtin", | 861 ":libdart_builtin", |
| 844 ":standalone_dart_io", | 862 ":standalone_dart_io", |
| 845 "$dart_zlib_path", | 863 "$dart_zlib_path", |
| 846 "..:libdart_jit", | 864 "..:libdart_jit", |
| 847 ] | 865 ] |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 924 ] | 942 ] |
| 925 if (is_linux || is_android) { | 943 if (is_linux || is_android) { |
| 926 cflags = [ "-fPIC" ] | 944 cflags = [ "-fPIC" ] |
| 927 } | 945 } |
| 928 if (is_win) { | 946 if (is_win) { |
| 929 libs = [ "dart.lib" ] | 947 libs = [ "dart.lib" ] |
| 930 abs_root_out_dir = rebase_path(root_out_dir) | 948 abs_root_out_dir = rebase_path(root_out_dir) |
| 931 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] | 949 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] |
| 932 } | 950 } |
| 933 } | 951 } |
| OLD | NEW |