Skip to content

Instantly share code, notes, and snippets.

@take-cheeze
Created May 31, 2012 01:54
Show Gist options
  • Select an option

  • Save take-cheeze/2840357 to your computer and use it in GitHub Desktop.

Select an option

Save take-cheeze/2840357 to your computer and use it in GitHub Desktop.
#!/bin/sh
MINGW_INSTALL_PATH=$PWD/mingw-install
MINGW_PREFIX=/usr/i586-mingw32msvc
unset CC
unset CXX
mkdir -p $MINGW_INSTALL_PATH
mkdir -p mingw-builds
wget --continue http://cairographics.org/releases/pixman-0.26.0.tar.gz
rm -Rf pixman-0.26.0
tar zxf pixman-0.26.0.tar.gz
cd pixman-0.26.0
./configure --prefix=$MINGW_INSTALL_PATH --host=i586-mingw32msvc
make && make install || { exit 1; }
cd ..
wget --continue http://jaist.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz
rm -Rf expat-2.1.0
tar zxf expat-2.1.0.tar.gz
cd expat-2.1.0
./configure --prefix=$MINGW_INSTALL_PATH --host=i586-mingw32msvc
make && make install || { exit 1; }
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