mirror of
				https://git.eden-emu.dev/eden-emu/eden.git
				synced 2025-10-25 19:03:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			49 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/bash -e
 | |
| 
 | |
| # SPDX-FileCopyrightText: 2025 eden Emulator Project
 | |
| # SPDX-License-Identifier: GPL-3.0-or-later
 | |
| 
 | |
| if [ "$DEVEL" != "true" ]; then
 | |
|     export EXTRA_CMAKE_FLAGS=("${EXTRA_CMAKE_FLAGS[@]}" -DENABLE_QT_UPDATE_CHECKER=ON)
 | |
| fi
 | |
| 
 | |
| if [ "$CCACHE" = "true" ]; then
 | |
|     export EXTRA_CMAKE_FLAGS=("${EXTRA_CMAKE_FLAGS[@]}" -DUSE_CCACHE=ON)
 | |
| fi
 | |
| 
 | |
| if [ "$BUNDLE_QT" = "true" ]; then
 | |
|     export EXTRA_CMAKE_FLAGS=("${EXTRA_CMAKE_FLAGS[@]}" -DYUZU_USE_BUNDLED_QT=ON)
 | |
| else
 | |
|     export EXTRA_CMAKE_FLAGS=("${EXTRA_CMAKE_FLAGS[@]}" -DYUZU_USE_BUNDLED_QT=OFF)
 | |
| fi
 | |
| 
 | |
| if [ "$WINDEPLOYQT" == "" ]; then
 | |
|     echo "You must supply the WINDEPLOYQT environment variable."
 | |
|     exit 1
 | |
| fi
 | |
| 
 | |
| export EXTRA_CMAKE_FLAGS=("${EXTRA_CMAKE_FLAGS[@]}" $@)
 | |
| 
 | |
| mkdir -p build && cd build
 | |
| cmake .. -G Ninja \
 | |
|     -DCMAKE_BUILD_TYPE=Release \
 | |
| 	-DENABLE_QT_TRANSLATION=ON \
 | |
|     -DUSE_DISCORD_PRESENCE=ON \
 | |
|     -DYUZU_USE_BUNDLED_SDL2=OFF \
 | |
|     -DYUZU_USE_EXTERNAL_SDL2=ON \
 | |
|     -DYUZU_TESTS=OFF \
 | |
|     -DYUZU_CMD=OFF \
 | |
|     -DYUZU_ROOM_STANDALONE=OFF \
 | |
|     -DYUZU_USE_QT_MULTIMEDIA=ON \
 | |
|     -DYUZU_USE_QT_WEB_ENGINE=ON \
 | |
|     -DYUZU_ENABLE_LTO=ON \
 | |
| 	  "${EXTRA_CMAKE_FLAGS[@]}"
 | |
| 
 | |
| ninja
 | |
| 
 | |
| set +e
 | |
| rm -f bin/*.pdb
 | |
| set -e
 | |
| 
 | |
| $WINDEPLOYQT --release --no-compiler-runtime --no-opengl-sw --no-system-dxc-compiler --no-system-d3d-compiler --dir pkg bin/eden.exe
 | |
| cp bin/* pkg
 |