| 
									
										
										
										
											2019-07-02 02:23:51 +02:00
										 |  |  | #!/usr/bin/env bash
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | cd $(dirname $0) | 
					
						
							| 
									
										
										
										
											2019-07-06 15:50:35 +02:00
										 |  |  | #Depends on a lot so rebuild as soon anything changed! We still have to implement that dependecy stuff! | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-02-02 21:55:10 +01:00
										 |  |  | tearoot_cmake_config="`pwd`/build-helpers/cmake/config/tearoot-client.cmake" | 
					
						
							|  |  |  | tearoot_cmake_module="`pwd`/build-helpers/cmake/" | 
					
						
							| 
									
										
										
										
											2019-07-02 02:23:51 +02:00
										 |  |  | traroot_library="`pwd`/third_party" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | shared_path="shared" | 
					
						
							| 
									
										
										
										
											2020-02-08 16:50:12 +01:00
										 |  |  | source `pwd`/build-helpers/build_helper.sh | 
					
						
							| 
									
										
										
										
											2019-07-02 02:23:51 +02: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 19:19:22 +01:00
										 |  |  | end_task "build_shared" "Shared build finished" |