2020-01-24 09:49:24 -05:00
|
|
|
_build_helper_dir="$(pwd)/build-helpers"
|
2020-01-24 08:54:13 -05:00
|
|
|
|
|
|
|
|
|
|
|
cd TeaSpeak || exit 1
|
2018-08-08 15:51:41 -04:00
|
|
|
if [ -d build ]; then
|
|
|
|
rm -r build
|
|
|
|
fi
|
2020-01-24 08:54:13 -05:00
|
|
|
mkdir build && cd build || exit 1
|
2018-08-08 15:51:41 -04:00
|
|
|
|
2018-11-01 11:25:22 -04:00
|
|
|
echo "Build type: ${TEASPEAK_BUILD_TYPE}"
|
2020-01-24 08:53:34 -05:00
|
|
|
cmake .. -DCMAKE_BUILD_TYPE="${TEASPEAK_BUILD_TYPE}" -DCMAKE_CXX_FLAGS=" ${CXX_FLAGS}" -DBUILD_INCLUDE_FILE="$_build_helper_dir"/cmake/config/tearoot-server.cmake -DCMAKE_MODULE_PATH="$_build_helper_dir"/cmake/ -DDISABLE_QT=1 -DDISABLE_CUSTOM_OUTPUT=ON -DDISABLE_QT=ON $TEASPEAK_DEPLOY_TYPE_SPECIFIER
|
2020-01-24 09:49:24 -05:00
|
|
|
if [[ $? -ne 0 ]]; then
|
2018-09-11 17:33:22 -04:00
|
|
|
echo "Failed to run CMAKE project"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2020-01-24 09:49:24 -05:00
|
|
|
cmake --build "$(pwd)" --target ProviderFFMpeg -- -j 12
|
|
|
|
if [[ $? -ne 0 ]]; then
|
2018-09-11 17:33:22 -04:00
|
|
|
echo "Failed to build ffmpeg"
|
|
|
|
exit 1
|
|
|
|
fi
|
2020-01-24 09:49:24 -05:00
|
|
|
cmake --build "$(pwd)" --target ProviderYT -- -j 12
|
|
|
|
if [[ $? -ne 0 ]]; then
|
2018-09-11 17:33:22 -04:00
|
|
|
echo "Failed to build YT"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2020-01-24 09:49:24 -05:00
|
|
|
cmake --build "$(pwd)" --target TeaSpeakServer -- -j 12
|
|
|
|
if [[ $? -ne 0 ]]; then
|
2018-09-11 17:33:22 -04:00
|
|
|
echo "Failed to build server"
|
|
|
|
exit 1
|
|
|
|
fi
|
2018-08-09 06:38:44 -04:00
|
|
|
|
2018-11-01 11:25:22 -04:00
|
|
|
#${CXX_FLAGS}
|
|
|
|
#${C_FLAGS}
|
2018-08-09 06:38:44 -04:00
|
|
|
|
|
|
|
#CMake specific
|
2018-11-01 11:25:22 -04:00
|
|
|
#${CMAKE_OPTIONS}
|
|
|
|
#${CMAKE_MAKE_OPTIONS}
|
2018-08-09 06:38:44 -04:00
|
|
|
|
|
|
|
#Make specific (without cmake)
|
2018-11-01 11:25:22 -04:00
|
|
|
#${MAKE_OPTIONS}
|
2018-08-09 06:38:44 -04:00
|
|
|
|
|
|
|
|
2018-11-01 11:25:22 -04:00
|
|
|
#CXXFLAGS="${CXX_FLAGS}" CFLAGS="${C_FLAGS}"
|
|
|
|
#CXXFLAGS="${CXX_FLAGS}" CFLAGS="${C_FLAGS}" ${CMAKE_OPTIONS}
|
|
|
|
|