client-root/build_shared.sh

35 lines
1.2 KiB
Bash
Raw Normal View History

#!/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!
2020-02-02 15:55:10 -05:00
tearoot_cmake_config="`pwd`/build-helpers/cmake/config/tearoot-client.cmake"
tearoot_cmake_module="`pwd`/build-helpers/cmake/"
traroot_library="`pwd`/third_party"
shared_path="shared"
2020-02-08 10:50:12 -05:00
source `pwd`/build-helpers/build_helper.sh
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"