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
List
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
YGOPRO-520DIY
ygopro
Commits
21e4b837
Commit
21e4b837
authored
Jul 16, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into server
parents
4f1cc31d
ef632ca4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
26 deletions
+35
-26
.gitlab-ci.yml
.gitlab-ci.yml
+2
-4
gframe/premake4.lua
gframe/premake4.lua
+9
-13
ocgcore
ocgcore
+1
-1
premake5.lua
premake5.lua
+22
-7
script
script
+1
-1
No files found.
.gitlab-ci.yml
View file @
21e4b837
...
@@ -41,7 +41,7 @@ mat_linux:
...
@@ -41,7 +41,7 @@ mat_linux:
-
wget -O - https://cdn01.moecube.com/ygopro-build-materials/premake-5.0.0-alpha14-linux.tar.gz | tar zfx -
-
wget -O - https://cdn01.moecube.com/ygopro-build-materials/premake-5.0.0-alpha14-linux.tar.gz | tar zfx -
-
wget -O - https://cdn01.moecube.com/ygopro-build-materials/libevent-2.0.22-stable.tar.gz | tar zfx -
-
wget -O - https://cdn01.moecube.com/ygopro-build-materials/libevent-2.0.22-stable.tar.gz | tar zfx -
-
cd libevent-2.0.22-stable
-
cd libevent-2.0.22-stable
-
./configure --prefix=$PWD/libevent-stable --disable-openssl
-
./configure --prefix=$PWD/libevent-stable --disable-openssl
--enable-static=yes --enable-shared=no
-
make -j$(nproc)
-
make -j$(nproc)
-
make install
-
make install
-
cd ..
-
cd ..
...
@@ -99,8 +99,6 @@ exec_linux:
...
@@ -99,8 +99,6 @@ exec_linux:
-
linux
-
linux
variables
:
variables
:
YGOPRO_BUILD_ALL
:
'
1'
YGOPRO_BUILD_ALL
:
'
1'
YGOPRO_LINUX_ALL_STATIC
:
'
1'
YGOPRO_LINUX_ALL_STATIC_LIB_PATH
:
'
/usr/lib/x86_64-linux-gnu/'
dependencies
:
dependencies
:
-
mat_common
-
mat_common
#- mat_irrklang
#- mat_irrklang
...
@@ -112,7 +110,7 @@ exec_linux:
...
@@ -112,7 +110,7 @@ exec_linux:
script
:
script
:
-
apt update; apt -y install git build-essential
-
apt update; apt -y install git build-essential
-
git submodule update --init
-
git submodule update --init
-
YGOPRO_LINUX_ALL_STATIC_LIBEVENT
_PATH=$PWD/libevent-stable ./premake5 gmake
-
env YGOPRO_LIBEVENT_STATIC
_PATH=$PWD/libevent-stable ./premake5 gmake
-
cd build
-
cd build
-
make config=release -j$(nproc)
-
make config=release -j$(nproc)
-
cd ..
-
cd ..
...
...
gframe/premake4.lua
View file @
21e4b837
...
@@ -26,7 +26,7 @@ project "ygopro"
...
@@ -26,7 +26,7 @@ project "ygopro"
"single_duel.cpp"
,
"single_duel.h"
,
"single_duel.cpp"
,
"single_duel.h"
,
"tag_duel.cpp"
,
"tag_duel.h"
}
"tag_duel.cpp"
,
"tag_duel.h"
}
includedirs
{
"../ocgcore"
}
includedirs
{
"../ocgcore"
}
links
{
"ocgcore"
,
"clzma"
,
"sqlite3"
}
links
{
"ocgcore"
,
"clzma"
,
"sqlite3"
,
"event"
}
configuration
"windows"
configuration
"windows"
files
"ygopro.rc"
files
"ygopro.rc"
...
@@ -36,9 +36,11 @@ project "ygopro"
...
@@ -36,9 +36,11 @@ project "ygopro"
buildoptions
{
"-std=c++14"
,
"-fno-rtti"
}
buildoptions
{
"-std=c++14"
,
"-fno-rtti"
}
configuration
"not windows"
configuration
"not windows"
links
{
"dl"
,
"pthread"
}
links
{
"dl"
,
"pthread"
}
if
not
LINUX_ALL_STATIC
then
if
LIBEVENT_ROOT
then
links
{
"event_pthreads"
}
includedirs
{
LIBEVENT_ROOT
..
"/include"
}
libdirs
{
LIBEVENT_ROOT
..
"/lib/"
}
end
end
links
{
"event_pthreads"
}
if
BUILD_SQLITE
then
if
BUILD_SQLITE
then
includedirs
{
"../sqlite3"
}
includedirs
{
"../sqlite3"
}
end
end
...
@@ -47,15 +49,9 @@ project "ygopro"
...
@@ -47,15 +49,9 @@ project "ygopro"
else
else
links
{
"lua5.3-c++"
}
links
{
"lua5.3-c++"
}
end
end
if
LINUX_ALL_STATIC
then
local
libeventRootPrefix
=
LIB_ROOT
if
LIBEVENT_ROOT
then
includedirs
{
LIBEVENT_ROOT
..
"/include"
}
libeventRootPrefix
=
LIBEVENT_ROOT
..
"/lib/"
end
linkoptions
{
libeventRootPrefix
..
"libevent.a"
,
libeventRootPrefix
..
"libevent_pthreads.a"
}
else
links
{
"event"
}
end
configuration
"linux"
configuration
"linux"
linkoptions
{
"-static-libstdc++"
,
"-static-libgcc"
,
"-Wl,-rpath=./lib/"
}
linkoptions
{
"-static-libstdc++"
,
"-static-libgcc"
,
"-Wl,-rpath=./lib/"
}
configuration
"macosx"
if
MAC_ARM
then
buildoptions
{
"--target=arm64-apple-macos11"
}
end
ocgcore
@
62a5cb65
Subproject commit
4fce02f2c2889645af14f62f198322f18d19f17a
Subproject commit
62a5cb65ea7c392f00c2515d023d04a5229907a4
premake5.lua
View file @
21e4b837
...
@@ -18,17 +18,25 @@ solution "ygo"
...
@@ -18,17 +18,25 @@ solution "ygo"
if
os.getenv
(
"YGOPRO_BUILD_ALL"
)
or
os
.
ishost
(
"macosx"
)
then
if
os.getenv
(
"YGOPRO_BUILD_ALL"
)
or
os
.
ishost
(
"macosx"
)
then
BUILD_ALL
=
true
BUILD_ALL
=
true
end
end
if
os
.
ishost
(
"linux"
)
and
os.getenv
(
"YGOPRO_LINUX_ALL_STATIC"
)
then
if
os.getenv
(
"YGOPRO_LIBEVENT_STATIC_PATH"
)
then
BUILD_ALL
=
true
LIBEVENT_ROOT
=
os.getenv
(
"YGOPRO_LIBEVENT_STATIC_PATH"
)
LINUX_ALL_STATIC
=
true
LIB_ROOT
=
os.getenv
(
"YGOPRO_LINUX_ALL_STATIC_LIB_PATH"
)
or
"/usr/lib/x86_64-linux-gnu/"
LIBEVENT_ROOT
=
os.getenv
(
"YGOPRO_LINUX_ALL_STATIC_LIBEVENT_PATH"
)
end
end
if
BUILD_ALL
then
if
BUILD_ALL
then
BUILD_LUA
=
true
BUILD_LUA
=
true
BUILD_SQLITE
=
true
BUILD_SQLITE
=
true
BUILD_FREETYPE
=
true
BUILD_FREETYPE
=
true
end
end
if
os
.
ishost
(
"macosx"
)
then
if
os.getenv
(
"YGOPRO_TARGET_ARM"
)
then
MAC_ARM
=
true
end
end
end
if
(
os
.
ishost
(
"windows"
)
or
os.getenv
(
"USE_IRRKLANG"
))
and
not
os.getenv
(
"NO_IRRKLANG"
)
then
USE_IRRKLANG
=
true
if
os.getenv
(
"irrklang_pro"
)
then
IRRKLANG_PRO
=
true
end
end
end
configurations
{
"Release"
,
"Debug"
}
configurations
{
"Release"
,
"Debug"
}
...
@@ -59,9 +67,14 @@ end
...
@@ -59,9 +67,14 @@ end
configuration
"macosx"
configuration
"macosx"
defines
{
"LUA_USE_MACOSX"
,
"DBL_MAX_10_EXP=+308"
,
"DBL_MANT_DIG=53"
,
"GL_SILENCE_DEPRECATION"
}
defines
{
"LUA_USE_MACOSX"
,
"DBL_MAX_10_EXP=+308"
,
"DBL_MANT_DIG=53"
,
"GL_SILENCE_DEPRECATION"
}
includedirs
{
"/usr/local/include/event2"
,
}
if
not
LIBEVENT_ROOT
then
includedirs
{
"/usr/local/include/event2"
}
end
libdirs
{
"/usr/local/lib"
}
libdirs
{
"/usr/local/lib"
}
buildoptions
{
"-stdlib=libc++"
}
buildoptions
{
"-stdlib=libc++"
}
if
MAC_ARM
then
buildoptions
{
"--target=arm64-apple-macos11"
}
end
links
{
"OpenGL.framework"
,
"Cocoa.framework"
,
"IOKit.framework"
}
links
{
"OpenGL.framework"
,
"Cocoa.framework"
,
"IOKit.framework"
}
configuration
"linux"
configuration
"linux"
...
@@ -85,7 +98,9 @@ end
...
@@ -85,7 +98,9 @@ end
configuration
{
"Release"
,
"not vs*"
}
configuration
{
"Release"
,
"not vs*"
}
symbols
"On"
symbols
"On"
defines
"NDEBUG"
defines
"NDEBUG"
buildoptions
"-march=native"
if
not
MAC_ARM
then
buildoptions
"-march=native"
end
configuration
{
"Debug"
,
"vs*"
}
configuration
{
"Debug"
,
"vs*"
}
defines
{
"_ITERATOR_DEBUG_LEVEL=0"
}
defines
{
"_ITERATOR_DEBUG_LEVEL=0"
}
...
...
script
@
eae593f9
Subproject commit
baa705cbad1239663c55db63aa8cd69eccf4c65c
Subproject commit
eae593f91a9e1c71649ab8d7463ffc0da97b8abe
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