mirror of
https://github.com/holub/mame
synced 2025-04-18 22:49:58 +03:00
build: Fixed QT6 build for macosx (#13510)
This commit is contained in:
parent
e95cdde8e9
commit
c709a0f124
@ -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