XMake: Improve Qt packages

This commit is contained in:
Jérôme Leclercq
2022-02-25 13:25:07 +01:00
parent 6611cdf72e
commit 874f87f079
5 changed files with 34 additions and 5 deletions

View File

@@ -4,8 +4,14 @@ package("qt5core")
set_description("Qt is the faster, smarter way to create innovative devices, modern UIs & applications for multiple screens. Cross-platform software development at its best.")
set_license("LGPL-3")
add_configs("shared", {description = "Download shared binaries.", default = true, type = "boolean", readonly = true})
add_configs("vs_runtime", {description = "Set vs compiler runtime.", default = "MD", readonly = true})
add_versions("5.15.2", "dummy")
add_versions("5.12.5", "dummy")
on_load(function (package)
package:add("deps", "qt5base", {debug = package:is_debug()})
package:add("deps", "qt5base", {debug = package:is_debug(), version = package:version_str()})
end)
on_fetch(function (package)
@@ -17,6 +23,7 @@ package("qt5core")
return {
qtdir = qt,
version = qt.version,
includedirs = {qt.includedir, path.join(qt.includedir, "QtCore")},
links = table.wrap("Qt5Core" .. (package:is_plat("windows") and package:is_debug() and "d" or "")),
linkdirs = table.wrap(qt.libdir)