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

Unified Diff: tools/dart_for_gn.py

Issue 2379803002: Linux create_sdk GN build for host (Closed)
Patch Set: Move create_timestamp.gni Created 4 years, 3 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 | « runtime/vm/BUILD.gn ('k') | tools/list_files.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dart_for_gn.py
diff --git a/tools/dart_for_gn.py b/tools/dart_for_gn.py
new file mode 100755
index 0000000000000000000000000000000000000000..835bbaaf5f2a3aa2cb48d032f647fa5cd084c2a9
--- /dev/null
+++ b/tools/dart_for_gn.py
@@ -0,0 +1,24 @@
+#!/usr/bin/env python
+# Copyright 2016 The Dart project authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Usage: dart_for_gn.py path_to_dart_binary [arguments]
+#
+# We have gn set up so that actions can only run python scripts.
+# We use this wrapper script when we need an action to run the Dart VM
+# The first command line argument is mandatory and should be the absolute path
+# to the Dart VM binary.
+
+import subprocess
+import sys
+
+def main(argv):
+ if len(argv) < 2:
+ print "Requires path to Dart VM binary as first argument"
+ return -1
+ command = argv[1:]
+ return subprocess.call(command)
+
+if __name__ == '__main__':
+ sys.exit(main(sys.argv))
« no previous file with comments | « runtime/vm/BUILD.gn ('k') | tools/list_files.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698