Commit 9014e097 authored by nanahira's avatar nanahira

still headache

parent 039f7500
...@@ -57,7 +57,7 @@ mat_macos: ...@@ -57,7 +57,7 @@ mat_macos:
- linux - linux
script: script:
- apt update; apt -y install wget tar - apt update; apt -y install wget tar
- wget -O - https://cdn01.moecube.com/ygopro-build-materials/premake-5.0.0-alpha12-macosx.tar.gz | tar zfx - - wget -O - https://cdn01.moecube.com/ygopro-build-materials/premake-5.0.0-alpha14-macosx.tar.gz | tar zfx -
- mkdir irrlicht - mkdir irrlicht
- cd irrlicht - cd irrlicht
- wget -O - https://cdn01.moecube.com/ygopro-build-materials/irrlicht-mycard-mac.tar.gz | tar zfx - - wget -O - https://cdn01.moecube.com/ygopro-build-materials/irrlicht-mycard-mac.tar.gz | tar zfx -
...@@ -166,12 +166,13 @@ exec_macos: ...@@ -166,12 +166,13 @@ exec_macos:
script: script:
- git submodule update --init - git submodule update --init
- brew install freetype libevent sqlite dylibbundler - brew install freetype libevent sqlite dylibbundler
- ./premake5 gmake - sudo cp -rf irrklang/bin/macosx-gcc/libirrklang.dylib /usr/local/lib/
- ./premake5 gmake --cc=clang
- cd build - cd build
- make config=release -j4 - make config=release -j4
- cd .. - cd ..
- mkdir -p ygopro.app/Contents/MacOS; - mkdir -p ygopro.app/Contents/MacOS;
- mv bin/release/ygopro ygopro.app/Contents/MacOS; - mv bin/release/ygopro.app ygopro.app/Contents/MacOS/ygopro;
- dylibbundler -x ygopro.app/Contents/MacOS/ygopro -b -d ygopro.app/Contents/Frameworks/ -p @executable_path/../Frameworks/ -cd; - dylibbundler -x ygopro.app/Contents/MacOS/ygopro -b -d ygopro.app/Contents/Frameworks/ -p @executable_path/../Frameworks/ -cd;
- strip ygopro.app/Contents/MacOS/ygopro; mkdir ygopro.app/Contents/Resources; - strip ygopro.app/Contents/MacOS/ygopro; mkdir ygopro.app/Contents/Resources;
- mv premake/gframe/ygopro.icns ygopro.app/Contents/Resources/Icon.icns; - mv premake/gframe/ygopro.icns ygopro.app/Contents/Resources/Icon.icns;
......
...@@ -30,12 +30,12 @@ project "ygopro" ...@@ -30,12 +30,12 @@ project "ygopro"
end end
links { "opengl32", "ws2_32", "winmm", "gdi32", "kernel32", "user32", "imm32" } links { "opengl32", "ws2_32", "winmm", "gdi32", "kernel32", "user32", "imm32" }
if IRRKLANG_PRO then if IRRKLANG_PRO then
configuration { "windows", "not vs2017" } configuration { "windows", "not vs2017", "not vs2019" }
libdirs { "../irrklang/lib/Win32-visualStudio" } libdirs { "../irrklang/lib/Win32-visualStudio" }
configuration { "windows", "vs2017" } configuration { "windows", "vs2017" }
libdirs { "../irrklang/lib/Win32-vs2017" } libdirs { "../irrklang/lib/Win32-vs2017" }
configuration { "windows", "vs2019" } configuration { "windows", "vs2019" }
libdirs { "../irrklang/lib/Win32-vs2017" } libdirs { "../irrklang/lib/Win32-vs2019" }
end end
configuration {"windows", "not vs*"} configuration {"windows", "not vs*"}
includedirs { "/mingw/include/irrlicht", "/mingw/include/freetype2" } includedirs { "/mingw/include/irrlicht", "/mingw/include/freetype2" }
...@@ -44,7 +44,9 @@ project "ygopro" ...@@ -44,7 +44,9 @@ project "ygopro"
configuration "not windows" configuration "not windows"
includedirs { "/usr/include/irrlicht", "/usr/include/freetype2" } includedirs { "/usr/include/irrlicht", "/usr/include/freetype2" }
excludes { "COSOperator.*" } excludes { "COSOperator.*" }
links { "event_pthreads", "GL", "dl", "pthread" } links { "event_pthreads", "dl", "pthread" }
configuration { "not windows", "not macosx" }
links "GL"
configuration "linux" configuration "linux"
includedirs { "../irrlicht_linux/include" } includedirs { "../irrlicht_linux/include" }
links { "X11", "Xxf86vm", "lua5.3-c++" } links { "X11", "Xxf86vm", "lua5.3-c++" }
......
...@@ -32,9 +32,9 @@ solution "ygo" ...@@ -32,9 +32,9 @@ solution "ygo"
libdirs { "/usr/local/lib" } libdirs { "/usr/local/lib" }
configuration "macosx" configuration "macosx"
defines { "LUA_USE_MACOSX", "DBL_MAX_10_EXP=+308", "DBL_MANT_DIG=53"} defines { "LUA_USE_MACOSX", "DBL_MAX_10_EXP=+308", "DBL_MANT_DIG=53", "GL_SILENCE_DEPRECATION" }
includedirs { "/usr/local/include", "/usr/local/include/*" } includedirs { "/usr/local/include/event2", "/usr/local/include/freetype2" }
libdirs { "/usr/local/lib", "/usr/X11/lib" } libdirs { "/usr/local/lib" }
buildoptions { "-stdlib=libc++" } buildoptions { "-stdlib=libc++" }
links { "OpenGL.framework", "Cocoa.framework", "IOKit.framework" } links { "OpenGL.framework", "Cocoa.framework", "IOKit.framework" }
......
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