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
53da17be
Commit
53da17be
authored
Jul 02, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use prebuilt libevent 2.0.22
parent
c9c1a724
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
5 deletions
+20
-5
.gitlab-ci.yml
.gitlab-ci.yml
+10
-2
gframe/premake4.lua
gframe/premake4.lua
+9
-3
premake5.lua
premake5.lua
+1
-0
No files found.
.gitlab-ci.yml
View file @
53da17be
...
@@ -45,10 +45,18 @@ mat_linux:
...
@@ -45,10 +45,18 @@ 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 -
-
cd libevent-2.0.22-stable
-
./configure --prefix=$PWD/libevent-stable --disable-openssl
-
make -j$(nproc)
-
make install
-
cd ..
-
mv libevent-2.0.22-stable/libevent-stable .
artifacts
:
artifacts
:
paths
:
paths
:
-
premake5
-
premake5
-
irrlicht_linux
-
irrlicht_linux
-
libevent-stable
mat_macos
:
mat_macos
:
stage
:
prepare
stage
:
prepare
...
@@ -143,9 +151,9 @@ exec_linux:
...
@@ -143,9 +151,9 @@ exec_linux:
-
bin/
-
bin/
-
obj/
-
obj/
script
:
script
:
-
apt update; apt -y install git build-essential libfreetype6-dev lib
event-dev lib
sqlite3-dev libgl1-mesa-dev libglu-dev libxxf86vm-dev
-
apt update; apt -y install git build-essential libfreetype6-dev libsqlite3-dev libgl1-mesa-dev libglu-dev libxxf86vm-dev
-
git submodule update --init
-
git submodule update --init
-
./premake5 gmake
-
env 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 @
53da17be
...
@@ -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"
}
links
{
"ocgcore"
,
"clzma"
,
"cspmemvfs"
,
"Irrlicht"
,
"event"
}
if
not
LINUX_ALL_STATIC
then
if
not
LINUX_ALL_STATIC
then
links
{
"freetype"
,
"sqlite3"
,
"event"
}
links
{
"freetype"
,
"sqlite3"
}
end
end
if
USE_IRRKLANG
then
if
USE_IRRKLANG
then
defines
{
"YGOPRO_USE_IRRKLANG"
}
defines
{
"YGOPRO_USE_IRRKLANG"
}
...
@@ -71,7 +71,13 @@ project "ygopro"
...
@@ -71,7 +71,13 @@ 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"
,
LIB_ROOT
..
"libsqlite3.a"
,
LIB_ROOT
..
"libevent.a"
,
LIB_ROOT
..
"libevent_pthreads.a"
}
linkoptions
{
LIB_ROOT
..
"libfreetype.a"
,
LIB_ROOT
..
"libsqlite3.a"
}
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"
}
end
end
if
USE_IRRKLANG
then
if
USE_IRRKLANG
then
links
{
"IrrKlang"
}
links
{
"IrrKlang"
}
...
...
premake5.lua
View file @
53da17be
...
@@ -16,6 +16,7 @@ solution "ygo"
...
@@ -16,6 +16,7 @@ solution "ygo"
BUILD_LUA
=
true
BUILD_LUA
=
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"
)
end
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