| 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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 gen_snapshot_stamp_file, | 475 gen_snapshot_stamp_file, |
| 476 ] | 476 ] |
| 477 | 477 |
| 478 gen_snapshot_dir = | 478 gen_snapshot_dir = |
| 479 get_label_info("../bin:gen_snapshot($host_toolchain)", "root_out_dir") | 479 get_label_info("../bin:gen_snapshot($host_toolchain)", "root_out_dir") |
| 480 | 480 |
| 481 script = rebase_path("../tools/create_snapshot_bin.py") | 481 script = rebase_path("../tools/create_snapshot_bin.py") |
| 482 args = [ | 482 args = [ |
| 483 "--executable", | 483 "--executable", |
| 484 rebase_path("$gen_snapshot_dir/gen_snapshot"), | 484 rebase_path("$gen_snapshot_dir/gen_snapshot"), |
| 485 "--snapshot_kind", |
| 486 "core", |
| 485 "--vm_output_bin", | 487 "--vm_output_bin", |
| 486 rebase_path(vm_isolate_snapshot, root_build_dir), | 488 rebase_path(vm_isolate_snapshot, root_build_dir), |
| 487 "--output_bin", | 489 "--isolate_output_bin", |
| 488 rebase_path(isolate_snapshot, root_build_dir), | 490 rebase_path(isolate_snapshot, root_build_dir), |
| 489 "--target_os", | 491 "--target_os", |
| 490 current_os, | 492 current_os, |
| 491 "--timestamp_file", | 493 "--timestamp_file", |
| 492 rebase_path(gen_snapshot_stamp_file, root_build_dir), | 494 rebase_path(gen_snapshot_stamp_file, root_build_dir), |
| 493 ] | 495 ] |
| 494 } | 496 } |
| 495 | 497 |
| 496 action("generate_snapshot_file") { | 498 action("generate_snapshot_file") { |
| 497 deps = [ | 499 deps = [ |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 853 ] | 855 ] |
| 854 if (is_linux || is_android) { | 856 if (is_linux || is_android) { |
| 855 cflags = [ "-fPIC" ] | 857 cflags = [ "-fPIC" ] |
| 856 } | 858 } |
| 857 if (is_win) { | 859 if (is_win) { |
| 858 libs = [ "dart.lib" ] | 860 libs = [ "dart.lib" ] |
| 859 abs_root_out_dir = rebase_path(root_out_dir) | 861 abs_root_out_dir = rebase_path(root_out_dir) |
| 860 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] | 862 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] |
| 861 } | 863 } |
| 862 } | 864 } |
| OLD | NEW |