Commit 8d4042e3 authored by nanahira's avatar nanahira

temp

parent 7e2fac4f
language: cpp language: cpp
os: osx os:
- linux
- osx
sudo: required sudo: required
dist: trusty dist: trusty
osx_image: xcode8 osx_image: xcode8
env: env:
- USE_IRRKLANG=mac - USE_IRRKLANG=1
addons:
ssh_known_hosts:
- github.com
apt:
packages:
- libfreetype6-dev
- libevent-dev
- libsqlite3-dev
- libirrlicht-dev
- liblua5.2-dev
- libgl1-mesa-dev
- libglu-dev
before_install: before_install:
- brew update > /dev/null - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
- brew install freetype libevent sqlite dylibbundler > /dev/null brew update > /dev/null;
brew install freetype libevent sqlite dylibbundler > /dev/null;
fi
- curl --location --retry 5 http://www.lua.org/ftp/lua-5.3.4.tar.gz | tar zfx - - curl --location --retry 5 http://www.lua.org/ftp/lua-5.3.4.tar.gz | tar zfx -
- cd lua-5.3.4 - cd lua-5.3.4
......
...@@ -34,7 +34,9 @@ project "ygopro" ...@@ -34,7 +34,9 @@ project "ygopro"
defines { "YGOPRO_USE_IRRKLANG" } defines { "YGOPRO_USE_IRRKLANG" }
links { "irrKlang" } links { "irrKlang" }
includedirs { "/usr/include/irrKlang" } includedirs { "/usr/include/irrKlang" }
if os.getenv("USE_IRRKLANG")=="mac" then if os.getenv("TRAVIS_OS_NAME")=="osx" then
libdirs { "../irrklang/lib/Win32-visualStudio" } libdirs { "../irrklang/bin/macosx-gcc" }
elseif os.getenv("TRAVIS_OS_NAME")=="linux" then
libdirs { "../irrklang/bin/linux-gcc" }
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment