Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(705)

Side by Side Diff: runtime/bin/BUILD.gn

Issue 2924173005: [fuchsia] Prepare for setting the Dart target architecture appropriately in the host binaries. (Closed)
Patch Set: format Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 "$target_gen_dir/indexed_db_gen.cc", 742 "$target_gen_dir/indexed_db_gen.cc",
743 "$target_gen_dir/cached_patches_gen.cc", 743 "$target_gen_dir/cached_patches_gen.cc",
744 "$target_gen_dir/web_gl_gen.cc", 744 "$target_gen_dir/web_gl_gen.cc",
745 "$target_gen_dir/metadata_gen.cc", 745 "$target_gen_dir/metadata_gen.cc",
746 "$target_gen_dir/web_sql_gen.cc", 746 "$target_gen_dir/web_sql_gen.cc",
747 "$target_gen_dir/svg_gen.cc", 747 "$target_gen_dir/svg_gen.cc",
748 "$target_gen_dir/web_audio_gen.cc", 748 "$target_gen_dir/web_audio_gen.cc",
749 ] 749 ]
750 } 750 }
751 751
752 # TODO: Remove when Fuchsia has a checked-in SDK.
zra 2017/06/12 18:12:18 ditto
rmacnak 2017/06/12 21:10:50 Done.
753 dart_executable("dart_bootstrap_host_arch") {
zra 2017/06/12 18:12:18 Maybe use a dart_bootstrap() template to avoid dup
rmacnak 2017/06/12 21:10:51 Done.
754 extra_configs = [
755 "..:dart_precompiler_config",
756 "..:dart_no_snapshot_config",
757 "..:dart_use_target_arch_config",
zra 2017/06/12 18:12:18 Target is called _host_arch, but uses a _target_ar
rmacnak 2017/06/12 21:10:50 Yikes, this is backwards and meant to be applied t
758 ]
759 extra_deps = [
760 ":generate_builtin_cc_file",
761 ":generate_io_cc_file",
762 ":generate_io_patch_cc_file",
763 ":generate_html_cc_file",
764 ":generate_html_common_cc_file",
765 ":generate_js_cc_file",
766 ":generate_js_util_cc_file",
767 ":generate_blink_cc_file",
768 ":generate_indexed_db_cc_file",
769 ":generate_cached_patches_cc_file",
770 ":generate_web_gl_cc_file",
771 ":generate_metadata_cc_file",
772 ":generate_web_sql_cc_file",
773 ":generate_svg_cc_file",
774 ":generate_web_audio_cc_file",
775 "..:libdart_nosnapshot_with_precompiler_host_arch",
776 ]
777 extra_defines = [ "NO_OBSERVATORY" ]
778 extra_sources = [
779 "builtin.cc",
780 "builtin.h",
781 "dfe.cc",
782 "dfe.h",
783 "loader.cc",
784 "loader.h",
785 "observatory_assets_empty.cc",
786 "snapshot_empty.cc",
787
788 # Include generated source files.
789 "$target_gen_dir/builtin_gen.cc",
790 "$target_gen_dir/io_gen.cc",
791 "$target_gen_dir/io_patch_gen.cc",
792 "$target_gen_dir/html_gen.cc",
793 "$target_gen_dir/html_common_gen.cc",
794 "$target_gen_dir/js_gen.cc",
795 "$target_gen_dir/js_util_gen.cc",
796 "$target_gen_dir/blink_gen.cc",
797 "$target_gen_dir/indexed_db_gen.cc",
798 "$target_gen_dir/cached_patches_gen.cc",
799 "$target_gen_dir/web_gl_gen.cc",
800 "$target_gen_dir/metadata_gen.cc",
801 "$target_gen_dir/web_sql_gen.cc",
802 "$target_gen_dir/svg_gen.cc",
803 "$target_gen_dir/web_audio_gen.cc",
804 ]
805 }
806
752 if (is_fuchsia) { 807 if (is_fuchsia) {
753 hello_fuchsia_source = rebase_path("../tests/vm/dart/hello_fuchsia_test.dart") 808 hello_fuchsia_source = rebase_path("../tests/vm/dart/hello_fuchsia_test.dart")
754 809
755 copy("hello_fuchsia") { 810 copy("hello_fuchsia") {
756 sources = [ 811 sources = [
757 hello_fuchsia_source, 812 hello_fuchsia_source,
758 ] 813 ]
759 outputs = [ 814 outputs = [
760 "$root_out_dir/hello_fuchsia.dart", 815 "$root_out_dir/hello_fuchsia.dart",
761 ] 816 ]
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 ] 979 ]
925 if (is_linux || is_android) { 980 if (is_linux || is_android) {
926 cflags = [ "-fPIC" ] 981 cflags = [ "-fPIC" ]
927 } 982 }
928 if (is_win) { 983 if (is_win) {
929 libs = [ "dart.lib" ] 984 libs = [ "dart.lib" ]
930 abs_root_out_dir = rebase_path(root_out_dir) 985 abs_root_out_dir = rebase_path(root_out_dir)
931 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] 986 ldflags = [ "/LIBPATH:$abs_root_out_dir" ]
932 } 987 }
933 } 988 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698