summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-22 19:06:22 +0800
committerruki <[email protected]>2022-05-22 19:06:22 +0800
commit59b0d6109513a973815ff08a811305d70ec5fe01 (patch)
treebe6c99f6a3d84c67920615d38e56eff57d7b37e1
parent0c354983c76505f843d76b916fbd1716f93fd369 (diff)
add path wrap for qrc
-rw-r--r--xmake/rules/qt/qrc/xmake.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/rules/qt/qrc/xmake.lua b/xmake/rules/qt/qrc/xmake.lua
index 28db39f87..f5e057957 100644
--- a/xmake/rules/qt/qrc/xmake.lua
+++ b/xmake/rules/qt/qrc/xmake.lua
@@ -54,12 +54,12 @@ rule("qt.qrc")
-- add commands
batchcmds:show_progress(opt.progress, "${color.build.object}compiling.qt.qrc %s", sourcefile_qrc)
batchcmds:mkdir(sourcefile_dir)
- batchcmds:vrunv(rcc, {"-name", path.basename(sourcefile_qrc), sourcefile_qrc, "-o", sourcefile_cpp})
+ batchcmds:vrunv(rcc, {"-name", path.basename(sourcefile_qrc), path(sourcefile_qrc), "-o", path(sourcefile_cpp)})
batchcmds:compile(sourcefile_cpp, objectfile)
-
+
-- get qrc resources files
local outdata = os.iorunv(rcc, {"-name", path.basename(sourcefile_qrc), sourcefile_qrc, "-list"})
-
+
-- add resources files to batch
for _, file in ipairs(outdata:split("\n")) do
batchcmds:add_depfiles(file)