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

Unified Diff: pylib/gyp/xcode_emulation.py

Issue 51103013: Add storyboard support. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: Remove radar 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
« no previous file with comments | « pylib/gyp/mac_tool.py ('k') | test/ios/app-bundle/TestApp/English.lproj/Main_iPhone.storyboard » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pylib/gyp/xcode_emulation.py
diff --git a/pylib/gyp/xcode_emulation.py b/pylib/gyp/xcode_emulation.py
index ade82aa09a4cbed49136d15d0ebc0431018736a0..f9cec33639e12f9f8b284a1a5fccaa593b83b6c8 100644
--- a/pylib/gyp/xcode_emulation.py
+++ b/pylib/gyp/xcode_emulation.py
@@ -1065,7 +1065,10 @@ def GetMacBundleResources(product_dir, xcode_settings, resources):
output = os.path.join(output, res_parts[1])
# Compiled XIB files are referred to by .nib.
if output.endswith('.xib'):
- output = output[0:-3] + 'nib'
+ output = os.path.splitext(output)[0] + '.nib'
+ # Compiled storyboard files are referred to by .storyboardc.
+ if output.endswith('.storyboard'):
+ output = os.path.splitext(output)[0] + '.storyboardc'
yield output, res
« no previous file with comments | « pylib/gyp/mac_tool.py ('k') | test/ios/app-bundle/TestApp/English.lproj/Main_iPhone.storyboard » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698