summaryrefslogtreecommitdiff
path: root/bin/compiler/2-configure.sh
diff options
context:
space:
mode:
authorYehonal <hw.2@hotmail.it>2016-07-08 23:58:11 +0200
committerYehonal <hw.2@hotmail.it>2016-07-08 23:58:11 +0200
commit9fd22872c0e5f52ad47f8cd002111489738b7dda (patch)
tree4df701d097ff76cc566693979994b5befed3bc8d /bin/compiler/2-configure.sh
parenteda1171939b6d7d951aef2da5b4bbb4e926c1f4a (diff)
restructured repository based on following standards:
https://github.com/HW-Core/directory-structure
Diffstat (limited to 'bin/compiler/2-configure.sh')
-rwxr-xr-xbin/compiler/2-configure.sh19
1 files changed, 4 insertions, 15 deletions
diff --git a/bin/compiler/2-configure.sh b/bin/compiler/2-configure.sh
index c74b52f3e2..6acc934686 100755
--- a/bin/compiler/2-configure.sh
+++ b/bin/compiler/2-configure.sh
@@ -1,19 +1,8 @@
#!/bin/bash
+CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-. "defines.sh"
+source "$CURRENT_PATH/includes/common.sh"
-CWD=$(pwd)
+source "$CURRENT_PATH/includes/includes.sh"
-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
+configure