VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Build
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2024-06-22 01:13:20 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2024-06-22 01:13:20 +0200
commitedde1d45f6de3e71b585b92e0e06d7499735c238 (patch)
treea3caa522b1e21e1e337bea684fc1032d2e325e7a /src/Build
parent8b01b533cfeafc989137c202af61c83f63c5f531 (diff)
downloadVeraCrypt-edde1d45f6de3e71b585b92e0e06d7499735c238.tar.gz
VeraCrypt-edde1d45f6de3e71b585b92e0e06d7499735c238.zip
MacOSX: Add for using FUSE-T instead of MacFUSE
The build script build_veracrypt_macosx.h now accepts the argument -f to enable fuse-t support. It is also possible to set the environment variable VC_OSX_FUSET to 1 for FUSE-T support. A change was done in CoreUnix::GetMountedVolumes to add a waiting loop for control file to be accessible because when using FUSE-T there always a delay before control file can be serialized.
Diffstat (limited to 'src/Build')
-rwxr-xr-xsrc/Build/build_veracrypt_macosx.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/Build/build_veracrypt_macosx.sh b/src/Build/build_veracrypt_macosx.sh
index 687da160..aaaae8b5 100755
--- a/src/Build/build_veracrypt_macosx.sh
+++ b/src/Build/build_veracrypt_macosx.sh
@@ -14,14 +14,24 @@ SOURCEPATH=$(cd "$(dirname "$SCRIPTPATH/../.")"; pwd)
# directory where the VeraCrypt project has been checked out
PARENTDIR=$(cd "$(dirname "$SCRIPTPATH/../../../.")"; pwd)
-while getopts bp flag
+while getopts bpf flag
do
case "${flag}" in
b) brew=true;;
p) package=true;;
+ f) fuset=true;;
esac
done
+export VC_OSX_FUSET=0
+
+if [ -n "$fuset" ]; then
+ echo "Building VeraCrypt with FUSE-T support"
+ VC_OSX_FUSET=1
+else
+ echo "Building VeraCrypt with MacFUSE support"
+fi
+
if [ -n "$brew" ]; then
export VC_OSX_SDK=$(xcrun --show-sdk-version) #use the latest version installed, this might fail
export VC_OSX_TARGET=${VC_OSX_SDK}