]> icculus.org git repositories - btb/d2x.git/blob - .travis.yml
use macro for pointer arithmetic
[btb/d2x.git] / .travis.yml
1 language: c
2
3 compiler:
4 # - gcc
5   - clang
6   - i586-mingw32msvc-gcc
7 # - i686-w64-mingw32-gcc
8   - x86_64-w64-mingw32-gcc
9
10 env:
11   - CONFLAGS=" --enable-release --disable-debug  --enable-editor --with-opengl"
12   - CONFLAGS="--disable-release  --enable-debug  --enable-editor --with-opengl"
13
14 before_install:
15   - sudo apt-get update -qq
16
17 # native compilation
18   - case $CC in gcc|clang) sudo apt-get install -y libphysfs-dev libsdl1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev; esac
19
20   - case $CC in *-w64-mingw32-*) sudo apt-get remove -qq -y mingw32; esac
21   - case $CC in *-w64-mingw32-*) sudo apt-get install -y mingw-w64; esac
22
23   - case $CC in *-*-gcc) export CONFLAGS="$CONFLAGS --host $(basename $CC -gcc)"; esac
24
25   - case $CC in i?86-*mingw32*-*) export CONFLAGS="$CONFLAGS --with-sdl-prefix=`pwd`/arch/win32 CPPFLAGS=-Iarch/win32/include LDFLAGS=-Larch/win32/lib PKG_CONFIG_LIBDIR=`pwd`/arch/win32/lib/pkgconfig"; esac
26
27   - case $CC in x86_64-*mingw32*-*) export CONFLAGS="$CONFLAGS --with-sdl-prefix=`pwd`/arch/win64 CPPFLAGS=-Iarch/win64/include LDFLAGS=-Larch/win64/lib PKG_CONFIG_LIBDIR=`pwd`/arch/win64/lib/pkgconfig"; esac
28
29   - echo $CONFLAGS
30
31 script:
32   - ./autogen.sh
33   - ./configure $CONFLAGS
34   - make