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

Unified Diff: Source/build/gn_list_to_space_separated_string.py

Issue 298703005: First pass on blink compiling for GN build (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review comments Created 6 years, 7 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 | « Source/bindings/bindings.gni ('k') | Source/build/scripts/scripts.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/build/gn_list_to_space_separated_string.py
diff --git a/Source/build/gn_list_to_space_separated_string.py b/Source/build/gn_list_to_space_separated_string.py
new file mode 100644
index 0000000000000000000000000000000000000000..2e1f77eb52a8d7997b96796f4e444199ede94165
--- /dev/null
+++ b/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
« no previous file with comments | « Source/bindings/bindings.gni ('k') | Source/build/scripts/scripts.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698