Commit e4e4eca1 authored by nanahira's avatar nanahira

add ocgcore-dynamic mode

parent 5162e245
Pipeline #41402 canceled with stages
in 16 seconds
......@@ -79,6 +79,9 @@ build
/premake4.exe
/premake5*
/premake5.exe
/*.so
/*.dll
/*.dylib
# others
*.log
......
Subproject commit 9efa33ab661bcc104ab260c4b94c220f6598aec3
Subproject commit 239f3c20066452fc9b425b9daa0db0db04a4940e
......@@ -25,6 +25,8 @@ MINIAUDIO_BUILD_OPUS_VORBIS = os.istarget("windows")
-- BUILD_IRRKLANG is impossible because irrKlang is not open source
IRRKLANG_PRO = false
IRRKLANG_PRO_BUILD_IKPMP3 = false
-- ocgcore dynamic
OCGCORE_DYNAMIC = false
-- Read settings from command line or environment variables
......@@ -85,6 +87,7 @@ newoption { trigger = 'build-ikpmp3', category = "YGOPro - irrklang - ikpmp3", d
newoption { trigger = "mac-arm", category = "YGOPro", description = "Compile for Apple Silicon Mac" }
newoption { trigger = "mac-intel", category = "YGOPro", description = "Compile for Intel Mac" }
newoption { trigger = "ocgcore-dynamic", category = "YGOPro - ocgcore", description = "Build ocgcore as dynamic library" }
-- koishipro specific
......@@ -356,18 +359,8 @@ if os.istarget("macosx") then
end
end
function getGlibcVersion()
local output = os.outputof("getconf GNU_LIBC_VERSION")
local major, minor, patch = output:match("glibc (%d+)%.(%d+)%.?(%d*)")
if major and minor then
major = tonumber(major)
minor = tonumber(minor)
patch = tonumber(patch) or 0
return (major << 16) | (minor << 8) | patch
end
return 0
if GetParam("ocgcore-dynamic") then
OCGCORE_DYNAMIC = true
end
workspace "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