Commit a671b0de authored by mercury233's avatar mercury233

update merge

parent 618b60f1
Pipeline #37128 failed with stages
in 5 minutes and 8 seconds
...@@ -77,7 +77,7 @@ end ...@@ -77,7 +77,7 @@ end
libdirs { SQLITE_LIB_DIR } libdirs { SQLITE_LIB_DIR }
end end
if USE_AUDIO then if USE_AUDIO and not SERVER_MODE then
defines { "YGOPRO_USE_AUDIO" } defines { "YGOPRO_USE_AUDIO" }
if AUDIO_LIB == "miniaudio" then if AUDIO_LIB == "miniaudio" then
defines { "YGOPRO_USE_MINIAUDIO" } defines { "YGOPRO_USE_MINIAUDIO" }
......
...@@ -18,7 +18,7 @@ BUILD_SQLITE = os.istarget("windows") ...@@ -18,7 +18,7 @@ BUILD_SQLITE = os.istarget("windows")
BUILD_IRRLICHT = true -- modified Irrlicht is required, can't use the official one BUILD_IRRLICHT = true -- modified Irrlicht is required, can't use the official one
USE_DXSDK = true USE_DXSDK = true
USE_AUDIO = false USE_AUDIO = true
AUDIO_LIB = "miniaudio" -- can be "miniaudio" or "irrklang" AUDIO_LIB = "miniaudio" -- can be "miniaudio" or "irrklang"
-- BUILD_MINIAUDIO is always true -- BUILD_MINIAUDIO is always true
MINIAUDIO_SUPPORT_OPUS_VORBIS = true MINIAUDIO_SUPPORT_OPUS_VORBIS = true
...@@ -145,6 +145,20 @@ function ApplyNumber(param) ...@@ -145,6 +145,20 @@ function ApplyNumber(param)
end end
end end
if GetParam("server-mode") then
SERVER_MODE = true
end
if GetParam("server-zip-support") then
SERVER_ZIP_SUPPORT = true
end
if GetParam("server-pro2-support") then
SERVER_PRO2_SUPPORT = true
SERVER_ZIP_SUPPORT = true
end
if GetParam("server-tag-surrender-confirm") then
SERVER_TAG_SURRENDER_CONFIRM = true
end
if GetParam("build-lua") then if GetParam("build-lua") then
BUILD_LUA = true BUILD_LUA = true
elseif GetParam("no-build-lua") then elseif GetParam("no-build-lua") then
...@@ -233,7 +247,7 @@ elseif GetParam("use-irrklang") then ...@@ -233,7 +247,7 @@ elseif GetParam("use-irrklang") then
AUDIO_LIB = "irrklang" AUDIO_LIB = "irrklang"
end end
if USE_AUDIO then if USE_AUDIO and not SERVER_MODE then
AUDIO_LIB = GetParam("audio-lib") or AUDIO_LIB AUDIO_LIB = GetParam("audio-lib") or AUDIO_LIB
if AUDIO_LIB == "miniaudio" then if AUDIO_LIB == "miniaudio" then
if GetParam("miniaudio-support-opus-vorbis") then if GetParam("miniaudio-support-opus-vorbis") then
...@@ -310,19 +324,6 @@ if os.istarget("macosx") then ...@@ -310,19 +324,6 @@ if os.istarget("macosx") then
end end
end end
end end
if GetParam("server-mode") then
SERVER_MODE = true
end
if GetParam("server-zip-support") then
SERVER_ZIP_SUPPORT = true
end
if GetParam("server-pro2-support") then
SERVER_PRO2_SUPPORT = true
SERVER_ZIP_SUPPORT = true
end
if GetParam("server-tag-surrender-confirm") then
SERVER_TAG_SURRENDER_CONFIRM = true
end
workspace "YGOPro" workspace "YGOPro"
location "build" location "build"
......
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