#!/usr/bin/env bash # Enter third_party/ directory cd $(dirname $0) tearoot_cmake_config="`pwd`/cmake/config/tearoot-client.cmake" tearoot_cmake_module="`pwd`/cmake/" traroot_library="`pwd`/third_party" shared_path="shared" source scripts/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} end_task "build_shared" "Shared build finished"