| 
									
										
										
										
											2019-07-01 20:11:55 +02:00
										 |  |  | #!/bin/bash
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-07-01 22:32:56 +02:00
										 |  |  | # Enter third_party/ directory | 
					
						
							|  |  |  | cd $(dirname $0) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-07-02 02:23:51 +02:00
										 |  |  | source ../scripts/build_helper.sh | 
					
						
							|  |  |  | begin_task "build_third_party" "Building libraries" | 
					
						
							| 
									
										
										
										
											2019-07-01 22:32:56 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | function exec_script() { | 
					
						
							| 
									
										
										
										
											2019-07-01 20:11:55 +02:00
										 |  |  |     name=$(echo "$1" | sed -n -E 's:^build_(.*)\.sh:\1:p') | 
					
						
							| 
									
										
										
										
											2019-07-02 02:23:51 +02:00
										 |  |  |     begin_task "build_$name" "Building $name" | 
					
						
							| 
									
										
										
										
											2019-07-01 22:32:56 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-07-01 20:11:55 +02:00
										 |  |  | 	echo -e "Building library with script $color_green${1}$color_normal" | 
					
						
							|  |  |  | 	./${1} | 
					
						
							|  |  |  | 	if [[ $? -ne 0 ]]; then | 
					
						
							|  |  |  | 		echo "Failed to build library $name. Status code: $?" | 
					
						
							|  |  |  | 		exit 1 | 
					
						
							|  |  |  | 	fi | 
					
						
							| 
									
										
										
										
											2019-07-01 22:32:56 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     #Log the result | 
					
						
							| 
									
										
										
										
											2019-07-02 02:23:51 +02:00
										 |  |  |     end_task "build_$name" "Finished $name" | 
					
						
							| 
									
										
										
										
											2019-07-01 22:32:56 +02:00
										 |  |  |     echo "" | 
					
						
							| 
									
										
										
										
											2019-07-01 20:11:55 +02:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-07-01 22:32:56 +02:00
										 |  |  | exec_script build_boringssl.sh | 
					
						
							|  |  |  | exec_script build_breakpad.sh #Not required for windows TeaClient | 
					
						
							| 
									
										
										
										
											2019-07-01 20:11:55 +02:00
										 |  |  | exec_script build_event.sh | 
					
						
							| 
									
										
										
										
											2019-07-01 22:32:56 +02:00
										 |  |  | exec_script build_cxxterminal.sh #Depends on libevent; Not required for TeaClient | 
					
						
							|  |  |  | exec_script build_datapipes.sh | 
					
						
							|  |  |  | exec_script build_ed25519.sh | 
					
						
							|  |  |  | exec_script build_jsoncpp.sh | 
					
						
							| 
									
										
										
										
											2019-07-02 16:55:17 +02:00
										 |  |  | #exec_script build_mysqlconnector.sh | 
					
						
							| 
									
										
										
										
											2019-07-01 22:32:56 +02:00
										 |  |  | exec_script build_opus.sh | 
					
						
							| 
									
										
										
										
											2019-07-03 13:27:12 +02:00
										 |  |  | exec_script build_soxr.sh | 
					
						
							|  |  |  | exec_script build_portaudio.sh | 
					
						
							| 
									
										
										
										
											2019-07-01 22:32:56 +02:00
										 |  |  | exec_script build_protobuf.sh | 
					
						
							|  |  |  | exec_script build_spdlog.sh | 
					
						
							|  |  |  | exec_script build_stringvariable.sh | 
					
						
							|  |  |  | exec_script build_threadpool.sh | 
					
						
							|  |  |  | exec_script build_tom.sh | 
					
						
							|  |  |  | exec_script build_yaml.sh | 
					
						
							|  |  |  | exec_script build_jemalloc.sh #Not required for TeaClient | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #Log the result | 
					
						
							| 
									
										
										
										
											2019-07-02 02:23:51 +02:00
										 |  |  | end_task "build_third_party" "Build all libraries successfully" |