| Index: pylib/gyp/xcodeproj_file.py
|
| ===================================================================
|
| --- pylib/gyp/xcodeproj_file.py (revision 1773)
|
| +++ pylib/gyp/xcodeproj_file.py (working copy)
|
| @@ -2238,20 +2238,22 @@
|
| # prefix : the prefix for the file name
|
| # suffix : the suffix for the filen ame
|
| _product_filetypes = {
|
| - 'com.apple.product-type.application': ['wrapper.application',
|
| - '', '.app'],
|
| - 'com.apple.product-type.bundle': ['wrapper.cfbundle',
|
| - '', '.bundle'],
|
| - 'com.apple.product-type.framework': ['wrapper.framework',
|
| - '', '.framework'],
|
| - 'com.apple.product-type.library.dynamic': ['compiled.mach-o.dylib',
|
| - 'lib', '.dylib'],
|
| - 'com.apple.product-type.library.static': ['archive.ar',
|
| - 'lib', '.a'],
|
| - 'com.apple.product-type.tool': ['compiled.mach-o.executable',
|
| - '', ''],
|
| - 'com.googlecode.gyp.xcode.bundle': ['compiled.mach-o.dylib',
|
| - '', '.so'],
|
| + 'com.apple.product-type.application': ['wrapper.application',
|
| + '', '.app'],
|
| + 'com.apple.product-type.bundle': ['wrapper.cfbundle',
|
| + '', '.bundle'],
|
| + 'com.apple.product-type.framework': ['wrapper.framework',
|
| + '', '.framework'],
|
| + 'com.apple.product-type.library.dynamic': ['compiled.mach-o.dylib',
|
| + 'lib', '.dylib'],
|
| + 'com.apple.product-type.library.static': ['archive.ar',
|
| + 'lib', '.a'],
|
| + 'com.apple.product-type.tool': ['compiled.mach-o.executable',
|
| + '', ''],
|
| + 'com.apple.product-type.bundle.unit-test': ['wrapper.cfbundle',
|
| + '', '.xctest'],
|
| + 'com.googlecode.gyp.xcode.bundle': ['compiled.mach-o.dylib',
|
| + '', '.so'],
|
| }
|
|
|
| def __init__(self, properties=None, id=None, parent=None,
|
| @@ -2303,6 +2305,11 @@
|
| if force_extension is None:
|
| force_extension = suffix[1:]
|
|
|
| + if self._properties['productType'] == \
|
| + 'com.apple.product-type-bundle.unit.test':
|
| + if force_extension is None:
|
| + force_extension = suffix[1:]
|
| +
|
| if force_extension is not None:
|
| # If it's a wrapper (bundle), set WRAPPER_EXTENSION.
|
| if filetype.startswith('wrapper.'):
|
|
|