Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
R
rd-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
苍蓝
rd-ygopro
Commits
af819613
Commit
af819613
authored
Jul 08, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'static-dir'
parents
f409a805
06ec7fea
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
22 deletions
+24
-22
.ci/pack-linux.sh
.ci/pack-linux.sh
+1
-1
.gitignore
.gitignore
+1
-0
.gitlab-ci.yml
.gitlab-ci.yml
+10
-9
gframe/premake4.lua
gframe/premake4.lua
+5
-7
premake/freetype/premake4.lua
premake/freetype/premake4.lua
+2
-0
premake5.lua
premake5.lua
+5
-5
No files found.
.ci/pack-linux.sh
View file @
af819613
...
@@ -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 @
af819613
...
@@ -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 @
af819613
...
@@ -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_irrklang
:
mat_irrklang
:
...
@@ -92,9 +97,6 @@ mat_windows:
...
@@ -92,9 +97,6 @@ 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
# freetype
-
wget -O - https://cdn01.moecube.com/ygopro-build-materials/freetype-2.10.1.tar.gz | tar zfx -
-
mv freetype-2.10.1 freetype
# irrlicht
# irrlicht
-
wget https://cdn01.moecube.com/ygopro-build-materials/irrlicht-1.8.4.zip
-
wget https://cdn01.moecube.com/ygopro-build-materials/irrlicht-1.8.4.zip
-
7z x -y irrlicht-1.8.4.zip
-
7z x -y irrlicht-1.8.4.zip
...
@@ -105,8 +107,6 @@ mat_windows:
...
@@ -105,8 +107,6 @@ mat_windows:
paths
:
paths
:
-
premake5.exe
-
premake5.exe
-
event
-
event
-
freetype
-
sqlite3
-
irrlicht
-
irrlicht
exec_windows
:
exec_windows
:
...
@@ -153,17 +153,18 @@ exec_linux:
...
@@ -153,17 +153,18 @@ exec_linux:
script
:
script
:
-
apt update; apt -y install git build-essential libfreetype6-dev libgl1-mesa-dev libglu-dev libxxf86vm-dev
-
apt update; apt -y install git build-essential libfreetype6-dev libgl1-mesa-dev libglu-dev libxxf86vm-dev
-
git submodule update --init
-
git submodule update --init
-
env YGOPRO_LINUX_ALL_STATIC_LIBEVENT_PATH=$PWD/libevent-stable ./premake5 gmake
-
mkdir lib
-
cp -rf irrklang/bin/linux-gcc-64/libIrrKlang.so ./lib/
-
./premake5 gmake
-
cd build
-
cd build
-
make config=release -j$(nproc)
-
make config=release -j$(nproc)
-
cd ..
-
cd ..
-
mv bin/release/ygopro .
-
mv bin/release/ygopro .
-
strip ygopro
-
strip ygopro
-
cp -rf irrklang/bin/linux-gcc-64/libIrrKlang.so .
artifacts
:
artifacts
:
paths
:
paths
:
-
ygopro
-
ygopro
-
lib
IrrKlang.so
-
lib
exec_macos
:
exec_macos
:
stage
:
build
stage
:
build
...
@@ -179,7 +180,7 @@ exec_macos:
...
@@ -179,7 +180,7 @@ exec_macos:
-
obj/
-
obj/
script
:
script
:
-
git submodule update --init
-
git submodule update --init
-
brew install
freetype
libevent dylibbundler
-
brew install libevent dylibbundler
-
sudo cp -rf irrklang/bin/macosx-gcc/libirrklang.dylib /usr/local/lib/
-
sudo cp -rf irrklang/bin/macosx-gcc/libirrklang.dylib /usr/local/lib/
#- sudo cp -rf irrklang/include /usr/local/include/irrklang
#- sudo cp -rf irrklang/include /usr/local/include/irrklang
-
./premake5 gmake --cc=clang
-
./premake5 gmake --cc=clang
...
...
gframe/premake4.lua
View file @
af819613
...
@@ -7,9 +7,9 @@ project "ygopro"
...
@@ -7,9 +7,9 @@ project "ygopro"
files
{
"**.cpp"
,
"**.cc"
,
"**.c"
,
"**.h"
}
files
{
"**.cpp"
,
"**.cc"
,
"**.c"
,
"**.h"
}
excludes
{
"lzma/**"
,
"spmemvfs/**"
}
excludes
{
"lzma/**"
,
"spmemvfs/**"
}
includedirs
{
"../ocgcore"
}
includedirs
{
"../ocgcore"
}
links
{
"ocgcore"
,
"clzma"
,
"cspmemvfs"
,
"Irrlicht"
,
"sqlite3"
}
links
{
"ocgcore"
,
"clzma"
,
"cspmemvfs"
,
"Irrlicht"
,
"sqlite3"
,
"freetype"
}
if
not
LINUX_ALL_STATIC
then
if
not
LINUX_ALL_STATIC
then
links
{
"
freetype"
,
"
event"
}
links
{
"event"
}
end
end
if
USE_IRRKLANG
then
if
USE_IRRKLANG
then
defines
{
"YGOPRO_USE_IRRKLANG"
}
defines
{
"YGOPRO_USE_IRRKLANG"
}
...
@@ -30,7 +30,7 @@ project "ygopro"
...
@@ -30,7 +30,7 @@ project "ygopro"
configuration
"not linux"
configuration
"not linux"
if
LINUX_ALL_STATIC
then
if
LINUX_ALL_STATIC
then
links
{
"
freetype"
,
"
event"
}
links
{
"event"
}
end
end
configuration
"windows"
configuration
"windows"
files
"ygopro.rc"
files
"ygopro.rc"
...
@@ -67,12 +67,12 @@ project "ygopro"
...
@@ -67,12 +67,12 @@ project "ygopro"
includedirs
{
"../sqlite3"
}
includedirs
{
"../sqlite3"
}
end
end
if
BUILD_FREETYPE
then
if
BUILD_FREETYPE
then
--
includedirs {"../freetype/include" }
includedirs
{
"../freetype/include"
}
end
end
configuration
{
"not windows"
,
"not macosx"
}
configuration
{
"not windows"
,
"not macosx"
}
links
"GL"
links
"GL"
configuration
"linux"
configuration
"linux"
linkoptions
{
"-static-libstdc++"
,
"-static-libgcc"
}
linkoptions
{
"-static-libstdc++"
,
"-static-libgcc"
,
"-Wl,-rpath=./lib/"
}
includedirs
{
"../irrlicht_linux/include"
}
includedirs
{
"../irrlicht_linux/include"
}
if
BUILD_LUA
then
if
BUILD_LUA
then
links
{
"lua"
}
links
{
"lua"
}
...
@@ -81,7 +81,6 @@ project "ygopro"
...
@@ -81,7 +81,6 @@ project "ygopro"
end
end
links
{
"X11"
,
"Xxf86vm"
}
links
{
"X11"
,
"Xxf86vm"
}
if
LINUX_ALL_STATIC
then
if
LINUX_ALL_STATIC
then
linkoptions
{
LIB_ROOT
..
"libfreetype.a"
}
local
libeventRootPrefix
=
LIB_ROOT
local
libeventRootPrefix
=
LIB_ROOT
if
LIBEVENT_ROOT
then
if
LIBEVENT_ROOT
then
includedirs
{
LIBEVENT_ROOT
..
"/include"
}
includedirs
{
LIBEVENT_ROOT
..
"/include"
}
...
@@ -91,7 +90,6 @@ project "ygopro"
...
@@ -91,7 +90,6 @@ project "ygopro"
end
end
if
USE_IRRKLANG
then
if
USE_IRRKLANG
then
links
{
"IrrKlang"
}
links
{
"IrrKlang"
}
linkoptions
{
"-Wl,-rpath=./"
}
libdirs
{
"../irrklang/bin/linux-gcc-64"
}
libdirs
{
"../irrklang/bin/linux-gcc-64"
}
end
end
configuration
"macosx"
configuration
"macosx"
...
...
premake/freetype/premake4.lua
View file @
af819613
...
@@ -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 @
af819613
...
@@ -15,9 +15,9 @@ solution "ygo"
...
@@ -15,9 +15,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
...
@@ -30,7 +30,7 @@ solution "ygo"
...
@@ -30,7 +30,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
...
@@ -66,7 +66,7 @@ end
...
@@ -66,7 +66,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"
}
...
@@ -125,7 +125,7 @@ end
...
@@ -125,7 +125,7 @@ end
include
"sqlite3/premake4.lua"
include
"sqlite3/premake4.lua"
end
end
if
BUILD_FREETYPE
then
if
BUILD_FREETYPE
then
--
include "freetype"
include
"freetype"
end
end
end
end
if
os
.
ishost
(
"linux"
)
then
if
os
.
ishost
(
"linux"
)
then
...
...
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