mirror of
https://github.com/holub/mame
synced 2025-04-19 15:11:37 +03:00
build: Fixed QT6 build for macosx
This commit is contained in:
parent
d55f3b7f04
commit
8ba2d534de
@ -498,14 +498,23 @@ function osdmodulestargetconf()
|
||||
"Qt5Widgets.dll",
|
||||
}
|
||||
elseif _OPTIONS["targetos"]=="macosx" then
|
||||
local qt_version = str_to_version(backtick("qmake -query QT_VERSION"))
|
||||
linkoptions {
|
||||
"-F" .. backtick("qmake -query QT_INSTALL_LIBS"),
|
||||
}
|
||||
links {
|
||||
"Qt5Core.framework",
|
||||
"Qt5Gui.framework",
|
||||
"Qt5Widgets.framework",
|
||||
}
|
||||
if qt_version < 60000 then
|
||||
links {
|
||||
"Qt5Core.framework",
|
||||
"Qt5Gui.framework",
|
||||
"Qt5Widgets.framework",
|
||||
}
|
||||
else
|
||||
links {
|
||||
"QtCore.framework",
|
||||
"QtGui.framework",
|
||||
"QtWidgets.framework",
|
||||
}
|
||||
end
|
||||
else
|
||||
if _OPTIONS["QT_HOME"]~=nil then
|
||||
local qt_version = str_to_version(backtick(_OPTIONS["QT_HOME"] .. "/bin/qmake -query QT_VERSION"))
|
||||
|
Loading…
Reference in New Issue
Block a user