Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(535)

Side by Side Diff: runtime/bin/BUILD.gn

Issue 2655173002: Create an app snapshot of the Dart front end. (Closed)
Patch Set: undo rename of create_snapshot_file.py Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 rebase_path(vm_isolate_snapshot, root_build_dir), 482 rebase_path(vm_isolate_snapshot, root_build_dir),
483 "--output_bin", 483 "--output_bin",
484 rebase_path(isolate_snapshot, root_build_dir), 484 rebase_path(isolate_snapshot, root_build_dir),
485 "--target_os", 485 "--target_os",
486 current_os, 486 current_os,
487 "--timestamp_file", 487 "--timestamp_file",
488 rebase_path(gen_snapshot_stamp_file, root_build_dir), 488 rebase_path(gen_snapshot_stamp_file, root_build_dir),
489 ] 489 ]
490 } 490 }
491 491
492 action("generate_dfe_snapshot") {
493 deps = [
494 "../bin:dart($host_toolchain)",
495 "../vm:patched_sdk($host_toolchain)",
496 ]
497
498 package_map = rebase_path("../../.packages")
499 dfe_script = rebase_path("../tools/kernel-service.dart")
500 dfe_snapshot = "$root_out_dir/kernel-service.dart.snapshot"
501 training_script =
502 "file://" + rebase_path("../../pkg/compiler/lib/src/dart2js.dart")
503 dart_dir = get_label_info("../bin:dart($host_toolchain)", "root_out_dir")
504 dart_path = rebase_path("$dart_dir/dart")
505
506 inputs = [
507 package_map,
508 dfe_script,
509 ]
510
511 outputs = [
512 dfe_snapshot,
513 ]
514
515 script = rebase_path("../../build/gn_run_binary.py")
516 args = [
517 "exec_script",
518 dart_path,
519 "--snapshot=" + rebase_path(dfe_snapshot),
520 "--snapshot-kind=app-jit",
521 "--packages=" + package_map,
522 dfe_script,
523 training_script,
524 ]
525 }
526
492 action("generate_snapshot_file") { 527 action("generate_snapshot_file") {
493 deps = [ 528 deps = [
494 ":generate_snapshot_bin", 529 ":generate_snapshot_bin",
495 ] 530 ]
496 531
497 snapshot_in_cc_file = "snapshot_in.cc" 532 snapshot_in_cc_file = "snapshot_in.cc"
498 inputs = [ 533 inputs = [
499 "../tools/create_snapshot_file.py", 534 "../tools/create_snapshot_file.py",
500 snapshot_in_cc_file, 535 snapshot_in_cc_file,
501 "$target_gen_dir/vm_isolate_snapshot.bin", 536 "$target_gen_dir/vm_isolate_snapshot.bin",
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 ] 881 ]
847 if (is_linux || is_android) { 882 if (is_linux || is_android) {
848 cflags = [ "-fPIC" ] 883 cflags = [ "-fPIC" ]
849 } 884 }
850 if (is_win) { 885 if (is_win) {
851 libs = [ "dart.lib" ] 886 libs = [ "dart.lib" ]
852 abs_root_out_dir = rebase_path(root_out_dir) 887 abs_root_out_dir = rebase_path(root_out_dir)
853 ldflags = [ "/LIBPATH:$abs_root_out_dir" ] 888 ldflags = [ "/LIBPATH:$abs_root_out_dir" ]
854 } 889 }
855 } 890 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | runtime/bin/bin.gypi » ('j') | runtime/bin/bin.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698