| 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 23 matching lines...) Expand all Loading... |
| 34 "dart", | 34 "dart", |
| 35 "--inner_namespace", | 35 "--inner_namespace", |
| 36 "bin", | 36 "bin", |
| 37 "--table_name", | 37 "--table_name", |
| 38 "service_bin", | 38 "service_bin", |
| 39 "--root_prefix", | 39 "--root_prefix", |
| 40 rebase_path(".", root_build_dir) + "/", | 40 rebase_path(".", root_build_dir) + "/", |
| 41 ] + rebase_path(sources, root_build_dir) | 41 ] + rebase_path(sources, root_build_dir) |
| 42 } | 42 } |
| 43 | 43 |
| 44 template("gen_service_isolate_bindata") { |
| 45 assert(defined(invoker.output), "Need output in $target_name") |
| 46 extra_args = [] |
| 47 if (defined(invoker.extra_args)) { |
| 48 extra_args += invoker.extra_args |
| 49 } |
| 50 extra_deps = [] |
| 51 if (defined(invoker.extra_deps)) { |
| 52 extra_deps += invoker.extra_deps |
| 53 } |
| 54 action(target_name) { |
| 55 visibility = [ ":*" ] |
| 56 script = "../tools/create_service_isolate_bindata.py" |
| 57 inputs = [ |
| 58 "../tools/create_service_isolate_bindata.py", |
| 59 ] |
| 60 outputs = [ |
| 61 invoker.output, |
| 62 ] |
| 63 args = [ |
| 64 "--build_dir", |
| 65 rebase_path("$root_build_dir"), |
| 66 "--output", |
| 67 rebase_path(invoker.output, root_build_dir), |
| 68 ] + extra_args |
| 69 deps = extra_deps |
| 70 } |
| 71 } |
| 72 |
| 73 gen_service_isolate_bindata("service_isolate_bindata_empty") { |
| 74 output = "$target_gen_dir/service_isolate_bindata_empty.cc" |
| 75 extra_args = [ |
| 76 "--empty", |
| 77 "true", |
| 78 ] |
| 79 } |
| 80 |
| 44 template("gen_library_src_path") { | 81 template("gen_library_src_path") { |
| 45 assert(defined(invoker.sources), "Need sources in $target_name") | 82 assert(defined(invoker.sources), "Need sources in $target_name") |
| 46 assert(defined(invoker.output), "Need output in $target_name") | 83 assert(defined(invoker.output), "Need output in $target_name") |
| 47 action(target_name) { | 84 action(target_name) { |
| 48 visibility = [ ":*" ] # Only targets in this file can see this. | 85 visibility = [ ":*" ] # Only targets in this file can see this. |
| 49 script = "../tools/gen_library_src_paths.py" | 86 script = "../tools/gen_library_src_paths.py" |
| 50 inputs = [ | 87 inputs = [ |
| 51 "../tools/gen_library_src_paths.py", | 88 "../tools/gen_library_src_paths.py", |
| 52 "builtin_in.cc", | 89 "builtin_in.cc", |
| 53 ] + invoker.sources | 90 ] + invoker.sources |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 "..:dart_maybe_product_config", | 312 "..:dart_maybe_product_config", |
| 276 "..:dart_precompiler_config", | 313 "..:dart_precompiler_config", |
| 277 ] | 314 ] |
| 278 deps = [ | 315 deps = [ |
| 279 ":gen_resources_cc", | 316 ":gen_resources_cc", |
| 280 ":gen_snapshot_dart_io", | 317 ":gen_snapshot_dart_io", |
| 281 ":generate_builtin_cc_file", | 318 ":generate_builtin_cc_file", |
| 282 ":generate_io_cc_file", | 319 ":generate_io_cc_file", |
| 283 ":generate_io_patch_cc_file", | 320 ":generate_io_patch_cc_file", |
| 284 ":libdart_builtin", | 321 ":libdart_builtin", |
| 322 ":service_isolate_bindata_empty", |
| 285 "..:libdart_nosnapshot_with_precompiler", | 323 "..:libdart_nosnapshot_with_precompiler", |
| 286 ] | 324 ] |
| 287 | 325 |
| 288 sources = [ | 326 sources = [ |
| 289 # Include generated source files. | 327 # Include generated source files. |
| 290 "$target_gen_dir/builtin_gen.cc", | 328 "$target_gen_dir/builtin_gen.cc", |
| 291 "$target_gen_dir/io_gen.cc", | 329 "$target_gen_dir/io_gen.cc", |
| 292 "$target_gen_dir/io_patch_gen.cc", | 330 "$target_gen_dir/io_patch_gen.cc", |
| 293 "$target_gen_dir/resources_gen.cc", | 331 "$target_gen_dir/resources_gen.cc", |
| 294 "address_sanitizer.cc", | 332 "address_sanitizer.cc", |
| 295 "builtin.cc", | 333 "builtin.cc", |
| 296 "builtin.h", | 334 "builtin.h", |
| 297 "loader.cc", | 335 "loader.cc", |
| 298 "loader.h", | 336 "loader.h", |
| 299 | 337 |
| 300 # Very limited native resolver provided. | 338 # Very limited native resolver provided. |
| 339 "$target_gen_dir/service_isolate_bindata_empty.cc", |
| 301 "builtin_common.cc", | 340 "builtin_common.cc", |
| 302 "builtin_gen_snapshot.cc", | 341 "builtin_gen_snapshot.cc", |
| 303 "dfe.cc", | 342 "dfe.cc", |
| 304 "dfe.h", | 343 "dfe.h", |
| 305 "gen_snapshot.cc", | 344 "gen_snapshot.cc", |
| 345 "service_isolate_bindata.h", |
| 306 "vmservice_impl.cc", | 346 "vmservice_impl.cc", |
| 307 "vmservice_impl.h", | 347 "vmservice_impl.h", |
| 308 ] | 348 ] |
| 309 | 349 |
| 310 include_dirs = [ ".." ] | 350 include_dirs = [ ".." ] |
| 311 | 351 |
| 312 if (dart_use_tcmalloc) { | 352 if (dart_use_tcmalloc) { |
| 313 deps += [ "//third_party/tcmalloc" ] | 353 deps += [ "//third_party/tcmalloc" ] |
| 314 } | 354 } |
| 315 | 355 |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 "winmm.lib", | 714 "winmm.lib", |
| 675 ] | 715 ] |
| 676 } | 716 } |
| 677 | 717 |
| 678 if (is_fuchsia) { | 718 if (is_fuchsia) { |
| 679 libs = [ "launchpad" ] | 719 libs = [ "launchpad" ] |
| 680 } | 720 } |
| 681 } | 721 } |
| 682 } | 722 } |
| 683 | 723 |
| 724 gen_service_isolate_bindata("service_isolate_bindata") { |
| 725 output = "$target_gen_dir/service_isolate_bindata.cc" |
| 726 extra_deps = [ ":dart_bootstrap" ] |
| 727 } |
| 728 |
| 684 dart_executable("dart") { | 729 dart_executable("dart") { |
| 685 extra_deps = [ | 730 extra_deps = [ |
| 686 "..:libdart_jit", | 731 "..:libdart_jit", |
| 687 ":dart_snapshot_cc", | 732 ":dart_snapshot_cc", |
| 733 ":service_isolate_bindata", |
| 688 "../observatory:standalone_observatory_archive", | 734 "../observatory:standalone_observatory_archive", |
| 689 ] | 735 ] |
| 690 extra_sources = [ | 736 extra_sources = [ |
| 691 "builtin_nolib.cc", | 737 "builtin_nolib.cc", |
| 692 "dfe.cc", | 738 "dfe.cc", |
| 693 "dfe.h", | 739 "dfe.h", |
| 694 "loader.cc", | 740 "loader.cc", |
| 695 "loader.h", | 741 "loader.h", |
| 742 "service_isolate_bindata.h", |
| 743 "$target_gen_dir/service_isolate_bindata.cc", |
| 696 ] | 744 ] |
| 697 } | 745 } |
| 698 | 746 |
| 699 dart_executable("dart_precompiled_runtime") { | 747 dart_executable("dart_precompiled_runtime") { |
| 700 extra_configs = [ "..:dart_precompiled_runtime_config" ] | 748 extra_configs = [ "..:dart_precompiled_runtime_config" ] |
| 701 extra_deps = [ | 749 extra_deps = [ |
| 702 "..:libdart_precompiled_runtime", | 750 "..:libdart_precompiled_runtime", |
| 703 "../observatory:standalone_observatory_archive", | 751 "../observatory:standalone_observatory_archive", |
| 704 ] | 752 ] |
| 705 extra_sources = [ | 753 extra_sources = [ |
| (...skipping 18 matching lines...) Expand all Loading... |
| 724 ":generate_js_cc_file", | 772 ":generate_js_cc_file", |
| 725 ":generate_js_util_cc_file", | 773 ":generate_js_util_cc_file", |
| 726 ":generate_blink_cc_file", | 774 ":generate_blink_cc_file", |
| 727 ":generate_indexed_db_cc_file", | 775 ":generate_indexed_db_cc_file", |
| 728 ":generate_cached_patches_cc_file", | 776 ":generate_cached_patches_cc_file", |
| 729 ":generate_web_gl_cc_file", | 777 ":generate_web_gl_cc_file", |
| 730 ":generate_metadata_cc_file", | 778 ":generate_metadata_cc_file", |
| 731 ":generate_web_sql_cc_file", | 779 ":generate_web_sql_cc_file", |
| 732 ":generate_svg_cc_file", | 780 ":generate_svg_cc_file", |
| 733 ":generate_web_audio_cc_file", | 781 ":generate_web_audio_cc_file", |
| 782 ":service_isolate_bindata_empty", |
| 734 "..:libdart_nosnapshot_with_precompiler", | 783 "..:libdart_nosnapshot_with_precompiler", |
| 735 ] | 784 ] |
| 736 extra_defines = [ "NO_OBSERVATORY" ] | 785 extra_defines = [ "NO_OBSERVATORY" ] |
| 737 extra_sources = [ | 786 extra_sources = [ |
| 738 "builtin.cc", | 787 "builtin.cc", |
| 739 "builtin.h", | 788 "builtin.h", |
| 740 "dfe.cc", | 789 "dfe.cc", |
| 741 "dfe.h", | 790 "dfe.h", |
| 742 "loader.cc", | 791 "loader.cc", |
| 743 "loader.h", | 792 "loader.h", |
| 744 "observatory_assets_empty.cc", | 793 "observatory_assets_empty.cc", |
| 745 "snapshot_empty.cc", | 794 "snapshot_empty.cc", |
| 795 "service_isolate_bindata.h", |
| 746 | 796 |
| 747 # Include generated source files. | 797 # Include generated source files. |
| 748 "$target_gen_dir/builtin_gen.cc", | 798 "$target_gen_dir/builtin_gen.cc", |
| 749 "$target_gen_dir/io_gen.cc", | 799 "$target_gen_dir/io_gen.cc", |
| 750 "$target_gen_dir/io_patch_gen.cc", | 800 "$target_gen_dir/io_patch_gen.cc", |
| 751 "$target_gen_dir/html_gen.cc", | 801 "$target_gen_dir/html_gen.cc", |
| 752 "$target_gen_dir/html_common_gen.cc", | 802 "$target_gen_dir/html_common_gen.cc", |
| 753 "$target_gen_dir/js_gen.cc", | 803 "$target_gen_dir/js_gen.cc", |
| 754 "$target_gen_dir/js_util_gen.cc", | 804 "$target_gen_dir/js_util_gen.cc", |
| 755 "$target_gen_dir/blink_gen.cc", | 805 "$target_gen_dir/blink_gen.cc", |
| 756 "$target_gen_dir/indexed_db_gen.cc", | 806 "$target_gen_dir/indexed_db_gen.cc", |
| 757 "$target_gen_dir/cached_patches_gen.cc", | 807 "$target_gen_dir/cached_patches_gen.cc", |
| 758 "$target_gen_dir/web_gl_gen.cc", | 808 "$target_gen_dir/web_gl_gen.cc", |
| 759 "$target_gen_dir/metadata_gen.cc", | 809 "$target_gen_dir/metadata_gen.cc", |
| 760 "$target_gen_dir/web_sql_gen.cc", | 810 "$target_gen_dir/web_sql_gen.cc", |
| 761 "$target_gen_dir/svg_gen.cc", | 811 "$target_gen_dir/svg_gen.cc", |
| 762 "$target_gen_dir/web_audio_gen.cc", | 812 "$target_gen_dir/web_audio_gen.cc", |
| 813 "$target_gen_dir/service_isolate_bindata_empty.cc", |
| 763 ] | 814 ] |
| 764 } | 815 } |
| 765 | 816 |
| 766 if (is_fuchsia) { | 817 if (is_fuchsia) { |
| 767 hello_fuchsia_source = rebase_path("../tests/vm/dart/hello_fuchsia_test.dart") | 818 hello_fuchsia_source = rebase_path("../tests/vm/dart/hello_fuchsia_test.dart") |
| 768 | 819 |
| 769 copy("hello_fuchsia") { | 820 copy("hello_fuchsia") { |
| 770 sources = [ | 821 sources = [ |
| 771 hello_fuchsia_source, | 822 hello_fuchsia_source, |
| 772 ] | 823 ] |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 938 ] | 989 ] |
| 939 if (is_linux || is_android) { | 990 if (is_linux || is_android) { |
| 940 cflags = [ "-fPIC" ] | 991 cflags = [ "-fPIC" ] |
| 941 } | 992 } |
| 942 if (is_win) { | 993 if (is_win) { |
| 943 libs = [ "dart.lib" ] | 994 libs = [ "dart.lib" ] |
| 944 abs_root_out_dir = rebase_path(root_out_dir) | 995 abs_root_out_dir = rebase_path(root_out_dir) |
| 945 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] | 996 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] |
| 946 } | 997 } |
| 947 } | 998 } |
| OLD | NEW |