build: Fixed QT6 build for macosx

This commit is contained in:
Andrei Holub 2025-03-22 08:01:38 -04:00
parent d55f3b7f04
commit 8ba2d534de

View File

@ -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"))