Chromium Code Reviews| 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 | 7 |
| 8 # Generate a resources.cc file for the service isolate without Observatory. | 8 # Generate a resources.cc file for the service isolate without Observatory. |
| 9 action("gen_resources_cc") { | 9 action("gen_resources_cc") { |
| 10 visibility = [ ":*" ] # Only targets in this file can see this. | 10 visibility = [ ":*" ] # Only targets in this file can see this. |
| (...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 684 "$target_gen_dir/cached_patches_gen.cc", | 684 "$target_gen_dir/cached_patches_gen.cc", |
| 685 "$target_gen_dir/web_gl_gen.cc", | 685 "$target_gen_dir/web_gl_gen.cc", |
| 686 "$target_gen_dir/metadata_gen.cc", | 686 "$target_gen_dir/metadata_gen.cc", |
| 687 "$target_gen_dir/web_sql_gen.cc", | 687 "$target_gen_dir/web_sql_gen.cc", |
| 688 "$target_gen_dir/svg_gen.cc", | 688 "$target_gen_dir/svg_gen.cc", |
| 689 "$target_gen_dir/web_audio_gen.cc", | 689 "$target_gen_dir/web_audio_gen.cc", |
| 690 ] | 690 ] |
| 691 } | 691 } |
| 692 | 692 |
| 693 if (defined(is_fuchsia) && is_fuchsia) { | 693 if (defined(is_fuchsia) && is_fuchsia) { |
| 694 hello_fuchsia_source = rebase_path("../tests/vm/dart/hello_fuchsia_test.dart") | |
| 695 | |
| 694 copy("hello_fuchsia") { | 696 copy("hello_fuchsia") { |
| 695 sources = [ | 697 sources = [ |
| 696 "../tests/vm/dart/hello_fuchsia_test.dart", | 698 hello_fuchsia_source, |
| 697 ] | 699 ] |
| 698 outputs = [ | 700 outputs = [ |
| 699 "$root_out_dir/hello_fuchsia.dart", | 701 "$root_out_dir/hello_fuchsia.dart", |
| 700 ] | 702 ] |
| 701 } | 703 } |
| 704 | |
| 705 dart_bootstrap_label = "//dart/runtime/bin:dart_bootstrap($host_toolchain)" | |
| 706 dart_bootstrap_dir = get_label_info(dart_bootstrap_label, "root_out_dir") | |
| 707 dart_bootstrap = "$dart_bootstrap_dir/dart_bootstrap" | |
| 708 | |
| 709 hello_fuchsia_assembly = "$target_gen_dir/hello_fuchsia.S" | |
| 710 | |
| 711 action("hello_fuchsia_assembly") { | |
|
zra
2017/03/24 21:02:37
Can this use compiled_action?
https://github.com/
rmacnak
2017/03/24 21:24:12
Yes. Updated.
| |
| 712 deps = [ | |
| 713 dart_bootstrap_label, | |
| 714 ] | |
| 715 inputs = [ | |
| 716 hello_fuchsia_source, | |
| 717 ] | |
| 718 outputs = [ | |
| 719 hello_fuchsia_assembly, | |
| 720 ] | |
| 721 script = rebase_path(dart_bootstrap) | |
| 722 args = [ | |
| 723 "--snapshot-kind=app-aot", | |
| 724 "--snapshot=" + rebase_path(hello_fuchsia_assembly), | |
| 725 hello_fuchsia_source, | |
| 726 ] | |
| 727 } | |
| 728 | |
| 729 shared_library("hello_fuchsia_dylib") { | |
| 730 deps = [ | |
| 731 ":hello_fuchsia_assembly", | |
| 732 ] | |
| 733 sources = [ | |
| 734 hello_fuchsia_assembly, | |
| 735 ] | |
| 736 cflags = [ | |
| 737 "-nostdlib", | |
| 738 "-nostartfiles", | |
| 739 ] | |
| 740 output_name = "hello_fuchsia" | |
| 741 } | |
| 702 } | 742 } |
| 703 | 743 |
| 704 executable("process_test") { | 744 executable("process_test") { |
| 705 sources = [ | 745 sources = [ |
| 706 "process_test.cc", | 746 "process_test.cc", |
| 707 ] | 747 ] |
| 708 } | 748 } |
| 709 | 749 |
| 710 action("generate_snapshot_test_dat_file") { | 750 action("generate_snapshot_test_dat_file") { |
| 711 snapshot_test_dat_file = "$root_gen_dir/snapshot_test.dat" | 751 snapshot_test_dat_file = "$root_gen_dir/snapshot_test.dat" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 826 ] | 866 ] |
| 827 if (is_linux || is_android) { | 867 if (is_linux || is_android) { |
| 828 cflags = [ "-fPIC" ] | 868 cflags = [ "-fPIC" ] |
| 829 } | 869 } |
| 830 if (is_win) { | 870 if (is_win) { |
| 831 libs = [ "dart.lib" ] | 871 libs = [ "dart.lib" ] |
| 832 abs_root_out_dir = rebase_path(root_out_dir) | 872 abs_root_out_dir = rebase_path(root_out_dir) |
| 833 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] | 873 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] |
| 834 } | 874 } |
| 835 } | 875 } |
| OLD | NEW |