| 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 | 8 |
| 8 # Generate a resources.cc file for the service isolate without Observatory. | 9 # Generate a resources.cc file for the service isolate without Observatory. |
| 9 action("gen_resources_cc") { | 10 action("gen_resources_cc") { |
| 10 visibility = [ ":*" ] # Only targets in this file can see this. | 11 visibility = [ ":*" ] # Only targets in this file can see this. |
| 11 script = "../tools/create_resources.py" | 12 script = "../tools/create_resources.py" |
| 12 inputs = [ | 13 inputs = [ |
| 13 "../tools/create_resources.py", | 14 "../tools/create_resources.py", |
| 14 ] | 15 ] |
| 15 | 16 |
| 16 # The path below is hard coded for the Mojo and Flutter trees. When moving | 17 # The path below is hard coded for the Mojo and Flutter trees. When moving |
| (...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 "$target_gen_dir/cached_patches_gen.cc", | 685 "$target_gen_dir/cached_patches_gen.cc", |
| 685 "$target_gen_dir/web_gl_gen.cc", | 686 "$target_gen_dir/web_gl_gen.cc", |
| 686 "$target_gen_dir/metadata_gen.cc", | 687 "$target_gen_dir/metadata_gen.cc", |
| 687 "$target_gen_dir/web_sql_gen.cc", | 688 "$target_gen_dir/web_sql_gen.cc", |
| 688 "$target_gen_dir/svg_gen.cc", | 689 "$target_gen_dir/svg_gen.cc", |
| 689 "$target_gen_dir/web_audio_gen.cc", | 690 "$target_gen_dir/web_audio_gen.cc", |
| 690 ] | 691 ] |
| 691 } | 692 } |
| 692 | 693 |
| 693 if (defined(is_fuchsia) && is_fuchsia) { | 694 if (defined(is_fuchsia) && is_fuchsia) { |
| 695 hello_fuchsia_source = rebase_path("../tests/vm/dart/hello_fuchsia_test.dart") |
| 696 |
| 694 copy("hello_fuchsia") { | 697 copy("hello_fuchsia") { |
| 695 sources = [ | 698 sources = [ |
| 696 "../tests/vm/dart/hello_fuchsia_test.dart", | 699 hello_fuchsia_source, |
| 697 ] | 700 ] |
| 698 outputs = [ | 701 outputs = [ |
| 699 "$root_out_dir/hello_fuchsia.dart", | 702 "$root_out_dir/hello_fuchsia.dart", |
| 700 ] | 703 ] |
| 701 } | 704 } |
| 705 |
| 706 hello_fuchsia_assembly = "$target_gen_dir/hello_fuchsia.S" |
| 707 |
| 708 compiled_action("hello_fuchsia_assembly") { |
| 709 inputs = [ |
| 710 hello_fuchsia_source, |
| 711 ] |
| 712 outputs = [ |
| 713 hello_fuchsia_assembly, |
| 714 ] |
| 715 tool = ":dart_bootstrap" |
| 716 args = [ |
| 717 "--snapshot-kind=app-aot", |
| 718 "--snapshot=" + rebase_path(hello_fuchsia_assembly), |
| 719 hello_fuchsia_source, |
| 720 ] |
| 721 } |
| 722 |
| 723 shared_library("hello_fuchsia_dylib") { |
| 724 deps = [ |
| 725 ":hello_fuchsia_assembly", |
| 726 ] |
| 727 sources = [ |
| 728 hello_fuchsia_assembly, |
| 729 ] |
| 730 cflags = [ |
| 731 "-nostdlib", |
| 732 "-nostartfiles", |
| 733 ] |
| 734 output_name = "hello_fuchsia" |
| 735 } |
| 702 } | 736 } |
| 703 | 737 |
| 704 executable("process_test") { | 738 executable("process_test") { |
| 705 sources = [ | 739 sources = [ |
| 706 "process_test.cc", | 740 "process_test.cc", |
| 707 ] | 741 ] |
| 708 } | 742 } |
| 709 | 743 |
| 710 action("generate_snapshot_test_dat_file") { | 744 action("generate_snapshot_test_dat_file") { |
| 711 snapshot_test_dat_file = "$root_gen_dir/snapshot_test.dat" | 745 snapshot_test_dat_file = "$root_gen_dir/snapshot_test.dat" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 826 ] | 860 ] |
| 827 if (is_linux || is_android) { | 861 if (is_linux || is_android) { |
| 828 cflags = [ "-fPIC" ] | 862 cflags = [ "-fPIC" ] |
| 829 } | 863 } |
| 830 if (is_win) { | 864 if (is_win) { |
| 831 libs = [ "dart.lib" ] | 865 libs = [ "dart.lib" ] |
| 832 abs_root_out_dir = rebase_path(root_out_dir) | 866 abs_root_out_dir = rebase_path(root_out_dir) |
| 833 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] | 867 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] |
| 834 } | 868 } |
| 835 } | 869 } |
| OLD | NEW |