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
69ad23e0
Commit
69ad23e0
authored
May 21, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support lua5.4
parent
2e299472
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
premake5.lua
premake5.lua
+16
-3
No files found.
premake5.lua
View file @
69ad23e0
...
...
@@ -143,9 +143,22 @@ end
if
GetParam
(
"lua-deb"
)
then
BUILD_LUA
=
false
LUA_LIB_DIR
=
"/usr/lib/x86_64-linux-gnu"
LUA_LIB_NAME
=
"lua5.3-c++"
LUA_INCLUDE_DIR
=
"/usr/include/lua5.3"
local
lua_versions
=
{
"5.4"
,
"5.3"
}
local
lua_version
=
nil
for
_
,
version
in
ipairs
(
lua_versions
)
do
local
lua_lib_dir
=
os
.
findlib
(
"lua"
..
version
)
if
lua_lib_dir
then
print
(
"Found lua "
..
version
..
" at "
..
lua_lib_dir
)
lua_version
=
version
LUA_LIB_DIR
=
lua_lib_dir
break
end
end
if
not
lua_version
then
error
(
"Lua library not found. Please install lua by command 'sudo apt -y install liblua5.4-dev'"
)
end
LUA_LIB_NAME
=
"lua"
..
lua_version
..
"-c++"
LUA_INCLUDE_DIR
=
path
.
join
(
"/usr/include"
,
"lua"
..
lua_version
)
end
if
GetParam
(
"build-event"
)
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