Commit 4aa2bd34 authored by nanahira's avatar nanahira

irrtest

parent ebf8f8d4
...@@ -3,6 +3,8 @@ os: osx ...@@ -3,6 +3,8 @@ os: osx
sudo: required sudo: required
dist: trusty dist: trusty
osx_image: xcode8 osx_image: xcode8
env:
- USE_IRRKLANG=mac
before_install: before_install:
- brew update > /dev/null - brew update > /dev/null
- brew install freetype libevent sqlite dylibbundler > /dev/null - brew install freetype libevent sqlite dylibbundler > /dev/null
...@@ -14,8 +16,8 @@ before_install: ...@@ -14,8 +16,8 @@ before_install:
- cd .. - cd ..
- curl --location --retry 5 https://github.com/premake/premake-core/releases/download/v5.0.0-alpha12/premake-5.0.0-alpha12-macosx.tar.gz | tar zfx - - curl --location --retry 5 https://github.com/premake/premake-core/releases/download/v5.0.0-alpha12/premake-5.0.0-alpha12-macosx.tar.gz | tar zfx -
- curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name http://downloads.sourceforge.net/irrlicht/irrlicht-1.8.4.zip
- curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name http://downloads.sourceforge.net/irrlicht/irrlicht-1.8.4.zip
- unzip -q irrlicht-1.8.4.zip - unzip -q irrlicht-1.8.4.zip
- cd irrlicht-1.8.4/ - cd irrlicht-1.8.4/
- curl --location --retry 5 https://github.com/moecube/ygopro/raw/master/premake/irrlicht/irrlicht-mac.patch | patch -p1 - curl --location --retry 5 https://github.com/moecube/ygopro/raw/master/premake/irrlicht/irrlicht-mac.patch | patch -p1
...@@ -25,6 +27,12 @@ before_install: ...@@ -25,6 +27,12 @@ before_install:
- cp -rf ../../../include /usr/local/include/irrlicht - cp -rf ../../../include /usr/local/include/irrlicht
- cd ../../../../ - cd ../../../../
- curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name http://www.ambiera.at/downloads/irrKlang-32bit-1.5.0.zip
- unzip -q irrKlang-32bit-1.5.0.zip
- cp -rf irrKlang-1.5.0/lib/Win32-gcc/libirrKlang.a /usr/local/lib/
- cp -rf irrKlang-1.5.0/include /usr/local/include/irrKlang
- cp -rf irrKlang-1.5.0/irrKlang-1.5.0/bin/macosx-gcc *.dylib .
script: script:
- ./premake5 gmake --cc=clang - ./premake5 gmake --cc=clang
- cd build - cd build
...@@ -45,7 +53,7 @@ script: ...@@ -45,7 +53,7 @@ script:
- security import cert.p12 -k build.keychain -P "$CERTIFICATE_PASSWORD" -T /usr/bin/codesign - security import cert.p12 -k build.keychain -P "$CERTIFICATE_PASSWORD" -T /usr/bin/codesign
- codesign --deep --keychain build.keychain --sign "$(security find-identity -v -p codesigning build.keychain | head -1 | grep -o '".*"' | tr -d '"')" ygopro.app - codesign --deep --keychain build.keychain --sign "$(security find-identity -v -p codesigning build.keychain | head -1 | grep -o '".*"' | tr -d '"')" ygopro.app
- zip -q -r ygopro-koishi-mac.zip ygopro.app - zip -q -r ygopro-koishi-mac.zip ygopro.app *.dylib
deploy: deploy:
provider: releases provider: releases
......
project "clzma" project "clzma"
kind "StaticLib" kind "StaticLib"
files { "**.c", "**.h" } files { "**.c", "**.h" }
include "lzma" include "lzma"
project "ygopro" project "ygopro"
kind "WindowedApp" kind "WindowedApp"
files { "**.cpp", "**.cc", "**.c", "**.h" } files { "**.cpp", "**.cc", "**.c", "**.h" }
excludes "lzma/**" excludes "lzma/**"
includedirs { "../ocgcore" } includedirs { "../ocgcore" }
links { "ocgcore", "clzma", "Irrlicht", "freetype", "sqlite3", "lua" , "event" } links { "ocgcore", "clzma", "Irrlicht", "freetype", "sqlite3", "lua" , "event" }
configuration "windows" configuration "windows"
files "ygopro.rc" files "ygopro.rc"
excludes "CGUIButton.cpp" excludes "CGUIButton.cpp"
includedirs { "../irrlicht/include", "../freetype/include", "../event/include", "../sqlite3" } includedirs { "../irrlicht/include", "../freetype/include", "../event/include", "../sqlite3" }
if USE_IRRKLANG then if USE_IRRKLANG then
defines { "YGOPRO_USE_IRRKLANG" } defines { "YGOPRO_USE_IRRKLANG" }
links { "irrKlang", "ikpMP3" } links { "irrKlang" }
includedirs { "../irrklang/include" } includedirs { "../irrklang/include" }
if IRRKLANG_PRO then if IRRKLANG_PRO then
defines { "IRRKLANG_STATIC" } links { "ikpMP3" }
end defines { "IRRKLANG_STATIC" }
libdirs { "../irrklang/lib/Win32-visualStudio" } end
end libdirs { "../irrklang/lib/Win32-visualStudio" }
links { "opengl32", "ws2_32", "winmm", "gdi32", "kernel32", "user32", "imm32" } end
configuration {"windows", "not vs*"} links { "opengl32", "ws2_32", "winmm", "gdi32", "kernel32", "user32", "imm32" }
includedirs { "/mingw/include/irrlicht", "/mingw/include/freetype2" } configuration {"windows", "not vs*"}
configuration "not vs*" includedirs { "/mingw/include/irrlicht", "/mingw/include/freetype2" }
buildoptions { "-std=gnu++0x", "-fno-rtti" } configuration "not vs*"
configuration "not windows" buildoptions { "-std=gnu++0x", "-fno-rtti" }
includedirs { "/usr/include/lua", "/usr/include/lua5.3", "/usr/include/lua/5.3", "/usr/include/irrlicht", "/usr/include/freetype2" } configuration "not windows"
excludes { "COSOperator.*" } includedirs { "/usr/include/lua", "/usr/include/lua5.3", "/usr/include/lua/5.3", "/usr/include/irrlicht", "/usr/include/freetype2" }
links { "event_pthreads", "GL", "dl", "pthread" } excludes { "COSOperator.*" }
links { "event_pthreads", "GL", "dl", "pthread" }
if USE_IRRKLANG then
defines { "YGOPRO_USE_IRRKLANG" }
links { "irrKlang" }
includedirs { "/usr/include/irrKlang" }
if os.getenv("USE_IRRKLANG")=="mac" then
libdirs { "../irrklang/lib/Win32-visualStudio" }
end
end
...@@ -2,4 +2,4 @@ project "ikpMP3" ...@@ -2,4 +2,4 @@ project "ikpMP3"
kind "StaticLib" kind "StaticLib"
files { "*.cpp", "*.h", "decoder/*.c", "decoder/*.h" } files { "*.cpp", "*.h", "decoder/*.c", "decoder/*.h" }
includedirs { "../irrklang/include" } includedirs { "../irrklang/include" }
solution "ygo" solution "ygo"
location "build" location "build"
language "C++" language "C++"
objdir "obj" objdir "obj"
startproject "ygopro" startproject "ygopro"
configurations { "Debug", "Release" } configurations { "Debug", "Release" }
defines { "LUA_COMPAT_5_2" } defines { "LUA_COMPAT_5_2" }
configuration "windows" configuration "windows"
defines { "WIN32", "_WIN32" } defines { "WIN32", "_WIN32" }
configuration "bsd" configuration "bsd"
defines { "LUA_USE_POSIX" } defines { "LUA_USE_POSIX" }
includedirs { "/usr/local/include" } includedirs { "/usr/local/include" }
libdirs { "/usr/local/lib" } libdirs { "/usr/local/lib" }
configuration "macosx" configuration "macosx"
defines { "LUA_USE_MACOSX" } defines { "LUA_USE_MACOSX" }
includedirs { "/usr/local/include/*" } includedirs { "/usr/local/include/*" }
libdirs { "/usr/local/lib", "/usr/X11/lib" } libdirs { "/usr/local/lib", "/usr/X11/lib" }
buildoptions { "-stdlib=libc++" } buildoptions { "-stdlib=libc++" }
links {"OpenGL.framework","Cocoa.framework","IOKit.framework"} links {"OpenGL.framework","Cocoa.framework","IOKit.framework"}
configuration "linux" configuration "linux"
defines { "LUA_USE_LINUX" } defines { "LUA_USE_LINUX" }
configuration "vs*" configuration "vs*"
flags "EnableSSE2" flags "EnableSSE2"
buildoptions { "-wd4996" } buildoptions { "-wd4996" }
defines { "_CRT_SECURE_NO_WARNINGS" } defines { "_CRT_SECURE_NO_WARNINGS" }
configuration "not vs*" configuration "not vs*"
buildoptions { "-fno-strict-aliasing", "-Wno-multichar" } buildoptions { "-fno-strict-aliasing", "-Wno-multichar" }
configuration {"not vs*", "windows"} configuration {"not vs*", "windows"}
buildoptions { "-static-libgcc" } buildoptions { "-static-libgcc" }
configuration "Debug" configuration "Debug"
flags "Symbols" flags "Symbols"
defines "_DEBUG" defines "_DEBUG"
targetdir "bin/debug" targetdir "bin/debug"
configuration { "Release", "not vs*" } configuration { "Release", "not vs*" }
flags "Symbols" flags "Symbols"
defines "NDEBUG" defines "NDEBUG"
buildoptions "-march=native" buildoptions "-march=native"
configuration { "Debug", "vs*" } configuration { "Debug", "vs*" }
defines { "_ITERATOR_DEBUG_LEVEL=0" } defines { "_ITERATOR_DEBUG_LEVEL=0" }
configuration "Release" configuration "Release"
--flags { "OptimizeSpeed" } --flags { "OptimizeSpeed" }
targetdir "bin/release" targetdir "bin/release"
include "ocgcore" include "ocgcore"
include "gframe" include "gframe"
if os.is("windows") then if os.is("windows") then
include "event" include "event"
include "freetype" include "freetype"
include "irrlicht" include "irrlicht"
include "lua" include "lua"
include "sqlite3" include "sqlite3"
end end
solution "ygo" solution "ygo"
location "build" location "build"
language "C++" language "C++"
objdir "obj" objdir "obj"
if os.ishost("windows") or os.getenv("USE_IRRKLANG") then if os.ishost("windows") or os.getenv("USE_IRRKLANG") then
USE_IRRKLANG = true USE_IRRKLANG = true
if os.getenv("irrklang_pro") then if os.getenv("irrklang_pro") then
IRRKLANG_PRO = true IRRKLANG_PRO = true
end end
end end
startproject "ygopro" startproject "ygopro"
configurations { "Debug", "Release" } configurations { "Debug", "Release" }
defines { "LUA_COMPAT_5_2" } defines { "LUA_COMPAT_5_2" }
configuration "windows" configuration "windows"
defines { "WIN32", "_WIN32", "WINVER=0x0501" } defines { "WIN32", "_WIN32", "WINVER=0x0501" }
libdirs { "$(DXSDK_DIR)Lib/x86" } libdirs { "$(DXSDK_DIR)Lib/x86" }
entrypoint "mainCRTStartup" entrypoint "mainCRTStartup"
toolset "v140_xp" toolset "v140_xp"
startproject "ygopro" startproject "ygopro"
configuration "bsd" configuration "bsd"
defines { "LUA_USE_POSIX" } defines { "LUA_USE_POSIX" }
includedirs { "/usr/local/include" } includedirs { "/usr/local/include" }
libdirs { "/usr/local/lib" } libdirs { "/usr/local/lib" }
configuration "macosx" configuration "macosx"
defines { "LUA_USE_MACOSX" } defines { "LUA_USE_MACOSX" }
includedirs { "/usr/local/include", "/usr/local/include/*" } includedirs { "/usr/local/include", "/usr/local/include/*" }
libdirs { "/usr/local/lib", "/usr/X11/lib" } libdirs { "/usr/local/lib", "/usr/X11/lib" }
buildoptions { "-stdlib=libc++" } buildoptions { "-stdlib=libc++" }
links { "OpenGL.framework", "Cocoa.framework", "IOKit.framework" } links { "OpenGL.framework", "Cocoa.framework", "IOKit.framework" }
configuration "linux" configuration "linux"
defines { "LUA_USE_LINUX" } defines { "LUA_USE_LINUX" }
configuration "Release" configuration "Release"
optimize "Speed" optimize "Speed"
targetdir "bin/release" targetdir "bin/release"
configuration "Debug" configuration "Debug"
symbols "On" symbols "On"
defines "_DEBUG" defines "_DEBUG"
targetdir "bin/debug" targetdir "bin/debug"
configuration { "Release", "vs*" } configuration { "Release", "vs*" }
flags { "StaticRuntime", "LinkTimeOptimization" } flags { "StaticRuntime", "LinkTimeOptimization" }
disablewarnings { "4244", "4267", "4838", "4577", "4819", "4018", "4996", "4477" } disablewarnings { "4244", "4267", "4838", "4577", "4819", "4018", "4996", "4477" }
configuration { "Release", "not vs*" } configuration { "Release", "not vs*" }
symbols "On" symbols "On"
defines "NDEBUG" defines "NDEBUG"
buildoptions "-march=native" buildoptions "-march=native"
configuration { "Debug", "vs*" } configuration { "Debug", "vs*" }
defines { "_ITERATOR_DEBUG_LEVEL=0" } defines { "_ITERATOR_DEBUG_LEVEL=0" }
disablewarnings { "4819" } disablewarnings { "4819" }
configuration "vs*" configuration "vs*"
vectorextensions "SSE2" vectorextensions "SSE2"
defines { "_CRT_SECURE_NO_WARNINGS" } defines { "_CRT_SECURE_NO_WARNINGS" }
configuration "not vs*" configuration "not vs*"
buildoptions { "-fno-strict-aliasing", "-Wno-multichar" } buildoptions { "-fno-strict-aliasing", "-Wno-multichar" }
configuration {"not vs*", "windows"} configuration {"not vs*", "windows"}
buildoptions { "-static-libgcc" } buildoptions { "-static-libgcc" }
include "ocgcore" include "ocgcore"
include "gframe" include "gframe"
if os.ishost("windows") then if os.ishost("windows") then
include "event" include "event"
include "freetype" include "freetype"
include "irrlicht" include "irrlicht"
include "lua" include "lua"
include "sqlite3" include "sqlite3"
if IRRKLANG_PRO then if IRRKLANG_PRO then
include "ikpmp3" include "ikpmp3"
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