summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/build/gn_list_to_space_separated_string.py
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/build/gn_list_to_space_separated_string.py')
-rw-r--r--chromium/third_party/WebKit/Source/build/gn_list_to_space_separated_string.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/chromium/third_party/WebKit/Source/build/gn_list_to_space_separated_string.py b/chromium/third_party/WebKit/Source/build/gn_list_to_space_separated_string.py
new file mode 100644
index 00000000000..2e1f77eb52a
--- /dev/null
+++ b/chromium/third_party/WebKit/Source/build/gn_list_to_space_separated_string.py
@@ -0,0 +1,12 @@
+# Copyright 2014 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.
+
+import sys
+
+# Converts its arguments to a single GN-style string, with each element
+# quoted and separated by a space.
+result = ""
+for i in sys.argv[1:]:
+ result += '"%s" ' % i
+print result