Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro
Commits
cf0708cf
Commit
cf0708cf
authored
Apr 13, 2022
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wtf fix 2
parent
0c3255f1
Pipeline
#11592
failed with stages
in 2 minutes and 30 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
45 deletions
+48
-45
.gitlab-ci.yml
.gitlab-ci.yml
+17
-4
premake5.lua
premake5.lua
+31
-41
No files found.
.gitlab-ci.yml
View file @
cf0708cf
...
@@ -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
:
...
...
premake5.lua
View file @
cf0708cf
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment