Commit 06f75a0c authored by nanahira's avatar nanahira

Merge branch 'master' into server

parents 925679ed 0db1bb80
Pipeline #41433 canceled with stages
in 5 seconds
...@@ -166,9 +166,10 @@ end ...@@ -166,9 +166,10 @@ end
filter "system:linux" filter "system:linux"
links { "dl", "pthread" } links { "dl", "pthread" }
linkoptions { "-static-libstdc++", "-static-libgcc" } if USE_DYNAMIC then
if OCGCORE_DYNAMIC then
linkoptions { "-Wl,-rpath=./" } linkoptions { "-Wl,-rpath=./" }
else
linkoptions { "-static-libstdc++", "-static-libgcc" }
end end
if not SERVER_MODE then if not SERVER_MODE then
links { "GL", "X11", "Xxf86vm" } links { "GL", "X11", "Xxf86vm" }
......
Subproject commit 6c6805a4d97dcebf6f7ae02fe7bdea96782569b9 Subproject commit 8dc2821cc2e4890a8eb79837ca0db38e8ed92761
...@@ -9,14 +9,6 @@ project "lua" ...@@ -9,14 +9,6 @@ project "lua"
removefiles { "src/linit.c" } removefiles { "src/linit.c" }
end end
if SERVER_PRO3_SUPPORT then
defines { "LUA_USE_LONGJMP" }
end
if SERVER_PRO3_SUPPORT or OCGCORE_DYNAMIC then
defines { "LUA_USE_LONGJMP" }
end
filter "configurations:Debug" filter "configurations:Debug"
defines { "LUA_USE_APICHECK" } defines { "LUA_USE_APICHECK" }
...@@ -28,3 +20,6 @@ project "lua" ...@@ -28,3 +20,6 @@ project "lua"
filter "system:linux" filter "system:linux"
defines { "LUA_USE_LINUX" } defines { "LUA_USE_LINUX" }
if USE_DYNAMIC then
pic "On"
end
...@@ -27,6 +27,7 @@ IRRKLANG_PRO = false ...@@ -27,6 +27,7 @@ IRRKLANG_PRO = false
IRRKLANG_PRO_BUILD_IKPMP3 = false IRRKLANG_PRO_BUILD_IKPMP3 = false
-- ocgcore dynamic -- ocgcore dynamic
OCGCORE_DYNAMIC = false OCGCORE_DYNAMIC = false
USE_DYNAMIC = false
SERVER_MODE = true SERVER_MODE = true
SERVER_ZIP_SUPPORT = false SERVER_ZIP_SUPPORT = false
...@@ -408,6 +409,14 @@ if GetParam("ocgcore-dynamic") then ...@@ -408,6 +409,14 @@ if GetParam("ocgcore-dynamic") then
OCGCORE_DYNAMIC = true OCGCORE_DYNAMIC = true
end end
if OCGCORE_DYNAMIC then
USE_DYNAMIC = true
end
if SERVER_PRO3_SUPPORT then
USE_DYNAMIC = true
end
workspace "YGOPro" workspace "YGOPro"
location "build" location "build"
language "C++" language "C++"
...@@ -423,6 +432,10 @@ workspace "YGOPro" ...@@ -423,6 +432,10 @@ workspace "YGOPro"
ApplyBoolean(boolOption) ApplyBoolean(boolOption)
end end
if SERVER_PRO3_SUPPORT then
defines { "LUA_USE_LONGJMP" }
end
filter "system:windows" filter "system:windows"
systemversion "latest" systemversion "latest"
startproject "YGOPro" startproject "YGOPro"
......
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