diff options
author | RJ Ryan <rryan@mixxx.org> | 2016-12-04 10:11:06 -0800 |
---|---|---|
committer | RJ Ryan <rryan@mixxx.org> | 2016-12-04 16:08:49 -0800 |
commit | d0ae873375243a609f669a293c744f9674df6fa7 (patch) | |
tree | 8e8d727b009cd7182c8bea7dc04ac966a71f54dd /build/util.py | |
parent | 5627a1a031a0f320e04186532ae37916707248fc (diff) |
Simplify macOS minimum version enforcement.
* Remove osx_sdk_version_min scons flag. It didn't actually set the
minimum version is all the necessary places.
* Use build/osx/product_definition.plist as the source of truth for the
minimum verison.
Diffstat (limited to 'build/util.py')
-rw-r--r-- | build/util.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/build/util.py b/build/util.py index 53c904e449..12119b2081 100644 --- a/build/util.py +++ b/build/util.py @@ -190,3 +190,10 @@ def write_build_header(path): finally: f.close() os.chmod(path, stat.S_IRWXU | stat.S_IRWXG |stat.S_IRWXO) + +def get_osx_min_version(): + """Gets the minimum required OS X version from product_definition.plist.""" + # Mixxx 2.0 supported OS X 10.6 and up. + # Mixxx >2.0 requires C++11 which is only available with libc++ and OS X + # 10.7 onwards. std::promise/std::future requires OS X 10.8. + return os.popen("/usr/libexec/PlistBuddy -c 'Print os:0' build/osx/product_definition.plist").readline().strip() |