"Fossies" - the Fresh Open Source Software Archive

Member "src/Build/build_veracrypt_macosx.sh" (10 Oct 2018, 1157 Bytes) of package /windows/misc/VeraCrypt_1.23-Hotfix-2_Source.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "build_veracrypt_macosx.sh": 1.21_Source_vs_1.22_Source.

    1 #
    2 # Copyright (c) 2013-2017 IDRIX
    3 # Governed by the Apache License 2.0 the full text of which is contained
    4 # in the file License.txt included in VeraCrypt binary and source
    5 # code distribution packages.
    6 #
    7 
    8 # Absolute path this script is in
    9 SCRIPTPATH=$(cd "$(dirname "$0")"; pwd)
   10 # source directory which contains the Makefile
   11 SOURCEPATH=$(cd "$(dirname "$SCRIPTPATH/../.")"; pwd)
   12 # directory where the VeraCrypt project has been checked out
   13 PARENTDIR=$(cd "$(dirname "$SCRIPTPATH/../../../.")"; pwd)
   14 
   15 # the sources of wxWidgets 3.0.3 must be extracted to the parent directory
   16 export WX_ROOT=$PARENTDIR/wxWidgets-3.0.4
   17 echo "Using wxWidgets sources in $WX_ROOT"
   18 
   19 # this will be the temporary wxWidgets directory
   20 export WX_BUILD_DIR=$PARENTDIR/wxBuild
   21 
   22 # define the SDK version to use. We use 10.7 by default
   23 export VC_OSX_TARGET=10.7
   24 echo "Using MacOSX SDK $VC_OSX_TARGET"
   25 
   26 
   27 cd $SOURCEPATH
   28 
   29 echo "Building VeraCrypt"
   30 make WXSTATIC=1 wxbuild && make WXSTATIC=1 clean && make WXSTATIC=1 && make WXSTATIC=1 package
   31 
   32 # Uncomment below and comment line above to reuse existing wxWidgets build
   33 # make WXSTATIC=1 clean && make WXSTATIC=1 && make WXSTATIC=1 package