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

Unified Diff: sky/engine/bindings-dart/BUILD.gn

Issue 894613002: Dart: 2++ = 3 (Closed) Base URL: https://github.com/eseidel/skydart.git@master
Patch Set: sync Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sky/engine/bindings-dart/dart_master.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/bindings-dart/BUILD.gn
diff --git a/sky/engine/bindings-dart/BUILD.gn b/sky/engine/bindings-dart/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..94037b07475c0e88691a5c299f5b777b8354c4e5
--- /dev/null
+++ b/sky/engine/bindings-dart/BUILD.gn
@@ -0,0 +1,71 @@
+
+
+source_set("bindings-dart") {
+ sources = [
+ "dart_master.h",
+ "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.
+ ]
+ deps = [
+ ":dart_controller",
+ "//dart/runtime/bin:libdart_withcore",
+ "//base:base"
+ ]
+}
+
+action("generate_snapshot_bin") {
+ deps = [
+ "//dart/runtime/bin:gen_snapshot($host_toolchain)",
+ ]
+ inputs = [
+ "snapshot.dart",
+ "//dart/runtime/tools/create_snapshot_bin.py",
+ ]
+ output = "$target_gen_dir/snapshot_gen.bin"
+ outputs = [
+ output,
+ ]
+
+ gen_snapshot_dir = get_label_info(
+ "//dart/runtime/bin:gen_snapshot($host_toolchain)", "root_out_dir")
+ script = "//dart/runtime/tools/create_snapshot_bin.py"
+ args = [
+ "--executable", rebase_path("$gen_snapshot_dir/gen_snapshot"),
+ "--package_root", rebase_path("$root_gen_dir"),
+ "--script", rebase_path("snapshot.dart"),
+ "--output_bin", rebase_path(output, root_build_dir),
+ "--target_os", os,
+ ]
+}
+
+action("generate_snapshot_file") {
+ deps = [
+ ":generate_snapshot_bin",
+ ]
+ inputs = [
+ "//dart/runtime/tools/create_snapshot_file.py",
+ "snapshot.cc.tmpl",
+ "$target_gen_dir/snapshot_gen.bin",
+ ]
+ output = "$target_gen_dir/snapshot.cc"
+ outputs = [
+ output,
+ ]
+
+ script = "//dart/runtime/tools/create_snapshot_file.py"
+ args = [
+ "--input_bin", rebase_path("$target_gen_dir/snapshot_gen.bin"),
+ "--input_cc", rebase_path("snapshot.cc.tmpl"),
+ "--output", rebase_path(output),
+ ]
+}
+
+source_set("dart_controller") {
+ sources = [
+ "$target_gen_dir/snapshot.cc",
+ ]
+
+ deps = [
+ ":generate_snapshot_file"
+ ]
+}
+
« no previous file with comments | « no previous file | sky/engine/bindings-dart/dart_master.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698