summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/rules/qt/qmltyperegistrar/xmake.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/qt/qmltyperegistrar/xmake.lua b/xmake/rules/qt/qmltyperegistrar/xmake.lua
index 38a04bbc4..d0e8b92bf 100644
--- a/xmake/rules/qt/qmltyperegistrar/xmake.lua
+++ b/xmake/rules/qt/qmltyperegistrar/xmake.lua
@@ -40,7 +40,7 @@ rule("qt.qmltyperegistrar")
local importname = target:values("qt.qmlplugin.import_name")
assert(importname, "QML plugin import name not set")
- local targetdir = path.join(target:targetdir(), "imports")
+ local targetdir = target:targetdir()
for _, dir in pairs(importname:split(".", { plain = true })) do
targetdir = path.join(targetdir, dir)
end
@@ -118,7 +118,7 @@ rule("qt.qmltyperegistrar")
end)
after_build(function(target)
- local qmldir = target:values("qml.plugin.qmldirfile")
+ local qmldir = path.join(target:scriptdir(), target:values("qt.qmlplugin.qmldirfile"))
if qmldir then
os.cp(qmldir, target:targetdir())
end