From ef009a8b9111a140ddf7fdd28607689e379249c7 Mon Sep 17 00:00:00 2001 From: BastiaanOlij Date: Fri, 25 Nov 2016 00:55:13 +1100 Subject: [PATCH] Set minimum version to 10.9 building OSX (cherry picked from commit da5651fbb9a52ae98775ca5631e160c9d7fd157e) --- platform/osx/detect.py | 2 ++ tools/dist/osx_template.app/Contents/Info.plist | 4 ++-- tools/dist/osx_tools.app/Contents/Info.plist | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/platform/osx/detect.py b/platform/osx/detect.py index 9191f1aabc..ccd86177ab 100644 --- a/platform/osx/detect.py +++ b/platform/osx/detect.py @@ -80,10 +80,12 @@ def configure(env): env.Append(CPPFLAGS=["-DAPPLE_STYLE_KEYS"]) env.Append(CPPFLAGS=['-DUNIX_ENABLED', '-DGLES2_ENABLED', '-DOSX_ENABLED']) + env.Append(CPPFLAGS=["-mmacosx-version-min=10.9"]) env.Append(LIBS=['pthread']) #env.Append(CPPFLAGS=['-F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks', '-isysroot', '/Developer/SDKs/MacOSX10.4u.sdk', '-mmacosx-version-min=10.4']) #env.Append(LINKFLAGS=['-mmacosx-version-min=10.4', '-isysroot', '/Developer/SDKs/MacOSX10.4u.sdk', '-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk']) env.Append(LINKFLAGS=['-framework', 'Cocoa', '-framework', 'Carbon', '-framework', 'OpenGL', '-framework', 'AGL', '-framework', 'AudioUnit', '-lz', '-framework', 'IOKit', '-framework', 'ForceFeedback']) + env.Append(LINKFLAGS=["-mmacosx-version-min=10.9"]) if (env["CXX"] == "clang++"): env.Append(CPPFLAGS=['-DTYPED_METHOD_BIND']) diff --git a/tools/dist/osx_template.app/Contents/Info.plist b/tools/dist/osx_template.app/Contents/Info.plist index 5146c875bc..eee787bdaf 100755 --- a/tools/dist/osx_template.app/Contents/Info.plist +++ b/tools/dist/osx_template.app/Contents/Info.plist @@ -27,11 +27,11 @@ NSHumanReadableCopyright $copyright LSMinimumSystemVersion - 10.6.0 + 10.9.0 LSMinimumSystemVersionByArchitecture x86_64 - 10.6.0 + 10.9.0 NSHighResolutionCapable $highres diff --git a/tools/dist/osx_tools.app/Contents/Info.plist b/tools/dist/osx_tools.app/Contents/Info.plist index b5eae6d15a..cb3d742657 100755 --- a/tools/dist/osx_tools.app/Contents/Info.plist +++ b/tools/dist/osx_tools.app/Contents/Info.plist @@ -27,11 +27,11 @@ NSHumanReadableCopyright © 2007-2016 Juan Linietsky, Ariel Manzur LSMinimumSystemVersion - 10.6.0 + 10.9.0 LSMinimumSystemVersionByArchitecture x86_64 - 10.6.0 + 10.9.0 NSHighResolutionCapable