
* Renamed a bunch of variables in main.cpp to be more descriptive. * Removed unnecessary SDLMain.h and SDLMain.m OSX objective-c class as well as the plist, strings, xib and icns files, which are not needed. * included cstdio in imguiRenderGL since SDL2 doesn't do it for us. * Updated premake5 script to support SDL2 and to set the debug directory, as well as copy the SDL2.dll to the target directory on Windows. * Updated readme with more descriptive, platform-specific demo project setup instructions * Updated appveyor build script to build vs2015 as well. * Updated Travis build script to build SDL2 from source, because they use Ubuntu 12.04 which doesn't have the libsdl2-dev package in its repositories.
45 lines
1.6 KiB
YAML
45 lines
1.6 KiB
YAML
sudo: false
|
|
|
|
language: cpp
|
|
|
|
# Build with gcc and clang.
|
|
compiler:
|
|
- gcc
|
|
# Disable clang for now since it seems there's a problem using it with fast fp math; it's likely Travis' ancient environment that's at fault.
|
|
# - clang
|
|
|
|
# Build both debug and release configurations, through use of an environment variable in the build matrix.
|
|
env:
|
|
- CONFIGURATION=debug
|
|
- CONFIGURATION=release
|
|
|
|
install:
|
|
# Download and build SDL2 from source.
|
|
- mkdir dummyprefix
|
|
- export PREFIX=$PWD/dummyprefix
|
|
- export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
|
|
- export PATH=$PATH:$PWD/dummyprefix/bin
|
|
- wget https://www.libsdl.org/release/SDL2-2.0.4.tar.gz -O SDL2.tar.gz
|
|
- tar -xzf SDL2.tar.gz
|
|
- cd SDL2-2.0.4
|
|
- ./configure --prefix=$PREFIX
|
|
- make -j5
|
|
- make install
|
|
- cd ..
|
|
# Download and build premake5 from source; the Travis environment doesn't have the right version of glibc6 for the prebuilt binaries to work.
|
|
- wget https://github.com/premake/premake-core/releases/download/v5.0.0-alpha6/premake-5.0.0-alpha6-src.zip -O premake.zip
|
|
- unzip premake.zip
|
|
- cd premake-5.0.0-alpha6/build/gmake.unix
|
|
- make config=release
|
|
- cd ../../..
|
|
- mv premake-5.0.0-alpha6/bin/release/premake5 premake5
|
|
|
|
# Run premake to generate makefiles.
|
|
# Have to cd into directory and back out since premake5 doesn't appear to accept a directory argument.
|
|
before_script:
|
|
- cd RecastDemo && ../premake5 gmake && cd ..
|
|
|
|
# Run make in the directory containing generated makefiles, on the configuration specified by the environment variable.
|
|
script:
|
|
- make -C RecastDemo/Build/gmake config=$CONFIGURATION
|