summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkellygod <[email protected]>2020-04-14 12:22:19 +0800
committerkellygod <[email protected]>2020-04-14 12:25:14 +0800
commit0b69d0beca72d5db20aa6cde24aea5a7e5687f18 (patch)
tree924817247aedee53addf179beacad4d333425fc8
parentc28f63b9394681dd13ca2bada3a1fa3deb367a4d (diff)
fix LNK2019 unresolved external symbol qInitResources_xxxx
-rw-r--r--xmake/rules/qt/qrc/xmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/qt/qrc/xmake.lua b/xmake/rules/qt/qrc/xmake.lua
index a78d57409..b21ce0439 100644
--- a/xmake/rules/qt/qrc/xmake.lua
+++ b/xmake/rules/qt/qrc/xmake.lua
@@ -91,7 +91,7 @@ rule("qt.qrc")
end
-- compile qrc
- os.vrunv(rcc, {"-name", "qml", sourcefile_qrc, "-o", sourcefile_cpp})
+ os.vrunv(rcc, {"-name", path.basename(sourcefile_qrc), sourcefile_qrc, "-o", sourcefile_cpp})
-- trace
if option.get("verbose") then