diff options
Diffstat (limited to 'src/Build/build_veracrypt_macosx.sh')
-rwxr-xr-x | src/Build/build_veracrypt_macosx.sh | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/Build/build_veracrypt_macosx.sh b/src/Build/build_veracrypt_macosx.sh index 918a9ad1..0198bd37 100755 --- a/src/Build/build_veracrypt_macosx.sh +++ b/src/Build/build_veracrypt_macosx.sh @@ -82,8 +82,12 @@ echo "Using MacOSX SDK $VC_OSX_SDK with target set to $VC_OSX_TARGET" cd $SOURCEPATH echo "Building VeraCrypt" -make WXSTATIC=FULL wxbuild && make WXSTATIC=FULL clean && make WXSTATIC=FULL && make WXSTATIC=FULL package - -# Uncomment below and comment line above to reuse existing wxWidgets build -# make WXSTATIC=FULL clean && make WXSTATIC=FULL && make WXSTATIC=FULL package - +# Check if wx-config exists in WX_BUILD_DIR +if [ -L "${WX_BUILD_DIR}/wx-config" ]; then + echo "wx-config already exists in ${WX_BUILD_DIR}. Skipping wxbuild." +else + make WXSTATIC=FULL wxbuild || exit 1 +fi +make WXSTATIC=FULL clean || exit 1 +make WXSTATIC=FULL || exit 1 +make WXSTATIC=FULL package || exit 1 |