| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 source_set("bindings2") { | |
| 6 sources = [ | |
| 7 "dart_master.h", | |
| 8 "dart_master.cc" | |
| 9 ] | |
| 10 deps = [ | |
| 11 ":dart_controller", | |
| 12 "//dart/runtime/bin:libdart_withcore", | |
| 13 "//base:base" | |
| 14 ] | |
| 15 } | |
| 16 | |
| 17 action("generate_snapshot_bin") { | |
| 18 deps = [ | |
| 19 "//dart/runtime/bin:gen_snapshot($host_toolchain)", | |
| 20 ] | |
| 21 inputs = [ | |
| 22 "snapshot.dart", | |
| 23 "//dart/runtime/tools/create_snapshot_bin.py", | |
| 24 ] | |
| 25 output = "$target_gen_dir/snapshot_gen.bin" | |
| 26 outputs = [ | |
| 27 output, | |
| 28 ] | |
| 29 | |
| 30 gen_snapshot_dir = get_label_info( | |
| 31 "//dart/runtime/bin:gen_snapshot($host_toolchain)", "root_out_dir") | |
| 32 script = "//dart/runtime/tools/create_snapshot_bin.py" | |
| 33 args = [ | |
| 34 "--executable", rebase_path("$gen_snapshot_dir/gen_snapshot"), | |
| 35 "--package_root", rebase_path("$root_gen_dir"), | |
| 36 "--script", rebase_path("snapshot.dart"), | |
| 37 "--output_bin", rebase_path(output, root_build_dir), | |
| 38 "--target_os", os, | |
| 39 ] | |
| 40 } | |
| 41 | |
| 42 action("generate_snapshot_file") { | |
| 43 deps = [ | |
| 44 ":generate_snapshot_bin", | |
| 45 ] | |
| 46 inputs = [ | |
| 47 "//dart/runtime/tools/create_snapshot_file.py", | |
| 48 "snapshot.cc.tmpl", | |
| 49 "$target_gen_dir/snapshot_gen.bin", | |
| 50 ] | |
| 51 output = "$target_gen_dir/snapshot.cc" | |
| 52 outputs = [ | |
| 53 output, | |
| 54 ] | |
| 55 | |
| 56 script = "//dart/runtime/tools/create_snapshot_file.py" | |
| 57 args = [ | |
| 58 "--input_bin", rebase_path("$target_gen_dir/snapshot_gen.bin"), | |
| 59 "--input_cc", rebase_path("snapshot.cc.tmpl"), | |
| 60 "--output", rebase_path(output), | |
| 61 ] | |
| 62 } | |
| 63 | |
| 64 source_set("dart_controller") { | |
| 65 sources = [ | |
| 66 "$target_gen_dir/snapshot.cc", | |
| 67 ] | |
| 68 | |
| 69 deps = [ | |
| 70 ":generate_snapshot_file" | |
| 71 ] | |
| 72 } | |
| 73 | |
| OLD | NEW |