| 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 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 689 "../observatory:standalone_observatory_archive", | 689 "../observatory:standalone_observatory_archive", |
| 690 ] | 690 ] |
| 691 extra_sources = [ | 691 extra_sources = [ |
| 692 "builtin_nolib.cc", | 692 "builtin_nolib.cc", |
| 693 "snapshot_empty.cc", | 693 "snapshot_empty.cc", |
| 694 "loader.cc", | 694 "loader.cc", |
| 695 "loader.h", | 695 "loader.h", |
| 696 ] | 696 ] |
| 697 } | 697 } |
| 698 | 698 |
| 699 dart_executable("dart_bootstrap") { | 699 template("dart_bootstrap_template") { |
| 700 extra_configs = [ | 700 invoker_extra_configs = [] |
| 701 "..:dart_precompiler_config", | 701 if (defined(invoker.extra_configs)) { |
| 702 "..:dart_no_snapshot_config", | 702 invoker_extra_configs += invoker.extra_configs |
| 703 ] | 703 } |
| 704 extra_deps = [ | 704 dart_executable(target_name) { |
| 705 ":generate_builtin_cc_file", | 705 extra_configs = [ |
| 706 ":generate_io_cc_file", | 706 "..:dart_precompiler_config", |
| 707 ":generate_io_patch_cc_file", | 707 "..:dart_no_snapshot_config", |
| 708 ":generate_html_cc_file", | 708 ] + invoker_extra_configs |
| 709 ":generate_html_common_cc_file", | 709 extra_deps = [ |
| 710 ":generate_js_cc_file", | 710 ":generate_builtin_cc_file", |
| 711 ":generate_js_util_cc_file", | 711 ":generate_io_cc_file", |
| 712 ":generate_blink_cc_file", | 712 ":generate_io_patch_cc_file", |
| 713 ":generate_indexed_db_cc_file", | 713 ":generate_html_cc_file", |
| 714 ":generate_cached_patches_cc_file", | 714 ":generate_html_common_cc_file", |
| 715 ":generate_web_gl_cc_file", | 715 ":generate_js_cc_file", |
| 716 ":generate_metadata_cc_file", | 716 ":generate_js_util_cc_file", |
| 717 ":generate_web_sql_cc_file", | 717 ":generate_blink_cc_file", |
| 718 ":generate_svg_cc_file", | 718 ":generate_indexed_db_cc_file", |
| 719 ":generate_web_audio_cc_file", | 719 ":generate_cached_patches_cc_file", |
| 720 "..:libdart_nosnapshot_with_precompiler", | 720 ":generate_web_gl_cc_file", |
| 721 ] | 721 ":generate_metadata_cc_file", |
| 722 extra_defines = [ "NO_OBSERVATORY" ] | 722 ":generate_web_sql_cc_file", |
| 723 extra_sources = [ | 723 ":generate_svg_cc_file", |
| 724 "builtin.cc", | 724 ":generate_web_audio_cc_file", |
| 725 "builtin.h", | 725 "..:libdart_nosnapshot_with_precompiler", |
| 726 "dfe.cc", | 726 ] |
| 727 "dfe.h", | 727 extra_defines = [ "NO_OBSERVATORY" ] |
| 728 "loader.cc", | 728 extra_sources = [ |
| 729 "loader.h", | 729 "builtin.cc", |
| 730 "observatory_assets_empty.cc", | 730 "builtin.h", |
| 731 "snapshot_empty.cc", | 731 "dfe.cc", |
| 732 "dfe.h", |
| 733 "loader.cc", |
| 734 "loader.h", |
| 735 "observatory_assets_empty.cc", |
| 736 "snapshot_empty.cc", |
| 732 | 737 |
| 733 # Include generated source files. | 738 # Include generated source files. |
| 734 "$target_gen_dir/builtin_gen.cc", | 739 "$target_gen_dir/builtin_gen.cc", |
| 735 "$target_gen_dir/io_gen.cc", | 740 "$target_gen_dir/io_gen.cc", |
| 736 "$target_gen_dir/io_patch_gen.cc", | 741 "$target_gen_dir/io_patch_gen.cc", |
| 737 "$target_gen_dir/html_gen.cc", | 742 "$target_gen_dir/html_gen.cc", |
| 738 "$target_gen_dir/html_common_gen.cc", | 743 "$target_gen_dir/html_common_gen.cc", |
| 739 "$target_gen_dir/js_gen.cc", | 744 "$target_gen_dir/js_gen.cc", |
| 740 "$target_gen_dir/js_util_gen.cc", | 745 "$target_gen_dir/js_util_gen.cc", |
| 741 "$target_gen_dir/blink_gen.cc", | 746 "$target_gen_dir/blink_gen.cc", |
| 742 "$target_gen_dir/indexed_db_gen.cc", | 747 "$target_gen_dir/indexed_db_gen.cc", |
| 743 "$target_gen_dir/cached_patches_gen.cc", | 748 "$target_gen_dir/cached_patches_gen.cc", |
| 744 "$target_gen_dir/web_gl_gen.cc", | 749 "$target_gen_dir/web_gl_gen.cc", |
| 745 "$target_gen_dir/metadata_gen.cc", | 750 "$target_gen_dir/metadata_gen.cc", |
| 746 "$target_gen_dir/web_sql_gen.cc", | 751 "$target_gen_dir/web_sql_gen.cc", |
| 747 "$target_gen_dir/svg_gen.cc", | 752 "$target_gen_dir/svg_gen.cc", |
| 748 "$target_gen_dir/web_audio_gen.cc", | 753 "$target_gen_dir/web_audio_gen.cc", |
| 749 ] | 754 ] |
| 755 } |
| 756 } |
| 757 |
| 758 dart_bootstrap_template("dart_bootstrap") { |
| 759 extra_configs = [ "..:dart_use_target_arch_config" ] |
| 760 } |
| 761 |
| 762 # TODO(rmacnak): Remove if Fuchsia adds a checked-in SDK. |
| 763 dart_bootstrap_template("dart_bootstrap_host_arch") { |
| 764 extra_configs = [] |
| 750 } | 765 } |
| 751 | 766 |
| 752 if (is_fuchsia) { | 767 if (is_fuchsia) { |
| 753 hello_fuchsia_source = rebase_path("../tests/vm/dart/hello_fuchsia_test.dart") | 768 hello_fuchsia_source = rebase_path("../tests/vm/dart/hello_fuchsia_test.dart") |
| 754 | 769 |
| 755 copy("hello_fuchsia") { | 770 copy("hello_fuchsia") { |
| 756 sources = [ | 771 sources = [ |
| 757 hello_fuchsia_source, | 772 hello_fuchsia_source, |
| 758 ] | 773 ] |
| 759 outputs = [ | 774 outputs = [ |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 924 ] | 939 ] |
| 925 if (is_linux || is_android) { | 940 if (is_linux || is_android) { |
| 926 cflags = [ "-fPIC" ] | 941 cflags = [ "-fPIC" ] |
| 927 } | 942 } |
| 928 if (is_win) { | 943 if (is_win) { |
| 929 libs = [ "dart.lib" ] | 944 libs = [ "dart.lib" ] |
| 930 abs_root_out_dir = rebase_path(root_out_dir) | 945 abs_root_out_dir = rebase_path(root_out_dir) |
| 931 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] | 946 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] |
| 932 } | 947 } |
| 933 } | 948 } |
| OLD | NEW |