2019-07-01 20:23:51 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
cd $(dirname $0)
|
2019-07-06 09:50:35 -04:00
|
|
|
#Depends on a lot so rebuild as soon anything changed! We still have to implement that dependecy stuff!
|
|
|
|
|
2019-07-01 20:23:51 -04:00
|
|
|
tearoot_cmake_config="`pwd`/cmake/config/tearoot-client.cmake"
|
|
|
|
tearoot_cmake_module="`pwd`/cmake/"
|
|
|
|
traroot_library="`pwd`/third_party"
|
|
|
|
|
|
|
|
shared_path="shared"
|
2019-10-24 14:19:22 -04:00
|
|
|
source `pwd`/scripts/build_helper.sh
|
2019-07-01 20:23:51 -04:00
|
|
|
begin_task "build_shared" "Building shared library"
|
|
|
|
requires_rebuild ${shared_path}
|
|
|
|
[[ $? -eq 0 ]] && {
|
|
|
|
end_task "build_shared" "Shared build finished"
|
|
|
|
exit 0
|
|
|
|
}
|
|
|
|
|
|
|
|
generate_build_path shared
|
|
|
|
echo "Build path: $build_path"
|
|
|
|
if [[ -d ${build_path} ]]; then
|
|
|
|
echo "Deleting old build folder"
|
|
|
|
rm -r ${build_path}
|
|
|
|
check_err_exit ${shared_path} "Failed to delete old build folder"
|
|
|
|
fi
|
|
|
|
|
|
|
|
#set(CMAKE_MODULE_PATH "C:/Users/WolverinDEV/TeaSpeak/cmake")
|
|
|
|
#include(${CMAKE_MODULE_PATH}/libraries_wolverin_lap.cmake)
|
|
|
|
|
|
|
|
cmake_build ${shared_path} -DCMAKE_MODULE_PATH="$tearoot_cmake_module" -DCMAKE_PLATFORM_INCLUDE="$tearoot_cmake_config" -DLIBRARY_PATH="$traroot_library" -DBUILD_TESTS=OFF
|
|
|
|
check_err_exit ${shared_path} "Failed to build TeaSpeak shared library!"
|
|
|
|
set_build_successful ${shared_path}
|
|
|
|
|
2019-10-24 14:19:22 -04:00
|
|
|
end_task "build_shared" "Shared build finished"
|