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

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

Issue 2951133002: Mostly revert "[fuchsia] Prepare for setting the Dart target architecture appropriately in the host… (Closed)
Patch Set: gn 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
« no previous file with comments | « runtime/BUILD.gn ('k') | runtime/observatory/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 "log_macos.cc", 270 "log_macos.cc",
271 "log_win.cc", 271 "log_win.cc",
272 ] + builtin_impl_sources_gypi 272 ] + builtin_impl_sources_gypi
273 } 273 }
274 274
275 executable("gen_snapshot") { 275 executable("gen_snapshot") {
276 configs += [ 276 configs += [
277 "..:dart_config", 277 "..:dart_config",
278 "..:dart_maybe_product_config", 278 "..:dart_maybe_product_config",
279 "..:dart_precompiler_config", 279 "..:dart_precompiler_config",
280 "..:dart_use_target_arch_config",
281 ] 280 ]
282 if (is_fuchsia) { 281 if (is_fuchsia) {
283 configs -= [ "//build/config:symbol_visibility_hidden" ] 282 configs -= [ "//build/config:symbol_visibility_hidden" ]
284 } 283 }
285 deps = [ 284 deps = [
286 ":gen_resources_cc", 285 ":gen_resources_cc",
287 ":gen_snapshot_dart_io", 286 ":gen_snapshot_dart_io",
288 ":generate_builtin_cc_file", 287 ":generate_builtin_cc_file",
289 ":generate_io_cc_file", 288 ":generate_io_cc_file",
290 ":generate_io_patch_cc_file", 289 ":generate_io_patch_cc_file",
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 ] 675 ]
677 } 676 }
678 677
679 if (is_fuchsia) { 678 if (is_fuchsia) {
680 libs = [ "launchpad" ] 679 libs = [ "launchpad" ]
681 } 680 }
682 } 681 }
683 } 682 }
684 683
685 dart_executable("dart") { 684 dart_executable("dart") {
686 extra_configs = [ "..:dart_use_target_arch_config" ]
687 extra_deps = [ 685 extra_deps = [
688 "..:libdart_jit", 686 "..:libdart_jit",
689 ":dart_snapshot_cc", 687 ":dart_snapshot_cc",
690 "../observatory:standalone_observatory_archive", 688 "../observatory:standalone_observatory_archive",
691 ] 689 ]
692 extra_sources = [ 690 extra_sources = [
693 "builtin_nolib.cc", 691 "builtin_nolib.cc",
694 "dfe.cc", 692 "dfe.cc",
695 "dfe.h", 693 "dfe.h",
696 "loader.cc", 694 "loader.cc",
697 "loader.h", 695 "loader.h",
698 ] 696 ]
699 } 697 }
700 698
701 dart_executable("dart_precompiled_runtime") { 699 dart_executable("dart_precompiled_runtime") {
702 extra_configs = [ "..:dart_precompiled_runtime_config" ] 700 extra_configs = [ "..:dart_precompiled_runtime_config" ]
703 extra_deps = [ 701 extra_deps = [
704 "..:libdart_precompiled_runtime", 702 "..:libdart_precompiled_runtime",
705 "../observatory:standalone_observatory_archive", 703 "../observatory:standalone_observatory_archive",
706 ] 704 ]
707 extra_sources = [ 705 extra_sources = [
708 "builtin_nolib.cc", 706 "builtin_nolib.cc",
709 "snapshot_empty.cc", 707 "snapshot_empty.cc",
710 "loader.cc", 708 "loader.cc",
711 "loader.h", 709 "loader.h",
712 ] 710 ]
713 } 711 }
714 712
715 template("dart_bootstrap_template") { 713 dart_executable("dart_bootstrap") {
716 invoker_extra_configs = [] 714 extra_configs = [
717 if (defined(invoker.extra_configs)) { 715 "..:dart_precompiler_config",
718 invoker_extra_configs += invoker.extra_configs 716 "..:dart_no_snapshot_config",
719 } 717 ]
720 dart_executable(target_name) { 718 extra_deps = [
721 extra_configs = [ 719 ":generate_builtin_cc_file",
722 "..:dart_precompiler_config", 720 ":generate_io_cc_file",
723 "..:dart_no_snapshot_config", 721 ":generate_io_patch_cc_file",
724 ] + invoker_extra_configs 722 ":generate_html_cc_file",
725 extra_deps = [ 723 ":generate_html_common_cc_file",
726 ":generate_builtin_cc_file", 724 ":generate_js_cc_file",
727 ":generate_io_cc_file", 725 ":generate_js_util_cc_file",
728 ":generate_io_patch_cc_file", 726 ":generate_blink_cc_file",
729 ":generate_html_cc_file", 727 ":generate_indexed_db_cc_file",
730 ":generate_html_common_cc_file", 728 ":generate_cached_patches_cc_file",
731 ":generate_js_cc_file", 729 ":generate_web_gl_cc_file",
732 ":generate_js_util_cc_file", 730 ":generate_metadata_cc_file",
733 ":generate_blink_cc_file", 731 ":generate_web_sql_cc_file",
734 ":generate_indexed_db_cc_file", 732 ":generate_svg_cc_file",
735 ":generate_cached_patches_cc_file", 733 ":generate_web_audio_cc_file",
736 ":generate_web_gl_cc_file", 734 "..:libdart_nosnapshot_with_precompiler",
737 ":generate_metadata_cc_file", 735 ]
738 ":generate_web_sql_cc_file", 736 extra_defines = [ "NO_OBSERVATORY" ]
739 ":generate_svg_cc_file", 737 extra_sources = [
740 ":generate_web_audio_cc_file", 738 "builtin.cc",
741 "..:libdart_nosnapshot_with_precompiler", 739 "builtin.h",
742 ] 740 "dfe.cc",
743 extra_defines = [ "NO_OBSERVATORY" ] 741 "dfe.h",
744 extra_sources = [ 742 "loader.cc",
745 "builtin.cc", 743 "loader.h",
746 "builtin.h", 744 "observatory_assets_empty.cc",
747 "dfe.cc", 745 "snapshot_empty.cc",
748 "dfe.h",
749 "loader.cc",
750 "loader.h",
751 "observatory_assets_empty.cc",
752 "snapshot_empty.cc",
753 746
754 # Include generated source files. 747 # Include generated source files.
755 "$target_gen_dir/builtin_gen.cc", 748 "$target_gen_dir/builtin_gen.cc",
756 "$target_gen_dir/io_gen.cc", 749 "$target_gen_dir/io_gen.cc",
757 "$target_gen_dir/io_patch_gen.cc", 750 "$target_gen_dir/io_patch_gen.cc",
758 "$target_gen_dir/html_gen.cc", 751 "$target_gen_dir/html_gen.cc",
759 "$target_gen_dir/html_common_gen.cc", 752 "$target_gen_dir/html_common_gen.cc",
760 "$target_gen_dir/js_gen.cc", 753 "$target_gen_dir/js_gen.cc",
761 "$target_gen_dir/js_util_gen.cc", 754 "$target_gen_dir/js_util_gen.cc",
762 "$target_gen_dir/blink_gen.cc", 755 "$target_gen_dir/blink_gen.cc",
763 "$target_gen_dir/indexed_db_gen.cc", 756 "$target_gen_dir/indexed_db_gen.cc",
764 "$target_gen_dir/cached_patches_gen.cc", 757 "$target_gen_dir/cached_patches_gen.cc",
765 "$target_gen_dir/web_gl_gen.cc", 758 "$target_gen_dir/web_gl_gen.cc",
766 "$target_gen_dir/metadata_gen.cc", 759 "$target_gen_dir/metadata_gen.cc",
767 "$target_gen_dir/web_sql_gen.cc", 760 "$target_gen_dir/web_sql_gen.cc",
768 "$target_gen_dir/svg_gen.cc", 761 "$target_gen_dir/svg_gen.cc",
769 "$target_gen_dir/web_audio_gen.cc", 762 "$target_gen_dir/web_audio_gen.cc",
770 ] 763 ]
771 }
772 }
773
774 dart_bootstrap_template("dart_bootstrap") {
775 extra_configs = [ "..:dart_use_target_arch_config" ]
776 }
777
778 # TODO(rmacnak): Remove if Fuchsia adds a checked-in SDK.
779 dart_bootstrap_template("dart_bootstrap_host_arch") {
780 extra_configs = []
781 } 764 }
782 765
783 if (is_fuchsia) { 766 if (is_fuchsia) {
784 hello_fuchsia_source = rebase_path("../tests/vm/dart/hello_fuchsia_test.dart") 767 hello_fuchsia_source = rebase_path("../tests/vm/dart/hello_fuchsia_test.dart")
785 768
786 copy("hello_fuchsia") { 769 copy("hello_fuchsia") {
787 sources = [ 770 sources = [
788 hello_fuchsia_source, 771 hello_fuchsia_source,
789 ] 772 ]
790 outputs = [ 773 outputs = [
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 } 842 }
860 843
861 executable("run_vm_tests") { 844 executable("run_vm_tests") {
862 if (is_fuchsia || is_fuchsia_host) { 845 if (is_fuchsia || is_fuchsia_host) {
863 testonly = true 846 testonly = true
864 } 847 }
865 848
866 configs += [ 849 configs += [
867 "..:dart_config", 850 "..:dart_config",
868 "..:dart_maybe_product_config", 851 "..:dart_maybe_product_config",
869 "..:dart_use_target_arch_config",
870 ] 852 ]
871 if (is_fuchsia) { 853 if (is_fuchsia) {
872 configs -= [ "//build/config:symbol_visibility_hidden" ] 854 configs -= [ "//build/config:symbol_visibility_hidden" ]
873 } 855 }
874 856
875 deps = [ 857 deps = [
876 ":dart_snapshot_cc", 858 ":dart_snapshot_cc",
877 ":generate_snapshot_test_dat_file", 859 ":generate_snapshot_test_dat_file",
878 ":libdart_builtin", 860 ":libdart_builtin",
879 ":standalone_dart_io", 861 ":standalone_dart_io",
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
959 ] 941 ]
960 if (is_linux || is_android) { 942 if (is_linux || is_android) {
961 cflags = [ "-fPIC" ] 943 cflags = [ "-fPIC" ]
962 } 944 }
963 if (is_win) { 945 if (is_win) {
964 libs = [ "dart.lib" ] 946 libs = [ "dart.lib" ]
965 abs_root_out_dir = rebase_path(root_out_dir) 947 abs_root_out_dir = rebase_path(root_out_dir)
966 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] 948 ldflags = [ "/LIBPATH:$abs_root_out_dir" ]
967 } 949 }
968 } 950 }
OLDNEW
« no previous file with comments | « runtime/BUILD.gn ('k') | runtime/observatory/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698