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
277f11d2
Commit
277f11d2
authored
Mar 27, 2025
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
bf58ee15
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
24 deletions
+12
-24
.github/workflows/build.yml
.github/workflows/build.yml
+7
-1
gframe/premake5.lua
gframe/premake5.lua
+4
-9
premake5.lua
premake5.lua
+1
-14
No files found.
.github/workflows/build.yml
View file @
277f11d2
...
@@ -236,7 +236,7 @@ jobs:
...
@@ -236,7 +236,7 @@ jobs:
-
name
:
Install dependencies
-
name
:
Install dependencies
run
:
|
run
:
|
sudo apt-get update
sudo apt-get update
sudo apt-get install -y libevent-dev libfreetype6-dev libgl1-mesa-dev libglu1-mesa-dev libsqlite3-dev libxxf86vm-dev lib
miniaudio-dev lib
opusfile-dev libvorbis-dev
sudo apt-get install -y libevent-dev libfreetype6-dev libgl1-mesa-dev libglu1-mesa-dev libsqlite3-dev libxxf86vm-dev libopusfile-dev libvorbis-dev
-
name
:
Download premake
-
name
:
Download premake
id
:
premake
id
:
premake
...
@@ -261,6 +261,12 @@ jobs:
...
@@ -261,6 +261,12 @@ jobs:
tar xf ${{ steps.lua.outputs.filepath }}
tar xf ${{ steps.lua.outputs.filepath }}
mv lua-5.4.7 lua
mv lua-5.4.7 lua
# - name: Download miniaudio
# id: miniaudio
# uses: mercury233/action-cache-download-file@v1.0.0
# with:
# url:
-
name
:
Download irrlicht
-
name
:
Download irrlicht
run
:
|
run
:
|
git clone --depth=1 https://github.com/mercury233/irrlicht
git clone --depth=1 https://github.com/mercury233/irrlicht
...
...
gframe/premake5.lua
View file @
277f11d2
...
@@ -42,15 +42,10 @@ project "YGOPro"
...
@@ -42,15 +42,10 @@ project "YGOPro"
defines
{
"YGOPRO_USE_AUDIO"
}
defines
{
"YGOPRO_USE_AUDIO"
}
includedirs
{
"../miniaudio"
}
includedirs
{
"../miniaudio"
}
links
{
"miniaudio"
}
links
{
"miniaudio"
}
if
not
BUILD_MINIAUDIO
then
if
MINIAUDIO_SUPPORT_OPUS_VORBIS
and
not
BUILD_OPUS_VORBIS
then
includedirs
{
MINIAUDIO_INCLUDE_DIR
}
includedirs
{
OPUS_INCLUDE_DIR
,
VORBIS_INCLUDE_DIR
}
libdirs
{
MINIAUDIO_LIB_DIR
}
libdirs
{
OPUS_LIB_DIR
,
VORBIS_LIB_DIR
}
links
{
"miniaudio"
}
links
{
"opusfile"
,
"vorbis"
}
if
MINIAUDIO_SUPPORT_OPUS_VORBIS
then
includedirs
{
OPUS_INCLUDE_DIR
,
VORBIS_INCLUDE_DIR
}
libdirs
{
OPUS_LIB_DIR
,
VORBIS_LIB_DIR
}
links
{
"opusfile"
,
"vorbis"
}
end
end
end
end
end
...
...
premake5.lua
View file @
277f11d2
...
@@ -6,7 +6,6 @@ BUILD_EVENT = os.istarget("windows")
...
@@ -6,7 +6,6 @@ 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
=
not
os
.
istarget
(
"macosx"
)
BUILD_MINIAUDIO
=
os
.
istarget
(
"windows"
)
BUILD_OPUS_VORBIS
=
os
.
istarget
(
"windows"
)
BUILD_OPUS_VORBIS
=
os
.
istarget
(
"windows"
)
MINIAUDIO_SUPPORT_OPUS_VORBIS
=
true
MINIAUDIO_SUPPORT_OPUS_VORBIS
=
true
LUA_LIB_NAME
=
"lua"
LUA_LIB_NAME
=
"lua"
...
@@ -47,8 +46,6 @@ newoption { trigger = 'build-ikpmp3', category = "YGOPro - irrklang - ikpmp3", d
...
@@ -47,8 +46,6 @@ newoption { trigger = 'build-ikpmp3', category = "YGOPro - irrklang - ikpmp3", d
newoption
{
trigger
=
"no-audio"
,
category
=
"YGOPro"
,
description
=
""
}
newoption
{
trigger
=
"no-audio"
,
category
=
"YGOPro"
,
description
=
""
}
newoption
{
trigger
=
"build-miniaudio"
,
category
=
"YGOPro - miniaudio"
,
description
=
""
}
newoption
{
trigger
=
"no-build-miniaudio"
,
category
=
"YGOPro - miniaudio"
,
description
=
""
}
newoption
{
trigger
=
"miniaudio-include-dir"
,
category
=
"YGOPro - miniaudio"
,
description
=
""
,
value
=
"PATH"
}
newoption
{
trigger
=
"miniaudio-include-dir"
,
category
=
"YGOPro - miniaudio"
,
description
=
""
,
value
=
"PATH"
}
newoption
{
trigger
=
"miniaudio-lib-dir"
,
category
=
"YGOPro - miniaudio"
,
description
=
""
,
value
=
"PATH"
}
newoption
{
trigger
=
"miniaudio-lib-dir"
,
category
=
"YGOPro - miniaudio"
,
description
=
""
,
value
=
"PATH"
}
newoption
{
trigger
=
"miniaudio-support-opus-vorbis"
,
category
=
"YGOPro - miniaudio"
,
description
=
""
}
newoption
{
trigger
=
"miniaudio-support-opus-vorbis"
,
category
=
"YGOPro - miniaudio"
,
description
=
""
}
...
@@ -124,16 +121,6 @@ if GetParam("no-audio") then
...
@@ -124,16 +121,6 @@ if GetParam("no-audio") then
USE_AUDIO
=
false
USE_AUDIO
=
false
end
end
if
GetParam
(
"build-miniaudio"
)
then
BUILD_MINIAUDIO
=
true
elseif
GetParam
(
"nobuild-miniaudio"
)
then
BUILD_MINIAUDIO
=
false
end
if
not
BUILD_MINIAUDIO
then
MINIAUDIO_SUPPORT_OPUS_VORBIS
=
false
MINIAUDIO_INCLUDE_DIR
=
GetParam
(
"miniaudio-include-dir"
)
or
os
.
findheader
(
"miniaudio"
)
MINIAUDIO_LIB_DIR
=
GetParam
(
"miniaudio-lib-dir"
)
or
os
.
findlib
(
"miniaudio"
)
end
if
GetParam
(
"miniaudio-support-opus-vorbis"
)
then
if
GetParam
(
"miniaudio-support-opus-vorbis"
)
then
MINIAUDIO_SUPPORT_OPUS_VORBIS
=
true
MINIAUDIO_SUPPORT_OPUS_VORBIS
=
true
elseif
GetParam
(
"no-miniaudio-support-opus-vorbis"
)
then
elseif
GetParam
(
"no-miniaudio-support-opus-vorbis"
)
then
...
@@ -249,6 +236,6 @@ workspace "YGOPro"
...
@@ -249,6 +236,6 @@ workspace "YGOPro"
if
BUILD_SQLITE
then
if
BUILD_SQLITE
then
include
"sqlite3"
include
"sqlite3"
end
end
if
USE_AUDIO
and
BUILD_MINIAUDIO
then
if
USE_AUDIO
then
include
"miniaudio"
include
"miniaudio"
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