Index: pylib/gyp/mac_tool.py |
diff --git a/pylib/gyp/mac_tool.py b/pylib/gyp/mac_tool.py |
index ae4a58749e06527ae9c8b3c37afc5ec4f14cd323..4a730e8548d3429415f72689f7487c1ebc08b3c0 100755 |
--- a/pylib/gyp/mac_tool.py |
+++ b/pylib/gyp/mac_tool.py |
@@ -53,6 +53,8 @@ class MacTool(object): |
shutil.copytree(source, dest) |
elif extension == '.xib': |
return self._CopyXIBFile(source, dest) |
+ elif extension == '.storyboard': |
+ return self._CopyXIBFile(source, dest) |
elif extension == '.strings': |
self._CopyStringsFile(source, dest) |
else: |
@@ -60,6 +62,14 @@ class MacTool(object): |
def _CopyXIBFile(self, source, dest): |
"""Compiles a XIB file with ibtool into a binary plist in the bundle.""" |
+ |
+ # ibtool sometimes fails with relative paths. |
Nico
2013/11/04 19:20:25
Once you filed the crbug. please add a link to it
justincohen
2013/11/05 18:08:08
Done.
|
+ base = os.path.dirname(os.path.realpath(__file__)) |
+ if os.path.relpath(source): |
+ source = os.path.join(base, source) |
+ if os.path.relpath(dest): |
+ dest = os.path.join(base, dest) |
+ |
args = ['xcrun', 'ibtool', '--errors', '--warnings', '--notices', |
'--output-format', 'human-readable-text', '--compile', dest, source] |
ibtool_section_re = re.compile(r'/\*.*\*/') |