mirror of
https://github.com/visualboyadvance-m/visualboyadvance-m
synced 2025-10-05 23:52:49 +02:00
* Enable ffmpeg by default only on linux and msys2, it will be disabled for normal windows builds and on mac. * Set SFML_STATIC_LIBRARIES only for normal non-msys2 windows builds, because msys2 does not currently have static versions of the SFML sub-libraries, e.g. system, network, etc.. Dynamic linking works fine for now. * Fix quoting for -DLOCALEDIR, on windows spaces were causing errors in make on msys2. * Update to upstream FindSFML.cmake . * Add an ./installdeps-msys2 script to install all necessary tools and libraries on msys2 for building both 64 and 32 bit windows Wx binaries. * Add the dependencies/mingw-xaudio/include directory to INCLUDE_DIRECTORIES so that XAudio compiles on msys2, as mingw-w64 does not currently have XAudio headers. Also check that the user pulled the git submodule in the process (the ./installdeps-msys2 script does this for you.) TODO: * Generalize ./installdeps to work on more platforms. * Make console Wx app in debug mode so that debug prints will work. * Fix game keyboard input for msys2 builds. * Add HiDPI support for Windows. * Fix the -D*DIR defines to have the correct paths on windows.
30 lines
661 B
Bash
30 lines
661 B
Bash
#!/bin/sh
|
||
|
||
cd "$(dirname $0)"
|
||
|
||
MINGW_DEPS='SDL2 cairo ffmpeg openal sfml wxWidgets zlib binutils cmake crt-git extra-cmake-modules gcc gcc-libs gdb headers-git make pkg-config tools-git windows-default-manifest libmangle-git'
|
||
MINGW64_DEPS=
|
||
MINGW32_DEPS=
|
||
|
||
for dep in $MINGW_DEPS; do
|
||
MINGW64_DEPS="$MINGW64_DEPS mingw-w64-x86_64-$dep"
|
||
MINGW32_DEPS="$MINGW32_DEPS mingw-w64-i686-$dep"
|
||
done
|
||
|
||
echo '[32mInstalling deps....[0m'
|
||
echo
|
||
|
||
pacman --noconfirm --needed -Syuu git make zip $MINGW64_DEPS $MINGW32_DEPS
|
||
|
||
git submodule update --init --recursive
|
||
|
||
cat <<'EOF'
|
||
|
||
[32mDone! To build do:[0m
|
||
|
||
mkdir build
|
||
cd build
|
||
cmake .. -G 'MSYS Makefiles'
|
||
make -j10
|
||
EOF
|