Commit cf0708cf authored by mercury233's avatar mercury233

wtf fix 2

parent 0c3255f1
Pipeline #11592 failed with stages
in 2 minutes and 30 seconds
...@@ -141,8 +141,12 @@ exec_windows: ...@@ -141,8 +141,12 @@ exec_windows:
- mat_irrklang - mat_irrklang
- mat_windows - mat_windows
variables: variables:
YGOPRO_BUILD_LUA: '1'
YGOPRO_BUILD_SQLITE: '1'
YGOPRO_BUILD_FREETYPE: '1'
YGOPRO_BUILD_IRRLICHT: '1'
IRRKLANG_PRO: '1' IRRKLANG_PRO: '1'
USE_IRRKLANG: "1" USE_IRRKLANG: '1'
cache: cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG" key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths: paths:
...@@ -163,8 +167,11 @@ exec_linux: ...@@ -163,8 +167,11 @@ exec_linux:
tags: tags:
- linux - linux
variables: variables:
YGOPRO_BUILD_ALL: '1' YGOPRO_BUILD_LUA: '1'
USE_IRRKLANG: "1" YGOPRO_BUILD_SQLITE: '1'
YGOPRO_BUILD_FREETYPE: '1'
YGOPRO_BUILD_IRRLICHT: '1'
USE_IRRKLANG: '1'
dependencies: dependencies:
- mat_common - mat_common
- mat_irrklang - mat_irrklang
...@@ -200,7 +207,10 @@ exec_macos_platform_x86: ...@@ -200,7 +207,10 @@ exec_macos_platform_x86:
- mat_common - mat_common
- mat_macos_platform_x86 - mat_macos_platform_x86
variables: variables:
USE_IRRKLANG: "1" YGOPRO_BUILD_LUA: '1'
YGOPRO_BUILD_SQLITE: '1'
YGOPRO_BUILD_FREETYPE: '1'
USE_IRRKLANG: '1'
TARGET_PATFORM: x86 TARGET_PATFORM: x86
cache: cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG" key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
...@@ -223,6 +233,9 @@ exec_macos_platform_m1: ...@@ -223,6 +233,9 @@ exec_macos_platform_m1:
- mat_common - mat_common
- mat_macos_platform_m1 - mat_macos_platform_m1
variables: variables:
YGOPRO_BUILD_LUA: '1'
YGOPRO_BUILD_SQLITE: '1'
YGOPRO_BUILD_FREETYPE: '1'
TARGET_PATFORM: m1 TARGET_PATFORM: m1
YGOPRO_TARGET_ARM: '1' YGOPRO_TARGET_ARM: '1'
cache: cache:
......
...@@ -2,36 +2,30 @@ solution "ygo" ...@@ -2,36 +2,30 @@ solution "ygo"
location "build" location "build"
language "C++" language "C++"
objdir "obj" objdir "obj"
if not os.ishost("windows") then if os.getenv("YGOPRO_BUILD_LUA") then
if os.getenv("YGOPRO_BUILD_LUA") then BUILD_LUA=true
BUILD_LUA=true end
end if os.getenv("YGOPRO_BUILD_SQLITE") then
if os.getenv("YGOPRO_BUILD_SQLITE") then BUILD_SQLITE=true
BUILD_SQLITE=true end
end if os.getenv("YGOPRO_BUILD_FREETYPE") then
if os.getenv("YGOPRO_BUILD_FREETYPE") then BUILD_FREETYPE=true
BUILD_FREETYPE=true end
end if os.getenv("YGOPRO_BUILD_IRRLICHT") then
if os.getenv("YGOPRO_BUILD_ALL") or os.ishost("macosx") then BUILD_IRRLICHT=true
BUILD_ALL=true end
end if os.getenv("YGOPRO_LIBEVENT_STATIC_PATH") then
if os.getenv("YGOPRO_LIBEVENT_STATIC_PATH") then LIBEVENT_ROOT=os.getenv("YGOPRO_LIBEVENT_STATIC_PATH")
LIBEVENT_ROOT=os.getenv("YGOPRO_LIBEVENT_STATIC_PATH") end
end if os.ishost("macosx") then
if BUILD_ALL then if os.getenv("YGOPRO_TARGET_ARM") then
BUILD_LUA=true MAC_ARM=true
BUILD_SQLITE=true
BUILD_FREETYPE=true
end
if os.ishost("macosx") then
if os.getenv("YGOPRO_TARGET_ARM") then
MAC_ARM=true
end
end end
else
BUILD_LUA=true -- tell ocgcore to include ../lua directory
end end
if (os.ishost("windows") or os.getenv("USE_IRRKLANG")) and not os.getenv("NO_IRRKLANG") then if os.ishost("windows") then
BUILD_EVENT=true -- only on windows for now
end
if os.getenv("USE_IRRKLANG") and not os.getenv("NO_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
...@@ -122,25 +116,21 @@ end ...@@ -122,25 +116,21 @@ end
include "ocgcore" include "ocgcore"
include "gframe" include "gframe"
if os.ishost("windows") then if BUILD_LUA then
include "lua" include "lua"
end
if BUILD_EVENT then
include "event" include "event"
end
if BUILD_FREETYPE then
include "freetype" include "freetype"
include "sqlite3"
else
if BUILD_LUA then
include "lua"
end
if BUILD_SQLITE then
include "sqlite3"
end
if BUILD_FREETYPE then
include "freetype"
end
end end
if not os.ishost("macosx") then if BUILD_IRRLICHT then
include "irrlicht" include "irrlicht"
end end
if BUILD_SQLITE then
include "sqlite3"
end
if USE_IRRKLANG then if USE_IRRKLANG then
include "ikpmp3" include "ikpmp3"
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