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