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

Unified Diff: pylib/gyp/xcode_emulation.py

Issue 51103013: Add storyboard support. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: An even older storyboard Created 7 years, 1 month 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
Index: pylib/gyp/xcode_emulation.py
diff --git a/pylib/gyp/xcode_emulation.py b/pylib/gyp/xcode_emulation.py
index ade82aa09a4cbed49136d15d0ebc0431018736a0..a0316d3d237e241eb4a0f3a58dea7c26a43dfe68 100644
--- a/pylib/gyp/xcode_emulation.py
+++ b/pylib/gyp/xcode_emulation.py
@@ -1066,6 +1066,9 @@ def GetMacBundleResources(product_dir, xcode_settings, resources):
# Compiled XIB files are referred to by .nib.
if output.endswith('.xib'):
output = output[0:-3] + 'nib'
+ # Compiled storyboard files are referred to by .storyboardc.
+ if output.endswith('.storyboard'):
+ output = output[0:-10] + 'storyboardc'
Nico 2013/11/04 19:20:25 s/10/len('storyboard')/ (maybe s/-3/len('xib')/ t
justincohen 2013/11/05 18:08:08 How about using splittext?
yield output, res

Powered by Google App Engine
This is Rietveld 408576698