summaryrefslogtreecommitdiff
path: root/packaging/msys2-build.sh
blob: 209e725f2f8f5d143c18d37c6986a9d4288b96c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

pacman --noconfirm -S \
        mingw-w64-ucrt-x86_64-gcc \
        mingw-w64-ucrt-x86_64-cmake \
        mingw-w64-ucrt-x86_64-physfs \
        mingw-w64-ucrt-x86_64-curl-winssl \
        mingw-w64-ucrt-x86_64-SDL2_image \
        mingw-w64-ucrt-x86_64-SDL2_mixer \
        mingw-w64-ucrt-x86_64-SDL2_net \
        mingw-w64-ucrt-x86_64-SDL2_ttf \
        mingw-w64-ucrt-x86_64-libxml2 \
        mingw-w64-ucrt-x86_64-nsis

cmake -B build . -DUSE_SYSTEM_GUICHAN=OFF -DCMAKE_BUILD_TYPE=Release
cmake --build build
pushd build
cpack