| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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("//sky/engine/bindings/bindings.gni") | 5 import("//sky/engine/bindings/bindings.gni") |
| 6 import("//sky/engine/core/core.gni") | 6 import("//sky/engine/core/core.gni") |
| 7 | 7 |
| 8 source_set("bindings") { | 8 source_set("bindings") { |
| 9 sources = [ | 9 sources = [ |
| 10 "builtin.cc", | 10 "builtin.cc", |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 ] | 54 ] |
| 55 inputs = [ | 55 inputs = [ |
| 56 "//dart/runtime/tools/create_snapshot_bin.py", | 56 "//dart/runtime/tools/create_snapshot_bin.py", |
| 57 "//sky/engine/bindings/builtin.dart", | 57 "//sky/engine/bindings/builtin.dart", |
| 58 "//mojo/public/dart/internal.dart", | 58 "//mojo/public/dart/internal.dart", |
| 59 "//mojo/public/dart/src/handle_watcher.dart", | 59 "//mojo/public/dart/src/handle_watcher.dart", |
| 60 "//mojo/public/dart/src/natives.dart", | 60 "//mojo/public/dart/src/natives.dart", |
| 61 "//mojo/public/dart/src/timer_queue.dart", | 61 "//mojo/public/dart/src/timer_queue.dart", |
| 62 "snapshot.dart", | 62 "snapshot.dart", |
| 63 ] | 63 ] |
| 64 output = "$target_gen_dir/snapshot_gen.bin" | 64 vm_isolate_snapshot = "$target_gen_dir/vm_isolate_snapshot.bin" |
| 65 isolate_snapshot = "$target_gen_dir/isolate_snapshot.bin" |
| 65 outputs = [ | 66 outputs = [ |
| 66 output, | 67 vm_isolate_snapshot, |
| 68 isolate_snapshot, |
| 67 ] | 69 ] |
| 68 | 70 |
| 69 builtin_path = rebase_path("//sky/engine/bindings/builtin.dart") | 71 builtin_path = rebase_path("//sky/engine/bindings/builtin.dart") |
| 70 dart_sky_path = rebase_path("$bindings_output_dir/dart_sky.dart") | 72 dart_sky_path = rebase_path("$bindings_output_dir/dart_sky.dart") |
| 71 internal_path = rebase_path("//mojo/public/dart/internal.dart") | 73 internal_path = rebase_path("//mojo/public/dart/internal.dart") |
| 72 | 74 |
| 73 gen_snapshot_dir = | 75 gen_snapshot_dir = |
| 74 get_label_info("//dart/runtime/bin:gen_snapshot($host_toolchain)", | 76 get_label_info("//dart/runtime/bin:gen_snapshot($host_toolchain)", |
| 75 "root_out_dir") | 77 "root_out_dir") |
| 76 script = "//dart/runtime/tools/create_snapshot_bin.py" | 78 script = "//dart/runtime/tools/create_snapshot_bin.py" |
| 77 | 79 |
| 78 args = [ | 80 args = [ |
| 79 "--executable", | 81 "--executable", |
| 80 rebase_path("$gen_snapshot_dir/gen_snapshot"), | 82 rebase_path("$gen_snapshot_dir/gen_snapshot"), |
| 81 "--package_root", | 83 "--package_root", |
| 82 rebase_path("$root_gen_dir"), | 84 rebase_path("$root_gen_dir"), |
| 83 "--script", | 85 "--script", |
| 84 rebase_path("snapshot.dart"), | 86 rebase_path("snapshot.dart"), |
| 87 "--vm_output_bin", |
| 88 rebase_path(vm_isolate_snapshot, root_build_dir), |
| 85 "--output_bin", | 89 "--output_bin", |
| 86 rebase_path(output, root_build_dir), | 90 rebase_path(isolate_snapshot, root_build_dir), |
| 87 "--target_os", | 91 "--target_os", |
| 88 os, | 92 os, |
| 89 "--url_mapping=dart:sky,$dart_sky_path", | 93 "--url_mapping=dart:sky,$dart_sky_path", |
| 90 "--url_mapping=dart:mojo.internal,$internal_path", | 94 "--url_mapping=dart:mojo.internal,$internal_path", |
| 91 "--url_mapping=dart:sky_builtin,$builtin_path", | 95 "--url_mapping=dart:sky_builtin,$builtin_path", |
| 92 ] | 96 ] |
| 93 } | 97 } |
| 94 | 98 |
| 95 action("generate_snapshot_file") { | 99 action("generate_snapshot_file") { |
| 96 deps = [ | 100 deps = [ |
| 97 ":generate_snapshot_bin", | 101 ":generate_snapshot_bin", |
| 98 ] | 102 ] |
| 99 inputs = [ | 103 inputs = [ |
| 100 "//dart/runtime/tools/create_snapshot_file.py", | 104 "//dart/runtime/tools/create_snapshot_file.py", |
| 101 "snapshot.cc.tmpl", | 105 "snapshot.cc.tmpl", |
| 102 "$target_gen_dir/snapshot_gen.bin", | 106 "$target_gen_dir/vm_isolate_snapshot.bin", |
| 107 "$target_gen_dir/isolate_snapshot.bin", |
| 103 ] | 108 ] |
| 104 output = "$target_gen_dir/snapshot.cc" | 109 output = "$target_gen_dir/snapshot.cc" |
| 105 outputs = [ | 110 outputs = [ |
| 106 output, | 111 output, |
| 107 ] | 112 ] |
| 108 | 113 |
| 109 script = "//dart/runtime/tools/create_snapshot_file.py" | 114 script = "//dart/runtime/tools/create_snapshot_file.py" |
| 110 args = [ | 115 args = [ |
| 116 "--vm_input_bin", |
| 117 rebase_path("$target_gen_dir/vm_isolate_snapshot.bin"), |
| 111 "--input_bin", | 118 "--input_bin", |
| 112 rebase_path("$target_gen_dir/snapshot_gen.bin"), | 119 rebase_path("$target_gen_dir/isolate_snapshot.bin"), |
| 113 "--input_cc", | 120 "--input_cc", |
| 114 rebase_path("snapshot.cc.tmpl"), | 121 rebase_path("snapshot.cc.tmpl"), |
| 115 "--output", | 122 "--output", |
| 116 rebase_path(output), | 123 rebase_path(output), |
| 117 ] | 124 ] |
| 118 } | 125 } |
| 119 | 126 |
| 120 source_set("snapshot_cc") { | 127 source_set("snapshot_cc") { |
| 121 sources = [ | 128 sources = [ |
| 122 "$target_gen_dir/snapshot.cc", | 129 "$target_gen_dir/snapshot.cc", |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 ] | 381 ] |
| 375 | 382 |
| 376 include_dirs = [ | 383 include_dirs = [ |
| 377 "..", | 384 "..", |
| 378 "$root_build_dir", | 385 "$root_build_dir", |
| 379 ] | 386 ] |
| 380 | 387 |
| 381 sources = get_target_outputs(":compile_idls") | 388 sources = get_target_outputs(":compile_idls") |
| 382 sources += get_target_outputs(":generate_dart_globals") | 389 sources += get_target_outputs(":generate_dart_globals") |
| 383 } | 390 } |
| OLD | NEW |