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
YGOPRO-520DIY
ygopro
Commits
b79ef9b7
Commit
b79ef9b7
authored
May 06, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'patch-irrlicht-mac' of github.com:mercury233/ygopro into develop
parents
0196bc51
3aace69f
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
31 deletions
+26
-31
.ci/exec-macos-platform.sh
.ci/exec-macos-platform.sh
+0
-2
.github/workflows/build.yml
.github/workflows/build.yml
+2
-12
.gitlab-ci.yml
.gitlab-ci.yml
+11
-15
premake/irrlicht/premake5.lua
premake/irrlicht/premake5.lua
+12
-0
premake5.lua
premake5.lua
+1
-2
No files found.
.ci/exec-macos-platform.sh
View file @
b79ef9b7
...
@@ -6,8 +6,6 @@ TARGET_PLATFORM=$(arch)
...
@@ -6,8 +6,6 @@ TARGET_PLATFORM=$(arch)
TARGET_YGOPRO_BINARY_PATH
=
./ygopro-platforms/ygopro-platform-
$TARGET_PLATFORM
TARGET_YGOPRO_BINARY_PATH
=
./ygopro-platforms/ygopro-platform-
$TARGET_PLATFORM
export
EVENT_INCLUDE_DIR
=
$PWD
/libevent-stable/include
export
EVENT_INCLUDE_DIR
=
$PWD
/libevent-stable/include
export
EVENT_LIB_DIR
=
$PWD
/libevent-stable/lib
export
EVENT_LIB_DIR
=
$PWD
/libevent-stable/lib
export
IRRLICHT_INCLUDE_DIR
=
$PWD
/irrlicht/include
export
IRRLICHT_LIB_DIR
=
$PWD
/irrlicht/lib/
$(
arch
)
export
OPUS_INCLUDE_DIR
=
$PWD
/miniaudio/external-built/include/opus
export
OPUS_INCLUDE_DIR
=
$PWD
/miniaudio/external-built/include/opus
export
OPUS_LIB_DIR
=
$PWD
/miniaudio/external-built/lib
export
OPUS_LIB_DIR
=
$PWD
/miniaudio/external-built/lib
export
VORBIS_INCLUDE_DIR
=
$PWD
/miniaudio/external-built/include
export
VORBIS_INCLUDE_DIR
=
$PWD
/miniaudio/external-built/include
...
...
.github/workflows/build.yml
View file @
b79ef9b7
...
@@ -401,12 +401,6 @@ jobs:
...
@@ -401,12 +401,6 @@ jobs:
run
:
|
run
:
|
git clone --depth=1 https://github.com/mercury233/irrlicht
git clone --depth=1 https://github.com/mercury233/irrlicht
-
name
:
Build irrlicht
run
:
|
cd irrlicht/source/Irrlicht/MacOSX
xcodebuild -project MacOSX.xcodeproj
cd ../../../..
-
name
:
Copy premake files
-
name
:
Copy premake files
run
:
|
run
:
|
cp -r premake/* .
cp -r premake/* .
...
@@ -418,9 +412,7 @@ jobs:
...
@@ -418,9 +412,7 @@ jobs:
./premake5 gmake \
./premake5 gmake \
--cc=clang \
--cc=clang \
--freetype-include-dir="/usr/local/include/freetype2" \
--freetype-include-dir="/usr/local/include/freetype2" \
--opus-include-dir="/usr/local/include/opus" \
--opus-include-dir="/usr/local/include/opus"
--irrlicht-include-dir="../irrlicht/include" \
--irrlicht-lib-dir="../irrlicht/source/Irrlicht/MacOSX/build/Release"
-
name
:
Use premake to generate make files (ARM64)
-
name
:
Use premake to generate make files (ARM64)
if
:
runner.arch == 'ARM64'
if
:
runner.arch == 'ARM64'
...
@@ -438,9 +430,7 @@ jobs:
...
@@ -438,9 +430,7 @@ jobs:
--opus-include-dir="/opt/homebrew/include/opus" \
--opus-include-dir="/opt/homebrew/include/opus" \
--opus-lib-dir="/opt/homebrew/lib" \
--opus-lib-dir="/opt/homebrew/lib" \
--vorbis-include-dir="/opt/homebrew/include" \
--vorbis-include-dir="/opt/homebrew/include" \
--vorbis-lib-dir="/opt/homebrew/lib" \
--vorbis-lib-dir="/opt/homebrew/lib"
--irrlicht-include-dir="../irrlicht/include" \
--irrlicht-lib-dir="../irrlicht/source/Irrlicht/MacOSX/build/Release"
-
name
:
Make
-
name
:
Make
run
:
|
run
:
|
...
...
.gitlab-ci.yml
View file @
b79ef9b7
...
@@ -22,6 +22,8 @@ mat_common:
...
@@ -22,6 +22,8 @@ mat_common:
# freetype
# freetype
-
wget -O - https://cdn02.moecube.com:444/ygopro-build-materials/freetype-2.11.1.tar.gz | tar zfx -
-
wget -O - https://cdn02.moecube.com:444/ygopro-build-materials/freetype-2.11.1.tar.gz | tar zfx -
-
mv freetype-2.11.1 freetype
-
mv freetype-2.11.1 freetype
# irrlicht
-
./.ci/prepare-irrlicht.sh
# miniaudio
# miniaudio
-
./.ci/prepare-miniaudio.sh
-
./.ci/prepare-miniaudio.sh
# premake
# premake
...
@@ -31,6 +33,7 @@ mat_common:
...
@@ -31,6 +33,7 @@ mat_common:
-
lua
-
lua
-
freetype
-
freetype
-
sqlite3
-
sqlite3
-
irrlicht
-
miniaudio
-
miniaudio
mat_submodules
:
mat_submodules
:
...
@@ -53,11 +56,12 @@ mat_linux:
...
@@ -53,11 +56,12 @@ mat_linux:
-
linux
-
linux
image
:
git-registry.mycard.moe/mycard/docker-runner-base:debian11
image
:
git-registry.mycard.moe/mycard/docker-runner-base:debian11
script
:
script
:
-
apt update; apt -y install git wget tar
-
'
true'
-
./.ci/prepare-irrlicht.sh
#- apt update; apt -y install git wget tar
artifacts
:
#- ./.ci/prepare-irrlicht.sh
paths
:
#artifacts:
-
irrlicht
# paths:
# - irrlicht
mat_macos
:
mat_macos
:
stage
:
prepare
stage
:
prepare
...
@@ -67,14 +71,9 @@ mat_macos:
...
@@ -67,14 +71,9 @@ mat_macos:
-
apt update; apt -y install wget tar
-
apt update; apt -y install wget tar
-
wget -O - https://cdn02.moecube.com:444/ygopro-build-materials/premake-5.0.0-beta5-macosx.tar.gz | tar zfx -
-
wget -O - https://cdn02.moecube.com:444/ygopro-build-materials/premake-5.0.0-beta5-macosx.tar.gz | tar zfx -
-
chmod +x premake5
-
chmod +x premake5
-
mkdir irrlicht
-
cd irrlicht
-
wget -O - https://cdn02.moecube.com:444/ygopro-build-materials/irrlicht-mycard-mac.tar.gz | tar zfx -
-
cd ..
artifacts
:
artifacts
:
paths
:
paths
:
-
premake5
-
premake5
-
irrlicht
mat_windows
:
mat_windows
:
stage
:
prepare
stage
:
prepare
...
@@ -88,13 +87,10 @@ mat_windows:
...
@@ -88,13 +87,10 @@ mat_windows:
# event
# event
-
wget -O - https://cdn02.moecube.com:444/ygopro-build-materials/libevent-2.0.22-stable.tar.gz | tar zfx -
-
wget -O - https://cdn02.moecube.com:444/ygopro-build-materials/libevent-2.0.22-stable.tar.gz | tar zfx -
-
mv libevent-2.0.22-stable event
-
mv libevent-2.0.22-stable event
# irrlicht
-
./.ci/prepare-irrlicht.sh
artifacts
:
artifacts
:
paths
:
paths
:
-
premake5.exe
-
premake5.exe
-
event
-
event
-
irrlicht
._exec_build
:
._exec_build
:
stage
:
build
stage
:
build
...
@@ -130,7 +126,7 @@ exec_windows:
...
@@ -130,7 +126,7 @@ exec_windows:
image
:
git-registry.moenext.com/mycard/docker-ygopro-builder
image
:
git-registry.moenext.com/mycard/docker-ygopro-builder
dependencies
:
dependencies
:
-
mat_common
-
mat_common
-
mat_linux
#
- mat_linux
-
mat_submodules
-
mat_submodules
variables
:
variables
:
EVENT_INCLUDE_DIR
:
/usr/share/libevent-stable/include
EVENT_INCLUDE_DIR
:
/usr/share/libevent-stable/include
...
@@ -143,7 +139,7 @@ exec_windows:
...
@@ -143,7 +139,7 @@ exec_windows:
OGG_LIB_DIR
:
$CI_PROJECT_DIR/miniaudio/external-built/lib
OGG_LIB_DIR
:
$CI_PROJECT_DIR/miniaudio/external-built/lib
script
:
script
:
-
./.ci/build-opus.sh
-
./.ci/build-opus.sh
-
premake5 gmake --build-freetype --build-sqlite
--build-irrlicht
-
premake5 gmake --build-freetype --build-sqlite
-
cd build
-
cd build
-
make config=release -j$(nproc)
-
make config=release -j$(nproc)
-
cd ..
-
cd ..
...
...
premake/irrlicht/premake5.lua
View file @
b79ef9b7
...
@@ -158,3 +158,15 @@ project "irrlicht"
...
@@ -158,3 +158,15 @@ project "irrlicht"
filter
{
"system:linux"
}
filter
{
"system:linux"
}
links
{
"X11"
,
"Xxf86vm"
}
links
{
"X11"
,
"Xxf86vm"
}
filter
{
"system:macosx"
}
cppdialect
"gnu++14"
defines
{
"GL_SILENCE_DEPRECATION"
,
"PNG_ARM_NEON_OPT=0"
,
"PNG_ARM_NEON_IMPLEMENTATION=0"
}
undefines
{
"NO_IRR_COMPILE_WITH_JOYSTICK_EVENTS_"
}
files
{
"source/Irrlicht/MacOSX/*.mm"
,
"source/Irrlicht/MacOSX/*.h"
,
}
filter
{
"system:macosx"
,
"files:source/Irrlicht/Irrlicht.cpp or source/Irrlicht/COpenGLDriver.cpp"
}
compileas
"Objective-C++"
premake5.lua
View file @
b79ef9b7
...
@@ -6,7 +6,7 @@ LUA_LIB_NAME = "lua"
...
@@ -6,7 +6,7 @@ LUA_LIB_NAME = "lua"
BUILD_EVENT
=
os
.
istarget
(
"windows"
)
BUILD_EVENT
=
os
.
istarget
(
"windows"
)
BUILD_FREETYPE
=
os
.
istarget
(
"windows"
)
BUILD_FREETYPE
=
os
.
istarget
(
"windows"
)
BUILD_SQLITE
=
os
.
istarget
(
"windows"
)
BUILD_SQLITE
=
os
.
istarget
(
"windows"
)
BUILD_IRRLICHT
=
not
os
.
istarget
(
"macosx"
)
BUILD_IRRLICHT
=
true
USE_AUDIO
=
true
USE_AUDIO
=
true
AUDIO_LIB
=
"miniaudio"
AUDIO_LIB
=
"miniaudio"
...
@@ -365,7 +365,6 @@ workspace "YGOPro"
...
@@ -365,7 +365,6 @@ workspace "YGOPro"
filter
"system:macosx"
filter
"system:macosx"
libdirs
{
"/usr/local/lib"
}
libdirs
{
"/usr/local/lib"
}
buildoptions
{
"-stdlib=libc++"
}
if
MAC_ARM
then
if
MAC_ARM
then
buildoptions
{
"--target=arm64-apple-macos12"
}
buildoptions
{
"--target=arm64-apple-macos12"
}
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