| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//mojo/public/mojo_application.gni") | 5 import("//mojo/public/mojo_application.gni") |
| 6 | 6 |
| 7 group("dart") { | 7 group("dart") { |
| 8 deps = [ | 8 deps = [ |
| 9 ":dart_content_handler", | 9 ":dart_content_handler", |
| 10 ] | 10 ] |
| 11 } | 11 } |
| 12 | 12 |
| 13 action("generate_snapshot_bin") { | 13 action("generate_snapshot_bin") { |
| 14 deps = [ | 14 deps = [ |
| 15 "//dart/runtime/bin:gen_snapshot($host_toolchain)", | 15 "//dart/runtime/bin:gen_snapshot($host_toolchain)", |
| 16 ] | 16 ] |
| 17 inputs = [ | 17 inputs = [ |
| 18 "snapshot.dart", | 18 "snapshot.dart", |
| 19 "//dart/runtime/tools/create_snapshot_bin.py", | 19 "//dart/runtime/tools/create_snapshot_bin.py", |
| 20 "//mojo/dart/embedder/builtin.dart", | 20 "//mojo/dart/embedder/builtin.dart", |
| 21 "//mojo/public/dart/internal.dart", | 21 "//mojo/public/dart/internal.dart", |
| 22 "//mojo/public/dart/src/handle_watcher.dart", | 22 "//mojo/public/dart/src/handle_watcher.dart", |
| 23 "//mojo/public/dart/src/natives.dart", | 23 "//mojo/public/dart/src/natives.dart", |
| 24 "//mojo/public/dart/src/timer_queue.dart", | 24 "//mojo/public/dart/src/timer_queue.dart", |
| 25 ] | 25 ] |
| 26 output = "$target_gen_dir/snapshot_gen.bin" | 26 vm_isolate_snapshot = "$target_gen_dir/vm_isolate_snapshot.bin" |
| 27 isolate_snapshot = "$target_gen_dir/isolate_snapshot.bin" |
| 27 outputs = [ | 28 outputs = [ |
| 28 output, | 29 vm_isolate_snapshot, |
| 30 isolate_snapshot, |
| 29 ] | 31 ] |
| 30 | 32 |
| 31 gen_snapshot_dir = | 33 gen_snapshot_dir = |
| 32 get_label_info("//dart/runtime/bin:gen_snapshot($host_toolchain)", | 34 get_label_info("//dart/runtime/bin:gen_snapshot($host_toolchain)", |
| 33 "root_out_dir") | 35 "root_out_dir") |
| 34 script = "//dart/runtime/tools/create_snapshot_bin.py" | 36 script = "//dart/runtime/tools/create_snapshot_bin.py" |
| 35 builtin_path = rebase_path("//mojo/dart/embedder/builtin.dart") | 37 builtin_path = rebase_path("//mojo/dart/embedder/builtin.dart") |
| 36 internal_path = rebase_path("//mojo/public/dart/internal.dart") | 38 internal_path = rebase_path("//mojo/public/dart/internal.dart") |
| 37 args = [ | 39 args = [ |
| 38 "--executable", | 40 "--executable", |
| 39 rebase_path("$gen_snapshot_dir/gen_snapshot"), | 41 rebase_path("$gen_snapshot_dir/gen_snapshot"), |
| 40 "--package_root", | 42 "--package_root", |
| 41 rebase_path("$root_gen_dir"), | 43 rebase_path("$root_gen_dir"), |
| 42 "--script", | 44 "--script", |
| 43 rebase_path("snapshot.dart"), | 45 rebase_path("snapshot.dart"), |
| 46 "--vm_output_bin", |
| 47 rebase_path(vm_isolate_snapshot, root_build_dir), |
| 44 "--output_bin", | 48 "--output_bin", |
| 45 rebase_path(output, root_build_dir), | 49 rebase_path(isolate_snapshot, root_build_dir), |
| 46 "--target_os", | 50 "--target_os", |
| 47 os, | 51 os, |
| 48 "--url_mapping=dart:mojo.builtin,$builtin_path", | 52 "--url_mapping=dart:mojo.builtin,$builtin_path", |
| 49 "--url_mapping=dart:mojo.internal,$internal_path", | 53 "--url_mapping=dart:mojo.internal,$internal_path", |
| 50 ] | 54 ] |
| 51 } | 55 } |
| 52 | 56 |
| 53 action("generate_snapshot_file") { | 57 action("generate_snapshot_file") { |
| 54 deps = [ | 58 deps = [ |
| 55 ":generate_snapshot_bin", | 59 ":generate_snapshot_bin", |
| 56 ] | 60 ] |
| 57 inputs = [ | 61 inputs = [ |
| 58 "//dart/runtime/tools/create_snapshot_file.py", | 62 "//dart/runtime/tools/create_snapshot_file.py", |
| 59 "//mojo/dart/embedder/snapshot.cc.tmpl", | 63 "//mojo/dart/embedder/snapshot.cc.tmpl", |
| 60 "$target_gen_dir/snapshot_gen.bin", | 64 "$target_gen_dir/vm_isolate_snapshot.bin", |
| 65 "$target_gen_dir/isolate_snapshot.bin", |
| 61 ] | 66 ] |
| 62 output = "$target_gen_dir/snapshot.cc" | 67 output = "$target_gen_dir/snapshot.cc" |
| 63 outputs = [ | 68 outputs = [ |
| 64 output, | 69 output, |
| 65 ] | 70 ] |
| 66 | 71 |
| 67 script = "//dart/runtime/tools/create_snapshot_file.py" | 72 script = "//dart/runtime/tools/create_snapshot_file.py" |
| 68 args = [ | 73 args = [ |
| 74 "--vm_input_bin", |
| 75 rebase_path("$target_gen_dir/vm_isolate_snapshot.bin"), |
| 69 "--input_bin", | 76 "--input_bin", |
| 70 rebase_path("$target_gen_dir/snapshot_gen.bin"), | 77 rebase_path("$target_gen_dir/isolate_snapshot.bin"), |
| 71 "--input_cc", | 78 "--input_cc", |
| 72 rebase_path("//mojo/dart/embedder/snapshot.cc.tmpl"), | 79 rebase_path("//mojo/dart/embedder/snapshot.cc.tmpl"), |
| 73 "--output", | 80 "--output", |
| 74 rebase_path(output), | 81 rebase_path(output), |
| 75 ] | 82 ] |
| 76 } | 83 } |
| 77 | 84 |
| 78 source_set("dart_controller") { | 85 source_set("dart_controller") { |
| 79 sources = [ | 86 sources = [ |
| 80 "$target_gen_dir/snapshot.cc", | 87 "$target_gen_dir/snapshot.cc", |
| (...skipping 27 matching lines...) Expand all Loading... |
| 108 "//mojo/icu", | 115 "//mojo/icu", |
| 109 "//mojo/public/cpp/system", | 116 "//mojo/public/cpp/system", |
| 110 "//mojo/public/cpp/utility", | 117 "//mojo/public/cpp/utility", |
| 111 "//mojo/public/interfaces/application", | 118 "//mojo/public/interfaces/application", |
| 112 "//mojo/services/content_handler/public/interfaces", | 119 "//mojo/services/content_handler/public/interfaces", |
| 113 "//mojo/services/network/public/interfaces", | 120 "//mojo/services/network/public/interfaces", |
| 114 "//third_party/zlib:zip", | 121 "//third_party/zlib:zip", |
| 115 "//url:url", | 122 "//url:url", |
| 116 ] | 123 ] |
| 117 } | 124 } |
| OLD | NEW |