Closed corwinn closed 1 year ago
Done.
cmake ../SDL2-2.26.2 -DSDL_STATIC_PIC=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$P -DSDL2_DISABLE_SDL2MAIN=OFF -DCMAKE_TOOLCHAIN_FILE=../SDL2-2.26.2_cmake_toolchain -DCMAKE_CROSSCOMPILING=True
Not using libSDL2main.a <=> compile -DSDL_MAIN_HANDLED
and define my own WinMain
.cmake ../SDL2_mixer-2.6.2 -DSDL_STATIC_PIC=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$P -DCMAKE_TOOLCHAIN_FILE=../SDL2-2.26.2_cmake_toolchain -DCMAKE_CROSSCOMPILING=True -DSDL2MIXER_OPUS=OFF -DSDL2MIXER_FLAC=ON -DSDL2MIXER_FLAC_LIBFLAC=OFF -DSDL2MIXER_MOD=OFF -DSDL2MIXER_MIDI=OFF -DSDL2MIXER_FLAC_DRFLAC=ON
Prepare build scripts. Read the license info. Add questions. Etc. . The cross-compile adventure never ends.