travis: cross compile for 64 bit windows

This commit is contained in:
Frank Morgner 2015-09-13 10:56:28 +02:00
parent 428385d8b4
commit f261426303
1 changed files with 6 additions and 3 deletions

View File

@ -18,8 +18,9 @@ matrix:
- compiler: gcc
os: linux
env: ENABLE_DOC=--enable-doc
- compiler: gcc
os: linux
- os: linux
env: HOST=x86_64-w64-mingw32
- os: linux
env: HOST=i686-w64-mingw32
before_install:
@ -31,8 +32,10 @@ install:
- if [ $TRAVIS_OS_NAME == linux ]; then
if [ -z "$HOST" ]; then
sudo apt-get install libpcsclite-dev xsltproc docbook-xsl;
else
elif [ "${HOST}" == i686-w64-mingw32 ]; then
sudo apt-get install mingw-w64 binutils-mingw-w64-i686 gcc-mingw-w64-i686;
elif [ "${HOST}" == x86_64-w64-mingw32 ]; then
sudo apt-get install mingw-w64 binutils-mingw-w64-x86-64 gcc-mingw-w64-x86-64;
fi
fi