From 1c5eb9a1af24388b878c60d379996029db072606 Mon Sep 17 00:00:00 2001 From: jingkaimori Date: Sat, 6 Jul 2024 14:47:46 +0800 Subject: make qt.ts prefixdir option supports absolute path --- xmake/rules/qt/ts/xmake.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xmake/rules/qt/ts/xmake.lua b/xmake/rules/qt/ts/xmake.lua index 6ddfeb703..95e44d2a2 100644 --- a/xmake/rules/qt/ts/xmake.lua +++ b/xmake/rules/qt/ts/xmake.lua @@ -53,7 +53,11 @@ rule("qt.ts") local outputdir = target:targetdir() local fileconfig = target:fileconfig(sourcefile_ts) if fileconfig and fileconfig.prefixdir then - outputdir = path.join(target:targetdir(), fileconfig.prefixdir) + if path.is_absolute(fileconfig.prefixdir) then + outputdir = fileconfig.prefixdir + else + outputdir = path.join(target:targetdir(), fileconfig.prefixdir) + end end local outfile = path.join(outputdir, path.basename(sourcefile_ts) .. ".qm") batchcmds:mkdir(outputdir) -- cgit v1.3.1