Server-Root/build_teaspeak.sh

45 lines
1.0 KiB
Bash
Raw Normal View History

2018-08-08 15:51:41 -04:00
cd TeaSpeak
if [ -d build ]; then
rm -r build
fi
mkdir build && cd build
echo "Build type: ${TEASPEAK_BUILD_TYPE}"
2019-04-19 08:20:13 -04:00
cmake .. -DCMAKE_BUILD_TYPE="${TEASPEAK_BUILD_TYPE}" -DCMAKE_CXX_FLAGS=" ${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 $TEASPEAK_DEPLOY_TYPE_SPECIFIER
2018-09-11 17:33:22 -04:00
if [ $? -ne 0 ]; then
echo "Failed to run CMAKE project"
exit 1
fi
2018-08-09 06:20:42 -04:00
cmake --build `pwd` --target ProviderFFMpeg -- -j 12
2018-09-11 17:33:22 -04:00
if [ $? -ne 0 ]; then
echo "Failed to build ffmpeg"
exit 1
fi
2018-08-09 06:20:42 -04:00
cmake --build `pwd` --target ProviderYT -- -j 12
2018-09-11 17:33:22 -04:00
if [ $? -ne 0 ]; then
echo "Failed to build YT"
exit 1
fi
2018-08-09 06:20:42 -04:00
cmake --build `pwd` --target TeaSpeakServer -- -j 12
2018-09-11 17:33:22 -04:00
if [ $? -ne 0 ]; then
echo "Failed to build server"
exit 1
fi
2018-08-09 06:38:44 -04:00
#${CXX_FLAGS}
#${C_FLAGS}
2018-08-09 06:38:44 -04:00
#CMake specific
#${CMAKE_OPTIONS}
#${CMAKE_MAKE_OPTIONS}
2018-08-09 06:38:44 -04:00
#Make specific (without cmake)
#${MAKE_OPTIONS}
2018-08-09 06:38:44 -04:00
#CXXFLAGS="${CXX_FLAGS}" CFLAGS="${C_FLAGS}"
#CXXFLAGS="${CXX_FLAGS}" CFLAGS="${C_FLAGS}" ${CMAKE_OPTIONS}