Commit cf0708cf authored by mercury233's avatar mercury233

wtf fix 2

parent 0c3255f1
...@@ -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,7 +2,6 @@ solution "ygo" ...@@ -2,7 +2,6 @@ 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
...@@ -12,26 +11,21 @@ solution "ygo" ...@@ -12,26 +11,21 @@ solution "ygo"
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_ALL") or os.ishost("macosx") then if os.getenv("YGOPRO_BUILD_IRRLICHT") then
BUILD_ALL=true BUILD_IRRLICHT=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 BUILD_ALL then
BUILD_LUA=true
BUILD_SQLITE=true
BUILD_FREETYPE=true
end
if os.ishost("macosx") then if os.ishost("macosx") then
if os.getenv("YGOPRO_TARGET_ARM") then if os.getenv("YGOPRO_TARGET_ARM") then
MAC_ARM=true MAC_ARM=true
end end
end end
else if os.ishost("windows") then
BUILD_LUA=true -- tell ocgcore to include ../lua directory BUILD_EVENT=true -- only on windows for now
end end
if (os.ishost("windows") or os.getenv("USE_IRRKLANG")) and not os.getenv("NO_IRRKLANG") then 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
include "lua"
include "event"
include "freetype"
include "sqlite3"
else
if BUILD_LUA then if BUILD_LUA then
include "lua" include "lua"
end end
if BUILD_SQLITE then if BUILD_EVENT then
include "sqlite3" include "event"
end end
if BUILD_FREETYPE then if BUILD_FREETYPE then
include "freetype" include "freetype"
end end
end if BUILD_IRRLICHT then
if not os.ishost("macosx") 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