diff options
author | yehonal <yehonal.azeroth@gmail.com> | 2016-06-27 16:40:47 +0200 |
---|---|---|
committer | yehonal <yehonal.azeroth@gmail.com> | 2016-06-27 16:40:47 +0200 |
commit | 540a9d89161a65b2545f32aab6726e904b1970c7 (patch) | |
tree | 3fe53dd2e3942c479bb8665e29300d79822c3ef3 /bin/compiler/2-configure.sh | |
parent | bf139c3d34c09eeabafe8f22ca64a670e203c075 (diff) |
uploading compiler scripts
Diffstat (limited to 'bin/compiler/2-configure.sh')
-rwxr-xr-x | bin/compiler/2-configure.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/bin/compiler/2-configure.sh b/bin/compiler/2-configure.sh new file mode 100755 index 0000000000..c74b52f3e2 --- /dev/null +++ b/bin/compiler/2-configure.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +. "defines.sh" + +CWD=$(pwd) + +cd $BUILDPATH + +echo "Build path: $BUILDPATH" +echo "DEBUG info: $CDEBUG" +echo "Compilation type: $CCTYPE" +# -DCMAKE_BUILD_TYPE=$CCTYPE disable optimization "slow and huge amount of ram" +# -DWITH_COREDEBUG=$CDEBUG compiled with debug information + +cmake $SRCPATH -DCMAKE_INSTALL_PREFIX=$BINPATH -DCONF_DIR=$CONFDIR -DSERVERS=$CSERVERS -DSCRIPTS=$CSCRIPTS \ +-DCMAKE_C_COMPILER=$COMPILER_C -DCMAKE_CC_COMPILER=$COMPILER_CC -DCMAKE_CXX_COMPILER=$COMPILER_CXX \ +-DTOOLS=$CTOOLS -DUSE_SCRIPTPCH=$CSCRIPTPCH -DUSE_COREPCH=$CCOREPCH -DWITH_COREDEBUG=$CDEBUG -DCMAKE_BUILD_TYPE=$CCTYPE -DWITH_WARNINGS=$CWARNINGS + +cd $CWD |