forked from ground/ground
		
	add compilation script for linux
This commit is contained in:
		
							
								
								
									
										15
									
								
								extlibs/compileall.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										15
									
								
								extlibs/compileall.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
echo "This script is designed for Linux systems"
 | 
			
		||||
echo "Please ensure CPR is installed on your system before continuing"
 | 
			
		||||
echo "On Arch Linux: sudo pacman -S cpr"
 | 
			
		||||
 | 
			
		||||
echo "Compiling exec library"
 | 
			
		||||
g++ -shared -fPIC -o exec.so exec/exec.cpp
 | 
			
		||||
echo "Compiling file library"
 | 
			
		||||
g++ -shared -fPIC -o file.so file/file.cpp
 | 
			
		||||
echo "Compiling math library"
 | 
			
		||||
g++ -shared -fPIC -o math.so math/math.cpp
 | 
			
		||||
echo "Compiling request library"
 | 
			
		||||
g++ -shared -fPIC -lcpr -o request.so request/request.cpp
 | 
			
		||||
echo "Done"
 | 
			
		||||
		Reference in New Issue
	
	Block a user