Files
eden/.ci/windows/build.sh
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.3 KiB
Bash
Raw Normal View History

#!/bin/bash -ex
2025-06-28 22:11:38 -04:00
2025-09-21 21:58:59 +02:00
# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
2025-06-28 22:11:38 -04:00
# SPDX-License-Identifier: GPL-3.0-or-later
if [ "$COMPILER" == "clang" ]
then
EXTRA_CMAKE_FLAGS+=(
-DCMAKE_CXX_COMPILER=clang-cl
-DCMAKE_C_COMPILER=clang-cl
-DCMAKE_CXX_FLAGS="-O3"
-DCMAKE_C_FLAGS="-O3"
)
2025-06-28 22:11:38 -04:00
BUILD_TYPE="RelWithDebInfo"
2025-06-28 22:11:38 -04:00
fi
[ -z "$WINDEPLOYQT" ] && { echo "WINDEPLOYQT environment variable required."; exit 1; }
2025-07-14 22:30:54 +02:00
echo $EXTRA_CMAKE_FLAGS
2025-06-28 22:11:38 -04:00
mkdir -p build && cd build
cmake .. -G Ninja \
-DCMAKE_BUILD_TYPE="${BUILD_TYPE:-Release}" \
-DENABLE_QT_TRANSLATION=ON \
2025-06-28 22:11:38 -04:00
-DUSE_DISCORD_PRESENCE=ON \
2025-08-14 20:30:30 +02:00
-DYUZU_USE_BUNDLED_SDL2=ON \
-DBUILD_TESTING=OFF \
2025-06-28 22:11:38 -04:00
-DYUZU_TESTS=OFF \
-DDYNARMIC_TESTS=OFF \
2025-06-28 22:11:38 -04:00
-DYUZU_CMD=OFF \
-DYUZU_ROOM_STANDALONE=OFF \
-DYUZU_USE_QT_MULTIMEDIA=${USE_MULTIMEDIA:-false} \
-DYUZU_USE_QT_WEB_ENGINE=${USE_WEBENGINE:-false} \
2025-06-28 22:11:38 -04:00
-DYUZU_ENABLE_LTO=ON \
-DCMAKE_EXE_LINKER_FLAGS=" /LTCG" \
-DDYNARMIC_ENABLE_LTO=ON \
-DYUZU_USE_BUNDLED_QT=${BUNDLE_QT:-false} \
-DUSE_CCACHE=${CCACHE:-false} \
-DENABLE_UPDATE_CHECKER=${DEVEL:-true} \
"${EXTRA_CMAKE_FLAGS[@]}" \
"$@"
2025-06-28 22:11:38 -04:00
ninja
2025-06-29 06:04:44 +00:00
set +e
2025-06-29 20:28:01 -04:00
rm -f bin/*.pdb
2025-06-29 06:04:44 +00:00
set -e
2025-06-29 05:07:22 +00:00
$WINDEPLOYQT --release --no-compiler-runtime --no-opengl-sw --no-system-dxc-compiler --no-system-d3d-compiler --dir pkg bin/eden.exe
2025-06-29 20:25:21 -04:00
cp bin/* pkg