Created
June 1, 2012 09:47
-
-
Save take-cheeze/2850827 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| MINGW_INSTALL_PATH=$PWD/mingw-install | |
| MINGW_PREFIX=/usr/i686-w64-mingw32 | |
| unset CC | |
| unset CXX | |
| mkdir -p $MINGW_INSTALL_PATH | |
| mkdir -p mingw-builds | |
| ls download-mingw-rpm || git clone https://github.com/mkbosmans/download-mingw-rpm.git | |
| cd download-mingw-rpm | |
| git pull origin master | |
| # sdl_mixer sdl_ttf boost | |
| PACAKGES=cross-pkg-config | |
| for i in libexpat pixman freetype libSDL libjpeg libpng zlib openal-soft win_iconv | |
| do | |
| PACKAGES="$PACKAGES $i $i-devel" | |
| done | |
| ./download-mingw-rpm.py --deps $PACKAGES || echo "error installing pacakge: $PACKAGES" | |
| cd .. | |
| SCRIPT_PATH=$(echo $(cd $(dirname $0);pwd)) | |
| cmake -DCMAKE_TOOLCHAIN_FILE="$SCRIPT_PATH/Modules/toolchain-mingw.cmake" $SCRIPT_PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment