Added support for cutom build parameters

This commit is contained in:
WolverinDEV 2018-11-01 16:25:22 +01:00
parent 4bc93d2d00
commit 79d7e16378

View File

@ -4,7 +4,8 @@ if [ -d build ]; then
fi fi
mkdir build && cd build mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE="Debug" -DCMAKE_CXX_FLAGS="-I/usr/local/mysql/connector-c++-8.0/include/jdbc/ -I../../../libraries/boringssl/include/ -D_GLIBCXX_USE_CXX11_ABI=1" -DDISABLE_CUSTOM_OUTPUT=ON -DDISABLE_QT=ON echo "Build type: ${TEASPEAK_BUILD_TYPE}"
cmake .. -DCMAKE_BUILD_TYPE="${TEASPEAK_BUILD_TYPE}" -DCMAKE_CXX_FLAGS="-I/usr/local/mysql/connector-c++-8.0/include/jdbc/ -I../../../libraries/boringssl/include/ -D_GLIBCXX_USE_CXX11_ABI=1" -DDISABLE_CUSTOM_OUTPUT=ON -DDISABLE_QT=ON
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Failed to run CMAKE project" echo "Failed to run CMAKE project"
exit 1 exit 1
@ -27,16 +28,17 @@ if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
${CXX_FLAGS} #${CXX_FLAGS}
${C_FLAGS} #${C_FLAGS}
#CMake specific #CMake specific
${CMAKE_OPTIONS} #${CMAKE_OPTIONS}
${CMAKE_MAKE_OPTIONS} #${CMAKE_MAKE_OPTIONS}
#Make specific (without cmake) #Make specific (without cmake)
${MAKE_OPTIONS} #${MAKE_OPTIONS}
CXXFLAGS="${CXX_FLAGS}" CFLAGS="${C_FLAGS}" #CXXFLAGS="${CXX_FLAGS}" CFLAGS="${C_FLAGS}"
CXXFLAGS="${CXX_FLAGS}" CFLAGS="${C_FLAGS}" ${CMAKE_OPTIONS} #CXXFLAGS="${CXX_FLAGS}" CFLAGS="${C_FLAGS}" ${CMAKE_OPTIONS}