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
wyykak
ygopro
Commits
7243c49f
Commit
7243c49f
authored
Jul 09, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'server' into full-view
parents
110ed911
ac10863f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
62 additions
and
30 deletions
+62
-30
.ci/pack-linux.sh
.ci/pack-linux.sh
+1
-1
.gitignore
.gitignore
+1
-0
.gitlab-ci.yml
.gitlab-ci.yml
+17
-13
gframe/premake4.lua
gframe/premake4.lua
+8
-5
gframe/spmemvfs/premake4.lua
gframe/spmemvfs/premake4.lua
+5
-0
premake/freetype/premake4.lua
premake/freetype/premake4.lua
+2
-0
premake5.lua
premake5.lua
+28
-11
No files found.
.ci/pack-linux.sh
View file @
7243c49f
...
@@ -6,4 +6,4 @@ set -o errexit
...
@@ -6,4 +6,4 @@ set -o errexit
apt update
&&
apt
-y
install tar
git
apt update
&&
apt
-y
install tar
git
git submodule update
--init
git submodule update
--init
mkdir
dist replay
mkdir
dist replay
tar
-zcf
dist/KoishiPro-
$CI_COMMIT_REF_NAME
-linux-
$TARGET_LOCALE
.tar.gz
--exclude
=
'.git*'
ygopro LICENSE README.md lib
IrrKlang.so
lflist.conf strings.conf system.conf cards.cdb script textures deck single pics replay sound windbot bot bot.conf locales fonts
tar
-zcf
dist/KoishiPro-
$CI_COMMIT_REF_NAME
-linux-
$TARGET_LOCALE
.tar.gz
--exclude
=
'.git*'
ygopro LICENSE README.md lib lflist.conf strings.conf system.conf cards.cdb script textures deck single pics replay sound windbot bot bot.conf locales fonts
.gitignore
View file @
7243c49f
...
@@ -63,6 +63,7 @@ build
...
@@ -63,6 +63,7 @@ build
/update
/update
/update*
/update*
/locales
/locales
/lib
# ygopro main program
# ygopro main program
/ygopro
/ygopro
...
...
.gitlab-ci.yml
View file @
7243c49f
...
@@ -9,18 +9,27 @@ variables:
...
@@ -9,18 +9,27 @@ variables:
GIT_DEPTH
:
"
1"
GIT_DEPTH
:
"
1"
#USE_IRRKLANG: "1"
#USE_IRRKLANG: "1"
mat_
lua
:
mat_
common
:
stage
:
prepare
stage
:
prepare
tags
:
tags
:
-
linux
-
linux
script
:
script
:
-
apt update; apt -y install wget tar
# lua
-
wget -O - https://cdn01.moecube.com/ygopro-build-materials/lua-5.3.5.tar.gz | tar zfx -
-
wget -O - https://cdn01.moecube.com/ygopro-build-materials/lua-5.3.5.tar.gz | tar zfx -
-
mv lua-5.3.5/src lua
-
mv lua-5.3.5/src lua
-
cp premake/lua/premake4.lua lua/;
# sqlite3
-
wget -O - https://cdn01.moecube.com/ygopro-build-materials/sqlite-autoconf-3360000.tar.gz | tar zfx -
-
mv sqlite-autoconf-3360000 sqlite3
# freetype
#- wget -O - https://cdn01.moecube.com/ygopro-build-materials/freetype-2.10.4.tar.gz | tar zfx -
#- mv freetype-2.10.4 freetype
# premake
-
cp -rf premake/* .;
artifacts
:
artifacts
:
paths
:
paths
:
-
lua
-
lua
#- freetype
-
sqlite3
mat_linux
:
mat_linux
:
stage
:
prepare
stage
:
prepare
...
@@ -55,22 +64,17 @@ mat_windows:
...
@@ -55,22 +64,17 @@ mat_windows:
# event
# event
-
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 -
-
mv libevent-2.0.22-stable event ; cp -rf event/WIN32-Code/* event/include
-
mv libevent-2.0.22-stable event ; cp -rf event/WIN32-Code/* event/include
# sqlite3
-
wget https://cdn01.moecube.com/ygopro-build-materials/sqlite-amalgamation-3310100.zip
-
7z x -y sqlite-amalgamation-3310100.zip
-
mv sqlite-amalgamation-3310100 sqlite3
artifacts
:
artifacts
:
paths
:
paths
:
-
premake5.exe
-
premake5.exe
-
event
-
event
-
sqlite3
exec_windows
:
exec_windows
:
stage
:
build
stage
:
build
tags
:
tags
:
-
vs
-
vs
dependencies
:
dependencies
:
-
mat_
lua
-
mat_
common
-
mat_windows
-
mat_windows
#variables:
#variables:
# irrklang_pro: '1'
# irrklang_pro: '1'
...
@@ -94,11 +98,11 @@ exec_linux:
...
@@ -94,11 +98,11 @@ exec_linux:
tags
:
tags
:
-
linux
-
linux
variables
:
variables
:
YGOPRO_BUILD_
LUA
:
'
1'
YGOPRO_BUILD_
ALL
:
'
1'
YGOPRO_LINUX_ALL_STATIC
:
'
1'
YGOPRO_LINUX_ALL_STATIC
:
'
1'
YGOPRO_LINUX_ALL_STATIC_LIB_PATH
:
'
/usr/lib/x86_64-linux-gnu/'
YGOPRO_LINUX_ALL_STATIC_LIB_PATH
:
'
/usr/lib/x86_64-linux-gnu/'
dependencies
:
dependencies
:
-
mat_
lua
-
mat_
common
#- mat_irrklang
#- mat_irrklang
-
mat_linux
-
mat_linux
cache
:
cache
:
...
@@ -106,9 +110,9 @@ exec_linux:
...
@@ -106,9 +110,9 @@ exec_linux:
-
bin/
-
bin/
-
obj/
-
obj/
script
:
script
:
-
apt update; apt -y install git build-essential lib
sqlite3
-dev
-
apt update; apt -y install git build-essential lib
event
-dev
-
git submodule update --init
-
git submodule update --init
-
env
YGOPRO_LINUX_ALL_STATIC_LIBEVENT_PATH=$PWD/libevent-stable ./premake5 gmake
-
YGOPRO_LINUX_ALL_STATIC_LIBEVENT_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 @
7243c49f
...
@@ -26,13 +26,12 @@ project "ygopro"
...
@@ -26,13 +26,12 @@ 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"
}
links
{
"ocgcore"
,
"clzma"
,
"sqlite3"
}
configuration
"windows"
configuration
"windows"
links
{
"sqlite3"
,
"event"
}
files
"ygopro.rc"
files
"ygopro.rc"
includedirs
{
"../event/include"
,
"../sqlite3"
}
includedirs
{
"../event/include"
,
"../sqlite3"
}
links
{
"ws2_32"
,
"lua"
}
links
{
"ws2_32"
,
"
event"
,
"
lua"
}
configuration
"not vs*"
configuration
"not vs*"
buildoptions
{
"-std=c++14"
,
"-fno-rtti"
}
buildoptions
{
"-std=c++14"
,
"-fno-rtti"
}
configuration
"not windows"
configuration
"not windows"
...
@@ -40,13 +39,15 @@ project "ygopro"
...
@@ -40,13 +39,15 @@ project "ygopro"
if
not
LINUX_ALL_STATIC
then
if
not
LINUX_ALL_STATIC
then
links
{
"event_pthreads"
}
links
{
"event_pthreads"
}
end
end
if
BUILD_SQLITE
then
includedirs
{
"../sqlite3"
}
end
if
BUILD_LUA
then
if
BUILD_LUA
then
links
{
"lua"
}
links
{
"lua"
}
else
else
links
{
"lua5.3-c++"
}
links
{
"lua5.3-c++"
}
end
end
if
LINUX_ALL_STATIC
then
if
LINUX_ALL_STATIC
then
linkoptions
{
LIB_ROOT
..
"libsqlite3.a"
,
"-static-libstdc++"
,
"-static-libgcc"
}
local
libeventRootPrefix
=
LIB_ROOT
local
libeventRootPrefix
=
LIB_ROOT
if
LIBEVENT_ROOT
then
if
LIBEVENT_ROOT
then
includedirs
{
LIBEVENT_ROOT
..
"/include"
}
includedirs
{
LIBEVENT_ROOT
..
"/include"
}
...
@@ -54,5 +55,7 @@ project "ygopro"
...
@@ -54,5 +55,7 @@ project "ygopro"
end
end
linkoptions
{
libeventRootPrefix
..
"libevent.a"
,
libeventRootPrefix
..
"libevent_pthreads.a"
}
linkoptions
{
libeventRootPrefix
..
"libevent.a"
,
libeventRootPrefix
..
"libevent_pthreads.a"
}
else
else
links
{
"
sqlite3"
,
"
event"
}
links
{
"event"
}
end
end
configuration
"linux"
linkoptions
{
"-static-libstdc++"
,
"-static-libgcc"
,
"-Wl,-rpath=./lib/"
}
gframe/spmemvfs/premake4.lua
View file @
7243c49f
...
@@ -4,3 +4,8 @@ project "cspmemvfs"
...
@@ -4,3 +4,8 @@ project "cspmemvfs"
configuration
"windows"
configuration
"windows"
includedirs
{
"../../sqlite3"
}
includedirs
{
"../../sqlite3"
}
configuration
"not windows"
if
BUILD_SQLITE
then
includedirs
{
"../../sqlite3"
}
end
premake/freetype/premake4.lua
View file @
7243c49f
...
@@ -45,3 +45,5 @@ project "freetype"
...
@@ -45,3 +45,5 @@ project "freetype"
configuration
"windows"
configuration
"windows"
files
{
"builds/windows/ftdebug.c"
}
files
{
"builds/windows/ftdebug.c"
}
configuration
"not windows"
files
{
"src/base/ftdebug.c"
}
premake5.lua
View file @
7243c49f
...
@@ -5,16 +5,30 @@ solution "ygo"
...
@@ -5,16 +5,30 @@ solution "ygo"
if
os
.
ishost
(
"macosx"
)
then
if
os
.
ishost
(
"macosx"
)
then
BUILD_LUA
=
true
BUILD_LUA
=
true
end
end
if
os
.
ishost
(
"linux
"
)
then
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_LINUX_ALL_STATIC"
)
then
if
os.getenv
(
"YGOPRO_BUILD_SQLITE"
)
then
BUILD_LUA
=
true
BUILD_SQLITE
=
true
end
if
os.getenv
(
"YGOPRO_BUILD_FREETYPE"
)
then
BUILD_FREETYPE
=
true
end
if
os.getenv
(
"YGOPRO_BUILD_ALL"
)
or
os
.
ishost
(
"macosx"
)
then
BUILD_ALL
=
true
end
if
os
.
ishost
(
"linux"
)
and
os.getenv
(
"YGOPRO_LINUX_ALL_STATIC"
)
then
BUILD_ALL
=
true
LINUX_ALL_STATIC
=
true
LINUX_ALL_STATIC
=
true
LIB_ROOT
=
os.getenv
(
"YGOPRO_LINUX_ALL_STATIC_LIB_PATH"
)
or
"/usr/lib/x86_64-linux-gnu/"
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"
)
LIBEVENT_ROOT
=
os.getenv
(
"YGOPRO_LINUX_ALL_STATIC_LIBEVENT_PATH"
)
end
end
if
BUILD_ALL
then
BUILD_LUA
=
true
BUILD_SQLITE
=
true
BUILD_FREETYPE
=
true
end
end
end
configurations
{
"Release"
,
"Debug"
}
configurations
{
"Release"
,
"Debug"
}
...
@@ -45,8 +59,8 @@ end
...
@@ -45,8 +59,8 @@ 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"
,
"/usr/local/include/freetype2"
,
"/usr/local/opt/sqlite3/include"
}
includedirs
{
"/usr/local/include/event2"
,
}
libdirs
{
"/usr/local/lib"
,
"/usr/local/opt/sqlite3/lib"
}
libdirs
{
"/usr/local/lib"
}
buildoptions
{
"-stdlib=libc++"
}
buildoptions
{
"-stdlib=libc++"
}
links
{
"OpenGL.framework"
,
"Cocoa.framework"
,
"IOKit.framework"
}
links
{
"OpenGL.framework"
,
"Cocoa.framework"
,
"IOKit.framework"
}
...
@@ -93,11 +107,14 @@ end
...
@@ -93,11 +107,14 @@ end
include
"ocgcore"
include
"ocgcore"
include
"gframe"
include
"gframe"
if
os
.
ishost
(
"windows"
)
then
if
os
.
ishost
(
"windows"
)
then
include
"lua"
include
"event"
include
"sqlite3"
end
if
BUILD_LUA
then
include
"lua"
include
"lua"
include
"event"
include
"sqlite3"
else
if
BUILD_LUA
then
include
"lua"
end
if
BUILD_SQLITE
then
include
"sqlite3/premake4.lua"
end
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