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 # Generate a resources.cc file for the service isolate without Observatory. | 9 # Generate a resources.cc file for the service isolate without Observatory. |
10 action("gen_resources_cc") { | 10 action("gen_resources_cc") { |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 "$target_gen_dir/resources_gen.cc", | 286 "$target_gen_dir/resources_gen.cc", |
287 "address_sanitizer.cc", | 287 "address_sanitizer.cc", |
288 "builtin.cc", | 288 "builtin.cc", |
289 "builtin.h", | 289 "builtin.h", |
290 "loader.cc", | 290 "loader.cc", |
291 "loader.h", | 291 "loader.h", |
292 | 292 |
293 # Very limited native resolver provided. | 293 # Very limited native resolver provided. |
294 "builtin_common.cc", | 294 "builtin_common.cc", |
295 "builtin_gen_snapshot.cc", | 295 "builtin_gen_snapshot.cc", |
| 296 "dfe.cc", |
| 297 "dfe.h", |
296 "gen_snapshot.cc", | 298 "gen_snapshot.cc", |
297 "vmservice_impl.cc", | 299 "vmservice_impl.cc", |
298 "vmservice_impl.h", | 300 "vmservice_impl.h", |
299 ] | 301 ] |
300 | 302 |
301 include_dirs = [ ".." ] | 303 include_dirs = [ ".." ] |
302 | 304 |
303 if (dart_use_tcmalloc) { | 305 if (dart_use_tcmalloc) { |
304 deps += [ "//third_party/tcmalloc" ] | 306 deps += [ "//third_party/tcmalloc" ] |
305 } | 307 } |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 } | 664 } |
663 | 665 |
664 dart_executable("dart") { | 666 dart_executable("dart") { |
665 extra_deps = [ | 667 extra_deps = [ |
666 "..:libdart_jit", | 668 "..:libdart_jit", |
667 ":dart_snapshot_cc", | 669 ":dart_snapshot_cc", |
668 "../observatory:standalone_observatory_archive", | 670 "../observatory:standalone_observatory_archive", |
669 ] | 671 ] |
670 extra_sources = [ | 672 extra_sources = [ |
671 "builtin_nolib.cc", | 673 "builtin_nolib.cc", |
| 674 "dfe.cc", |
| 675 "dfe.h", |
672 "loader.cc", | 676 "loader.cc", |
673 "loader.h", | 677 "loader.h", |
674 ] | 678 ] |
675 } | 679 } |
676 | 680 |
677 dart_executable("dart_precompiled_runtime") { | 681 dart_executable("dart_precompiled_runtime") { |
678 extra_configs = [ "..:dart_precompiled_runtime_config" ] | 682 extra_configs = [ "..:dart_precompiled_runtime_config" ] |
679 extra_deps = [ | 683 extra_deps = [ |
680 "..:libdart_precompiled_runtime", | 684 "..:libdart_precompiled_runtime", |
681 "../observatory:standalone_observatory_archive", | 685 "../observatory:standalone_observatory_archive", |
(...skipping 26 matching lines...) Expand all Loading... |
708 ":generate_metadata_cc_file", | 712 ":generate_metadata_cc_file", |
709 ":generate_web_sql_cc_file", | 713 ":generate_web_sql_cc_file", |
710 ":generate_svg_cc_file", | 714 ":generate_svg_cc_file", |
711 ":generate_web_audio_cc_file", | 715 ":generate_web_audio_cc_file", |
712 "..:libdart_nosnapshot_with_precompiler", | 716 "..:libdart_nosnapshot_with_precompiler", |
713 ] | 717 ] |
714 extra_defines = [ "NO_OBSERVATORY" ] | 718 extra_defines = [ "NO_OBSERVATORY" ] |
715 extra_sources = [ | 719 extra_sources = [ |
716 "builtin.cc", | 720 "builtin.cc", |
717 "builtin.h", | 721 "builtin.h", |
| 722 "dfe.cc", |
| 723 "dfe.h", |
718 "loader.cc", | 724 "loader.cc", |
719 "loader.h", | 725 "loader.h", |
720 "observatory_assets_empty.cc", | 726 "observatory_assets_empty.cc", |
721 "snapshot_empty.cc", | 727 "snapshot_empty.cc", |
722 | 728 |
723 # Include generated source files. | 729 # Include generated source files. |
724 "$target_gen_dir/builtin_gen.cc", | 730 "$target_gen_dir/builtin_gen.cc", |
725 "$target_gen_dir/io_gen.cc", | 731 "$target_gen_dir/io_gen.cc", |
726 "$target_gen_dir/io_patch_gen.cc", | 732 "$target_gen_dir/io_patch_gen.cc", |
727 "$target_gen_dir/html_gen.cc", | 733 "$target_gen_dir/html_gen.cc", |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
850 # the tests here. | 856 # the tests here. |
851 vm_tests = rebase_path(vm_tests_list, ".", "../vm") | 857 vm_tests = rebase_path(vm_tests_list, ".", "../vm") |
852 | 858 |
853 sources = [ | 859 sources = [ |
854 "error_exit.cc", | 860 "error_exit.cc", |
855 "error_exit.h", | 861 "error_exit.h", |
856 "snapshot_utils.cc", | 862 "snapshot_utils.cc", |
857 "snapshot_utils.h", | 863 "snapshot_utils.h", |
858 "builtin_nolib.cc", | 864 "builtin_nolib.cc", |
859 "run_vm_tests.cc", | 865 "run_vm_tests.cc", |
| 866 "dfe.cc", |
| 867 "dfe.h", |
860 ] + builtin_impl_tests_list + vm_tests | 868 ] + builtin_impl_tests_list + vm_tests |
861 | 869 |
862 if (!is_win) { | 870 if (!is_win) { |
863 ldflags = [ "-rdynamic" ] | 871 ldflags = [ "-rdynamic" ] |
864 } | 872 } |
865 | 873 |
866 if (is_win) { | 874 if (is_win) { |
867 libs = [ | 875 libs = [ |
868 "iphlpapi.lib", | 876 "iphlpapi.lib", |
869 "psapi.lib", | 877 "psapi.lib", |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
912 ] | 920 ] |
913 if (is_linux || is_android) { | 921 if (is_linux || is_android) { |
914 cflags = [ "-fPIC" ] | 922 cflags = [ "-fPIC" ] |
915 } | 923 } |
916 if (is_win) { | 924 if (is_win) { |
917 libs = [ "dart.lib" ] | 925 libs = [ "dart.lib" ] |
918 abs_root_out_dir = rebase_path(root_out_dir) | 926 abs_root_out_dir = rebase_path(root_out_dir) |
919 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] | 927 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] |
920 } | 928 } |
921 } | 929 } |
OLD | NEW |