diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2014-10-27 09:50:51 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-10-27 10:05:16 +0100 |
commit | 6909849b8f38f600c02d84b77aea1994dffa39d8 (patch) | |
tree | aacd59249c3fd876f71d23bd2871cf1aa3a52dc8 /config | |
parent | 111d1e01492ac8cb80680a87455e754a4cc6643f (diff) |
osx: Build for OSX >= 10.8
We don't have full functionality otherwise, e.g. VideoToolbox support
is missing.
Diffstat (limited to 'config')
-rw-r--r-- | config/darwin.config | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/config/darwin.config b/config/darwin.config index 68bec877..535f8ce6 100644 --- a/config/darwin.config +++ b/config/darwin.config @@ -14,17 +14,13 @@ if 'nogi' not in variants: variants.append('gi') if target_arch == Architecture.X86_64: - build='x86_64-apple-darwinx' + build='x86_64-apple-darwin12' elif target_arch == Architecture.X86: - build='i386-apple-darwinx' -elif target_arch == Architecture.PPC: - build='powerpc-apple-darwinx' + build='i386-apple-darwin12' elif target_arch == Architecture.UNIVERSAL: - build='universal-apple-darwinx' + build='universal-apple-darwin12' SDK_VERSION = { - DistroVersion.OS_X_SNOW_LEOPARD: '10.6', - DistroVersion.OS_X_LION: '10.7', DistroVersion.OS_X_MOUNTAIN_LION: '10.8', DistroVersion.OS_X_MAVERICKS: '10.9', DistroVersion.OS_X_YOSEMITE: '10.10', @@ -39,7 +35,7 @@ sdk_root = '/Developer/SDKs/MacOSX%s.sdk' % sdk_version if not os.path.exists(sdk_root): sdk_root = '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX%s.sdk' % sdk_version -min_osx_sdk_version = min_osx_sdk_version or '10.6' +min_osx_sdk_version = min_osx_sdk_version or '10.8' sdk='-mmacosx-version-min=%s -isysroot %s' % (min_osx_sdk_version, sdk_root) for f in ['CFLAGS', 'CCASFLAGS', 'CXXFLAGS', 'OBJCFLAGS', 'LDFLAGS']: @@ -60,9 +56,6 @@ elif target_arch == Architecture.PPC: arch_ldflags += ' -arch ppc -Wl,-arch,ppc' arch_cflags += ' -Wno-error=format-nonliteral ' -if sdk_version in ['10.7']: - # silence warnings on 10.7 osx-universal - arch_cflags += ' -Wno-unused-value ' incl_dir = os.path.join(prefix, 'include') |