mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-30 15:03:31 +01:00
MacOSX: Use wxWidgets 3.2.5. Detect SDK version dynamically. Remove unused "r" getopts option.
This commit is contained in:
parent
978ebe6693
commit
e4e83d30c1
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013-2019 IDRIX
|
# Copyright (c) 2013-2024 IDRIX
|
||||||
# Governed by the Apache License 2.0 the full text of which is contained
|
# Governed by the Apache License 2.0 the full text of which is contained
|
||||||
# in the file License.txt included in VeraCrypt binary and source
|
# in the file License.txt included in VeraCrypt binary and source
|
||||||
# code distribution packages.
|
# code distribution packages.
|
||||||
@ -14,7 +14,7 @@ SOURCEPATH=$(cd "$(dirname "$SCRIPTPATH/../.")"; pwd)
|
|||||||
# directory where the VeraCrypt project has been checked out
|
# directory where the VeraCrypt project has been checked out
|
||||||
PARENTDIR=$(cd "$(dirname "$SCRIPTPATH/../../../.")"; pwd)
|
PARENTDIR=$(cd "$(dirname "$SCRIPTPATH/../../../.")"; pwd)
|
||||||
|
|
||||||
while getopts bpr flag
|
while getopts bp flag
|
||||||
do
|
do
|
||||||
case "${flag}" in
|
case "${flag}" in
|
||||||
b) brew=true;;
|
b) brew=true;;
|
||||||
@ -45,16 +45,16 @@ if [ -n "$brew" ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# the sources of wxWidgets 3.1.2 must be extracted to the parent directory (for night mode)
|
# the sources of wxWidgets 3.2.5 must be extracted to the parent directory (for night mode)
|
||||||
export WX_ROOT=$PARENTDIR/wxWidgets-3.2.2.1
|
export WX_ROOT=$PARENTDIR/wxWidgets-3.2.5
|
||||||
echo "Using wxWidgets sources in $WX_ROOT"
|
echo "Using wxWidgets sources in $WX_ROOT"
|
||||||
|
|
||||||
# this will be the temporary wxWidgets directory
|
# this will be the temporary wxWidgets directory
|
||||||
export WX_BUILD_DIR=$PARENTDIR/wxBuild-3.2.2.1
|
export WX_BUILD_DIR=$PARENTDIR/wxBuild-3.2.5
|
||||||
|
|
||||||
# define the SDK version to use and OSX minimum target. We target 12 by default
|
# define the SDK version to use and OSX minimum target. We target 12 by default
|
||||||
export VC_OSX_TARGET=12
|
export VC_OSX_TARGET=12
|
||||||
export VC_OSX_SDK=13
|
export VC_OSX_SDK=$(xcrun --show-sdk-version) #use the latest version installed
|
||||||
echo "Using MacOSX SDK $VC_OSX_SDK with target set to $VC_OSX_TARGET"
|
echo "Using MacOSX SDK $VC_OSX_SDK with target set to $VC_OSX_TARGET"
|
||||||
|
|
||||||
cd $SOURCEPATH
|
cd $SOURCEPATH
|
||||||
|
Loading…
Reference in New Issue
Block a user