appveyor-mingw.sh 816 Bytes
Newer Older
1 2
#!/bin/sh
set -e
Tony Kelman committed
3
cd `dirname "$0"`/..
4
if [ "$ARCH" = "i686" ]; then
Tony Kelman committed
5 6 7 8 9
  f=i686-4.9.2-release-win32-sjlj-rt_v3-rev1.7z
  if ! [ -e $f ]; then
    curl -LsSO http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.2/threads-win32/sjlj/$f
  fi
  7z x $f > /dev/null
10
  export PATH=`pwd`/mingw32/bin:$PATH
Tony Kelman committed
11 12 13 14 15 16
else
  f=x86_64-4.9.2-release-win32-seh-rt_v3-rev1.7z
  if ! [ -e $f ]; then
    curl -LsSO http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.9.2/threads-win32/seh/$f
  fi
  7z x $f > /dev/null
17
  export PATH=`pwd`/mingw64/bin:$PATH
Tony Kelman committed
18 19
fi
cd build
20 21
gcc --version
cmake --version
22
cmake -D ENABLE_TRACE=ON -D BUILD_CLAR=ON -D BUILD_EXAMPLES=ON .. -G"$GENERATOR"
23
cmake --build . --config RelWithDebInfo