aboutsummaryrefslogtreecommitdiff
path: root/build-win/full-build-win.sh
blob: 9661d462b2e00192dffd96c768e441e3dc82221e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
set -euo pipefail

[[ -f engine-win.zip ]] && rm -f engine-win.zip
PKG_CONFIG_PATH=../../local/x86_64-w64-mingw32/lib/pkgconfig/ \
    ../configure --prefix "$(realpath .)" --build x86_64-pc-linux-gnu --host x86_64-w64-mingw32
make
zip -jg engine-win engine.exe
zip -jg engine-win /usr/lib/gcc/x86_64-w64-mingw32/13-win32/libstdc++-6.dll
zip -jg engine-win /usr/lib/gcc/x86_64-w64-mingw32/13-win32/libgcc_s_seh-1.dll
zip -jg engine-win ../../local/x86_64-w64-mingw32/bin/SDL2.dll