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
f3400dc7
Commit
f3400dc7
authored
Jul 08, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into server
parents
89faa495
9ea1916c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
64 additions
and
16 deletions
+64
-16
.ci/pack-linux.sh
.ci/pack-linux.sh
+1
-1
.gitignore
.gitignore
+1
-0
.gitlab-ci.yml
.gitlab-ci.yml
+14
-10
gframe/premake4.lua
gframe/premake4.lua
+42
-1
premake/freetype/premake4.lua
premake/freetype/premake4.lua
+2
-0
premake5.lua
premake5.lua
+4
-4
No files found.
.ci/pack-linux.sh
View file @
f3400dc7
...
@@ -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 @
f3400dc7
...
@@ -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 @
f3400dc7
...
@@ -20,10 +20,15 @@ mat_common:
...
@@ -20,10 +20,15 @@ mat_common:
# sqlite3
# sqlite3
-
wget -O - https://cdn01.moecube.com/ygopro-build-materials/sqlite-autoconf-3360000.tar.gz | tar zfx -
-
wget -O - https://cdn01.moecube.com/ygopro-build-materials/sqlite-autoconf-3360000.tar.gz | tar zfx -
-
mv sqlite-autoconf-3360000 sqlite3
-
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/* .;
-
cp -rf premake/* .;
artifacts
:
artifacts
:
paths
:
paths
:
-
lua
-
lua
-
freetype
-
sqlite3
-
sqlite3
mat_linux
:
mat_linux
:
...
@@ -34,13 +39,13 @@ mat_linux:
...
@@ -34,13 +39,13 @@ mat_linux:
-
apt update; apt -y install git wget tar
-
apt update; apt -y install git wget tar
#- git clone --depth=1 https://code.mycard.moe/mycard/irrlicht irrlicht_linux
#- git clone --depth=1 https://code.mycard.moe/mycard/irrlicht irrlicht_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
#
- make -j$(nproc)
-
make -j$(nproc)
#
- make install
-
make install
#
- cd ..
-
cd ..
#
- mv libevent-2.0.22-stable/libevent-stable .
-
mv libevent-2.0.22-stable/libevent-stable .
artifacts
:
artifacts
:
paths
:
paths
:
-
premake5
-
premake5
...
@@ -63,7 +68,6 @@ mat_windows:
...
@@ -63,7 +68,6 @@ mat_windows:
paths
:
paths
:
-
premake5.exe
-
premake5.exe
-
event
-
event
-
sqlite3
exec_windows
:
exec_windows
:
stage
:
build
stage
:
build
...
@@ -95,8 +99,8 @@ exec_linux:
...
@@ -95,8 +99,8 @@ exec_linux:
-
linux
-
linux
variables
:
variables
:
YGOPRO_BUILD_ALL
:
'
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_common
-
mat_common
#- mat_irrklang
#- mat_irrklang
...
...
gframe/premake4.lua
View file @
f3400dc7
...
@@ -3,6 +3,7 @@ include "lzma/."
...
@@ -3,6 +3,7 @@ include "lzma/."
project
"ygopro"
project
"ygopro"
kind
"ConsoleApp"
kind
"ConsoleApp"
<<<<<<<
HEAD
local
params
=
{
local
params
=
{
"DEFAULT_DUEL_RULE"
,
"DEFAULT_DUEL_RULE"
,
"DECKCOUNT_MAIN_MIN"
,
"DECKCOUNT_MAIN_MIN"
,
...
@@ -15,8 +16,31 @@ project "ygopro"
...
@@ -15,8 +16,31 @@ project "ygopro"
for
_
,
param
in
ipairs
(
params
)
do
for
_
,
param
in
ipairs
(
params
)
do
local
val
=
os.getenv
(
"YGOPRO_"
..
param
)
local
val
=
os.getenv
(
"YGOPRO_"
..
param
)
if
val
and
tonumber
(
val
)
then
defines
{
param
..
"="
..
tonumber
(
val
)
}
end
if
val
and
tonumber
(
val
)
then
defines
{
param
..
"="
..
tonumber
(
val
)
}
end
=======
files
{
"**.cpp"
,
"**.cc"
,
"**.c"
,
"**.h"
}
excludes
{
"lzma/**"
,
"spmemvfs/**"
}
includedirs
{
"../ocgcore"
}
links
{
"ocgcore"
,
"clzma"
,
"cspmemvfs"
,
"Irrlicht"
,
"sqlite3"
,
"freetype"
}
if
not
LINUX_ALL_STATIC
then
links
{
"event"
}
end
if
USE_IRRKLANG
then
defines
{
"YGOPRO_USE_IRRKLANG"
}
links
{
"ikpmp3"
}
includedirs
{
"../irrklang/include"
}
if
IRRKLANG_PRO
then
defines
{
"IRRKLANG_STATIC"
}
end
end
if
os.getenv
(
"YGOPRO_COMPAT_MYCARD"
)
then
defines
{
"YGOPRO_COMPAT_MYCARD"
}
end
if
os.getenv
(
"YGOPRO_MESSAGE_DEBUG"
)
then
defines
{
"YGOPRO_MESSAGE_DEBUG"
}
>>>>>>>
master
end
end
<<<<<<<
HEAD
files
{
"gframe.cpp"
,
"config.h"
,
files
{
"gframe.cpp"
,
"config.h"
,
"game.cpp"
,
"game.h"
,
"myfilesystem.h"
,
"game.cpp"
,
"game.h"
,
"myfilesystem.h"
,
"deck_manager.cpp"
,
"deck_manager.h"
,
"deck_manager.cpp"
,
"deck_manager.h"
,
...
@@ -28,6 +52,12 @@ project "ygopro"
...
@@ -28,6 +52,12 @@ project "ygopro"
includedirs
{
"../ocgcore"
}
includedirs
{
"../ocgcore"
}
links
{
"ocgcore"
,
"clzma"
,
"sqlite3"
}
links
{
"ocgcore"
,
"clzma"
,
"sqlite3"
}
=======
configuration
"not linux"
if
LINUX_ALL_STATIC
then
links
{
"event"
}
end
>>>>>>>
master
configuration
"windows"
configuration
"windows"
files
"ygopro.rc"
files
"ygopro.rc"
includedirs
{
"../event/include"
,
"../sqlite3"
}
includedirs
{
"../event/include"
,
"../sqlite3"
}
...
@@ -42,6 +72,17 @@ project "ygopro"
...
@@ -42,6 +72,17 @@ project "ygopro"
if
BUILD_SQLITE
then
if
BUILD_SQLITE
then
includedirs
{
"../sqlite3"
}
includedirs
{
"../sqlite3"
}
end
end
<<<<<<<
HEAD
=======
if
BUILD_FREETYPE
then
includedirs
{
"../freetype/include"
}
end
configuration
{
"not windows"
,
"not macosx"
}
links
"GL"
configuration
"linux"
linkoptions
{
"-static-libstdc++"
,
"-static-libgcc"
,
"-Wl,-rpath=./lib/"
}
includedirs
{
"../irrlicht_linux/include"
}
>>>>>>>
master
if
BUILD_LUA
then
if
BUILD_LUA
then
links
{
"lua"
}
links
{
"lua"
}
else
else
...
@@ -58,4 +99,4 @@ project "ygopro"
...
@@ -58,4 +99,4 @@ project "ygopro"
links
{
"event"
}
links
{
"event"
}
end
end
configuration
"linux"
configuration
"linux"
linkoptions
{
"-static-libstdc++"
,
"-static-libgcc"
}
linkoptions
{
"-static-libstdc++"
,
"-static-libgcc"
,
"-Wl,-rpath=./lib/"
}
premake/freetype/premake4.lua
View file @
f3400dc7
...
@@ -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 @
f3400dc7
...
@@ -12,9 +12,9 @@ solution "ygo"
...
@@ -12,9 +12,9 @@ solution "ygo"
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_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
...
@@ -27,7 +27,7 @@ solution "ygo"
...
@@ -27,7 +27,7 @@ solution "ygo"
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
end
end
...
@@ -59,7 +59,7 @@ end
...
@@ -59,7 +59,7 @@ 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"
}
includedirs
{
"/usr/local/include/event2"
,
}
libdirs
{
"/usr/local/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"
}
...
...
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