Try to install Qt from xmake
This commit is contained in:
@@ -42,6 +42,8 @@ package("qt5base")
|
||||
-- move files to root
|
||||
local installeddir = path.join(installdir, version, package:is_plat("windows") and "msvc2019_64" or "gcc_64", "*")
|
||||
os.mv(installeddir, installdir)
|
||||
os.rmdir(path.join(installdir, version)
|
||||
|
||||
package:data_set("qtdir", {
|
||||
bindir = path.join(installdir, "bin"),
|
||||
includedir = path.join(installdir, "include"),
|
||||
|
||||
@@ -12,7 +12,7 @@ package("qt5core")
|
||||
|
||||
return {
|
||||
qtdir = qt,
|
||||
links = table.wrap("Qt5Core" .. (package:is_debug() and "d" or "")),
|
||||
links = table.wrap("Qt5Core" .. (package:is_plat("windows") and package:is_debug() and "d" or "")),
|
||||
linkdirs = table.wrap(qt.libdir),
|
||||
includedirs = table.wrap(qt.includedir)
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ package("qt5gui")
|
||||
local qt = base:data("qtdir")
|
||||
|
||||
return {
|
||||
links = table.wrap("Qt5Gui" .. (package:is_debug() and "d" or "")),
|
||||
links = table.wrap("Qt5Gui" .. (package:is_plat("windows") and package:is_debug() and "d" or "")),
|
||||
linkdirs = table.wrap(qt.libdir),
|
||||
includedirs = table.wrap(qt.includedir)
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ package("qt5widgets")
|
||||
local qt = base:data("qtdir")
|
||||
|
||||
return {
|
||||
links = table.wrap("Qt5Widgets" .. (package:is_debug() and "d" or "")),
|
||||
links = table.wrap("Qt5Widgets" .. (package:is_plat("windows") and package:is_debug() and "d" or "")),
|
||||
linkdirs = table.wrap(qt.libdir),
|
||||
includedirs = table.wrap(qt.includedir)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user