Server-Root/build_teaspeak.sh
2020-01-24 14:52:26 +01:00

45 lines
1.0 KiB
Bash
Executable File

cd TeaSpeak
if [ -d build ]; then
rm -r build
fi
mkdir build && cd build
echo "Build type: ${TEASPEAK_BUILD_TYPE}"
cmake .. -DCMAKE_BUILD_TYPE="${TEASPEAK_BUILD_TYPE}" -DCMAKE_CXX_FLAGS=" ${CXX_FLAGS}" -DBUILD_INCLUDE_FILE=`pwd`/build-helpers/cmake/config/tearoot-server.cmake -DCMAKE_MODULE_PATH=`pwd`/build-helpers/cmake/ -DDISABLE_QT=1 -DDISABLE_CUSTOM_OUTPUT=ON -DDISABLE_QT=ON $TEASPEAK_DEPLOY_TYPE_SPECIFIER
if [ $? -ne 0 ]; then
echo "Failed to run CMAKE project"
exit 1
fi
cmake --build `pwd` --target ProviderFFMpeg -- -j 12
if [ $? -ne 0 ]; then
echo "Failed to build ffmpeg"
exit 1
fi
cmake --build `pwd` --target ProviderYT -- -j 12
if [ $? -ne 0 ]; then
echo "Failed to build YT"
exit 1
fi
cmake --build `pwd` --target TeaSpeakServer -- -j 12
if [ $? -ne 0 ]; then
echo "Failed to build server"
exit 1
fi
#${CXX_FLAGS}
#${C_FLAGS}
#CMake specific
#${CMAKE_OPTIONS}
#${CMAKE_MAKE_OPTIONS}
#Make specific (without cmake)
#${MAKE_OPTIONS}
#CXXFLAGS="${CXX_FLAGS}" CFLAGS="${C_FLAGS}"
#CXXFLAGS="${CXX_FLAGS}" CFLAGS="${C_FLAGS}" ${CMAKE_OPTIONS}