Commit fbe41fa2 authored by Moritz Bunkus's avatar Moritz Bunkus
Browse files

macOS: enforce minimum version 10.9 via MACOS_DEPLOYMENT_TARGET

parent eb9de860
......@@ -216,7 +216,7 @@ function build_configured_mkvtoolnix {
./configure \
LDFLAGS="$LDFLAGS -framework CoreFoundation -headerpad_max_install_names" \
CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden -mmacosx-version-min=10.9" \
CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden" \
${args}
grep -q 'USE_QT.*yes' build-config
......@@ -310,7 +310,7 @@ EOF
<key>CFBundleVersion</key> <string>MKVToolNix-${MTX_VER}</string>
<key>CFBundleShortVersionString</key> <string>${MTX_VER}</string>
<key>NSPrincipalClass</key> <string>NSApplication</string>
<key>LSMinimumSystemVersion</key> <string>10.8.0</string>
<key>LSMinimumSystemVersion</key> <string>${MACOSX_DEPLOYMENT_TARGET}</string>
<key>CFBundleName</key> <string>MKVToolNix</string>
<key>CFBundleIconFile</key> <string>MKVToolNix.icns</string>
<key>CFBundleDocumentTypes</key>
......@@ -370,6 +370,10 @@ EOF
ln -s ${dmgbuildname} ${latest_link}
}
if [[ -z $MTX_VER ]]; then
MTX_VER=$(awk -F, '/AC_INIT/ { gsub("[][]", "", $2); print $2 }' < ${SCRIPT_PATH}/../../configure.ac)
fi
if [[ -z $@ ]]; then
build_autoconf
build_automake
......
......@@ -7,9 +7,10 @@ export CC="clang"
export CPP="clang -E"
export CXX="clang++"
export CXXCPP="clang++ -E"
export CFLAGS="-mmacosx-version-min=10.9"
export CXXFLAGS="-std=c++14 -fvisibility=hidden -fvisibility-inlines-hidden -mmacosx-version-min=10.9"
export QT_CXXFLAGS="-stdlib=libc++ -mmacosx-version-min=10.9"
export CFLAGS=""
export CXXFLAGS="-std=c++14 -fvisibility=hidden -fvisibility-inlines-hidden"
export QT_CXXFLAGS="-stdlib=libc++"
export MACOSX_DEPLOYMENT_TARGET="10.9"
export MAKEFLAGS="-j 4"
export DRAKETHREADS=4
export SHARED_QT=1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment