Commit 25a180fa authored by Jan Möbius's avatar Jan Möbius
Browse files

Seperate paths for different builds

parent be53bf5f
Pipeline #115 canceled with stage
......@@ -9,26 +9,34 @@ QTVERSION=$3
OPTIONS=""
PATH=""
if [ "$COMPILER" == "gcc" ]; then
echo "Building with GCC";
PATH="gcc-"
elif [ "$COMPILER" == "clang" ]; then
OPTIONS="$OPTIONS -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DGTEST_PREFIX=~/sw/gtest-1.7.0-clang/ "
PATH="clang-"
echo "Building with CLANG";
fi
if [ "$LANGUAGE" == "C++98" ]; then
echo "Building with C++98";
PATH="$PATH-cpp98"
elif [ "$LANGUAGE" == "C++11" ]; then
echo "Building with C++11";
OPTIONS="$OPTIONS -DCMAKE_CXX_FLAGS='-std=c++11' "
PATH="$PATH-cpp11"
fi
if [ "QTVERSION" == "QT4" ]; then
echo "Building with QT4";
OPTIONS="$OPTIONS -DFORCE_QT4=TRUE "
PATH="$PATH-qt4"
elif [ "QTVERSTION" == "QT5" ]; then
echo "Building with QT5";
PATH="$PATH-qt5"
OPTIONS="$OPTIONS -DFORCE_QT4=FALSE -DQWT6_INCLUDE_DIR=~/sw/qwt-6.1/include -DQWT6_LIBRARY_DIR=~/sw/qwt-6.1/lib -DQWT6_LIBRARY=~/sw/qwt-6.1/lib/libqwt.so -DQT5_INSTALL_PATH=/usr/lib/x86_64-linux-gnu/cmake/Qt5"
fi
......@@ -53,10 +61,10 @@ git clone git@roosevelt:moebius/OpenFlipper-Test-Data.git TestData
# Make release build folder
if [ ! -d build-release ]; then
mkdir build-release
mkdir build-release-$PATH
fi
cd build-release
cd build-release-$PATH
cmake -DCMAKE_BUILD_TYPE=Release -DOPENFLIPPER_BUILD_UNIT_TESTS=TRUE -DSTL_VECTOR_CHECKS=ON $OPTIONS ../
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment