Index: build/android/gn/to_json.py |
diff --git a/build/android/gn/to_json.py b/build/android/gn/to_json.py |
new file mode 100755 |
index 0000000000000000000000000000000000000000..a226c0bfc686b683e99a9119ebec99305d12387a |
--- /dev/null |
+++ b/build/android/gn/to_json.py |
@@ -0,0 +1,16 @@ |
+#!/usr/bin/env python |
+# |
+# Copyright 2015 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+"""Transform the list of arguments to a json list""" |
+ |
+import json |
+import sys |
+ |
+def main(): |
+ print json.dumps(sys.argv[1:]) |
+ |
+if __name__ == '__main__': |
+ sys.exit(main()) |