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
1
Merge Requests
1
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
nanahira
ygopro
Commits
ef632ca4
Commit
ef632ca4
authored
Jul 16, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve libevent build
parent
13745bf0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
37 deletions
+34
-37
.gitlab-ci.yml
.gitlab-ci.yml
+2
-4
gframe/premake4.lua
gframe/premake4.lua
+8
-18
ocgcore
ocgcore
+1
-1
premake5.lua
premake5.lua
+22
-13
script
script
+1
-1
No files found.
.gitlab-ci.yml
View file @
ef632ca4
...
@@ -56,7 +56,7 @@ mat_linux:
...
@@ -56,7 +56,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 ..
...
@@ -140,8 +140,6 @@ exec_linux:
...
@@ -140,8 +140,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
...
@@ -155,7 +153,7 @@ exec_linux:
...
@@ -155,7 +153,7 @@ exec_linux:
-
git submodule update --init
-
git submodule update --init
-
mkdir lib
-
mkdir lib
-
cp -rf irrklang/bin/linux-gcc-64/libIrrKlang.so ./lib/
-
cp -rf irrklang/bin/linux-gcc-64/libIrrKlang.so ./lib/
-
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 @
ef632ca4
...
@@ -7,10 +7,7 @@ project "ygopro"
...
@@ -7,10 +7,7 @@ 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"
,
"freetype"
}
links
{
"ocgcore"
,
"clzma"
,
"cspmemvfs"
,
"Irrlicht"
,
"sqlite3"
,
"freetype"
,
"event"
}
if
not
LINUX_ALL_STATIC
then
links
{
"event"
}
end
if
USE_IRRKLANG
then
if
USE_IRRKLANG
then
defines
{
"YGOPRO_USE_IRRKLANG"
}
defines
{
"YGOPRO_USE_IRRKLANG"
}
links
{
"ikpmp3"
}
links
{
"ikpmp3"
}
...
@@ -28,10 +25,6 @@ project "ygopro"
...
@@ -28,10 +25,6 @@ project "ygopro"
local
mr
=
os.getenv
(
"YGOPRO_DEFAULT_DUEL_RULE"
)
local
mr
=
os.getenv
(
"YGOPRO_DEFAULT_DUEL_RULE"
)
if
mr
and
tonumber
(
mr
)
then
defines
{
"DEFAULT_DUEL_RULE="
..
tonumber
(
mr
)
}
end
if
mr
and
tonumber
(
mr
)
then
defines
{
"DEFAULT_DUEL_RULE="
..
tonumber
(
mr
)
}
end
configuration
"not linux"
if
LINUX_ALL_STATIC
then
links
{
"event"
}
end
configuration
"windows"
configuration
"windows"
files
"ygopro.rc"
files
"ygopro.rc"
excludes
"CGUIButton.cpp"
excludes
"CGUIButton.cpp"
...
@@ -59,9 +52,11 @@ project "ygopro"
...
@@ -59,9 +52,11 @@ project "ygopro"
configuration
"not windows"
configuration
"not windows"
excludes
{
"COSOperator.*"
}
excludes
{
"COSOperator.*"
}
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
...
@@ -81,14 +76,6 @@ project "ygopro"
...
@@ -81,14 +76,6 @@ project "ygopro"
links
{
"lua5.3-c++"
}
links
{
"lua5.3-c++"
}
end
end
links
{
"X11"
,
"Xxf86vm"
}
links
{
"X11"
,
"Xxf86vm"
}
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"
}
end
if
USE_IRRKLANG
then
if
USE_IRRKLANG
then
links
{
"IrrKlang"
}
links
{
"IrrKlang"
}
libdirs
{
"../irrklang/bin/linux-gcc-64"
}
libdirs
{
"../irrklang/bin/linux-gcc-64"
}
...
@@ -97,6 +84,9 @@ project "ygopro"
...
@@ -97,6 +84,9 @@ project "ygopro"
links
{
"lua"
}
links
{
"lua"
}
includedirs
{
"../irrlicht/include"
}
includedirs
{
"../irrlicht/include"
}
libdirs
{
"../irrlicht"
}
libdirs
{
"../irrlicht"
}
if
MAC_ARM
then
buildoptions
{
"--target=arm64-apple-macos11"
}
end
if
USE_IRRKLANG
then
if
USE_IRRKLANG
then
links
{
"irrklang"
}
links
{
"irrklang"
}
libdirs
{
"../irrklang/bin/macosx-gcc"
}
libdirs
{
"../irrklang/bin/macosx-gcc"
}
...
...
ocgcore
@
62a5cb65
Subproject commit
4fce02f2c2889645af14f62f198322f18d19f17a
Subproject commit
62a5cb65ea7c392f00c2515d023d04a5229907a4
premake5.lua
View file @
ef632ca4
...
@@ -2,12 +2,6 @@ solution "ygo"
...
@@ -2,12 +2,6 @@ solution "ygo"
location
"build"
location
"build"
language
"C++"
language
"C++"
objdir
"obj"
objdir
"obj"
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
if
not
os
.
ishost
(
"windows"
)
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
...
@@ -21,17 +15,25 @@ solution "ygo"
...
@@ -21,17 +15,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"
}
...
@@ -66,9 +68,14 @@ end
...
@@ -66,9 +68,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"
...
@@ -92,7 +99,9 @@ end
...
@@ -92,7 +99,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