14
									
								
								build.sh
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								build.sh
									
									
									
									
									
								
							@@ -3,17 +3,17 @@
 | 
				
			|||||||
##########################################################################
 | 
					##########################################################################
 | 
				
			||||||
# build script for TIC-80
 | 
					# build script for TIC-80
 | 
				
			||||||
##########################################################################
 | 
					##########################################################################
 | 
				
			||||||
# Comment the line below if dependencies are already installed.
 | 
					echo "For a normal build, use the linux target."
 | 
				
			||||||
sudo apt-get install build-essential mercurial make cmake autoconf automake libtool libasound2-dev libpulse-dev libaudio-dev libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxi-dev libxinerama-dev libxxf86vm-dev libxss-dev libgl1-mesa-dev libesd0-dev libdbus-1-dev libudev-dev libgles1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev libibus-1.0-dev fcitx-libs-dev libsamplerate0-dev libgtk-3-dev zlib1g-dev libwayland-dev libxkbcommon-dev wayland-protocols -y
 | 
					echo "-lto targets (Link Time Optimization) have smaller output size."
 | 
				
			||||||
echo For a normal build, use the linux target.
 | 
					echo "wasm, emscripten and mingw targets require their compilers to be installed."
 | 
				
			||||||
echo -lto targets (Link Time Optimization) have smaller output size.
 | 
					 | 
				
			||||||
echo wasm, emscripten and mingw targets require their compilers to be installed.
 | 
					 | 
				
			||||||
PS3="Select build target: "
 | 
					PS3="Select build target: "
 | 
				
			||||||
options=("linux" "linux32-lto" "linux64-lto" "emscripten" "wasm" "mingw" "chip-lto" "exit")
 | 
					options=("dependencies" "linux" "linux32-lto" "linux64-lto" "emscripten" "wasm" "mingw" "chip-lto" "exit")
 | 
				
			||||||
#make linux
 | 
					 | 
				
			||||||
select opt in "${options[@]}"
 | 
					select opt in "${options[@]}"
 | 
				
			||||||
do
 | 
					do
 | 
				
			||||||
  case $opt in
 | 
					  case $opt in
 | 
				
			||||||
 | 
					    "dependencies")
 | 
				
			||||||
 | 
					      sudo apt-get install build-essential mercurial make cmake autoconf automake libtool libasound2-dev libpulse-dev libaudio-dev libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxi-dev libxinerama-dev libxxf86vm-dev libxss-dev libgl1-mesa-dev libesd0-dev libdbus-1-dev libudev-dev libgles1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev libibus-1.0-dev fcitx-libs-dev libsamplerate0-dev libgtk-3-dev zlib1g-dev libwayland-dev libxkbcommon-dev wayland-protocols -y
 | 
				
			||||||
 | 
					      ;;
 | 
				
			||||||
    "linux")
 | 
					    "linux")
 | 
				
			||||||
      make linux
 | 
					      make linux
 | 
				
			||||||
      ;;
 | 
					      ;;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user