| 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 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 | 692 |
| 693 if (defined(is_fuchsia) && is_fuchsia) { | 693 if (defined(is_fuchsia) && is_fuchsia) { |
| 694 copy("hello_fuchsia") { | 694 copy("hello_fuchsia") { |
| 695 sources = [ | 695 sources = [ |
| 696 "../tests/vm/dart/hello_fuchsia_test.dart", | 696 "../tests/vm/dart/hello_fuchsia_test.dart", |
| 697 ] | 697 ] |
| 698 outputs = [ | 698 outputs = [ |
| 699 "$root_out_dir/hello_fuchsia.dart", | 699 "$root_out_dir/hello_fuchsia.dart", |
| 700 ] | 700 ] |
| 701 } | 701 } |
| 702 | |
| 703 executable("run_vm_tests_fuchsia") { | |
| 704 testonly = true | |
| 705 configs += [ "..:dart_config" ] | |
| 706 sources = [ | |
| 707 "run_vm_tests_fuchsia.cc", | |
| 708 ] | |
| 709 libs = [ | |
| 710 "launchpad", | |
| 711 "magenta", | |
| 712 ] | |
| 713 } | |
| 714 } | 702 } |
| 715 | 703 |
| 716 # This is only needed for the Fuchsia target build until the Observatory is | |
| 717 # supported. | |
| 718 dart_executable("dart_no_observatory") { | |
| 719 extra_deps = [ | |
| 720 "..:libdart", | |
| 721 ":dart_snapshot_cc", | |
| 722 ] | |
| 723 if (defined(is_fuchsia) && is_fuchsia) { | |
| 724 extra_deps += [ ":hello_fuchsia" ] | |
| 725 } | |
| 726 extra_defines = [ "NO_OBSERVATORY" ] | |
| 727 extra_sources = [ | |
| 728 "builtin_nolib.cc", | |
| 729 "observatory_assets_empty.cc", | |
| 730 ] | |
| 731 } | |
| 732 | |
| 733 executable("process_test") { | 704 executable("process_test") { |
| 734 sources = [ | 705 sources = [ |
| 735 "process_test.cc", | 706 "process_test.cc", |
| 736 ] | 707 ] |
| 737 } | 708 } |
| 738 | 709 |
| 739 action("generate_snapshot_test_dat_file") { | 710 action("generate_snapshot_test_dat_file") { |
| 740 snapshot_test_dat_file = "$root_gen_dir/snapshot_test.dat" | 711 snapshot_test_dat_file = "$root_gen_dir/snapshot_test.dat" |
| 741 snapshot_test_in_dat_file = "../vm/snapshot_test_in.dat" | 712 snapshot_test_in_dat_file = "../vm/snapshot_test_in.dat" |
| 742 snapshot_test_dart_file = "../vm/snapshot_test.dart" | 713 snapshot_test_dart_file = "../vm/snapshot_test.dart" |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 855 ] | 826 ] |
| 856 if (is_linux || is_android) { | 827 if (is_linux || is_android) { |
| 857 cflags = [ "-fPIC" ] | 828 cflags = [ "-fPIC" ] |
| 858 } | 829 } |
| 859 if (is_win) { | 830 if (is_win) { |
| 860 libs = [ "dart.lib" ] | 831 libs = [ "dart.lib" ] |
| 861 abs_root_out_dir = rebase_path(root_out_dir) | 832 abs_root_out_dir = rebase_path(root_out_dir) |
| 862 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] | 833 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] |
| 863 } | 834 } |
| 864 } | 835 } |
| OLD | NEW |