From b2668582dd9bad354e8aa45e6bf0d060f60cb6cc Mon Sep 17 00:00:00 2001 From: RC1844 <1844766234@qq.com> Date: Mon, 22 Jan 2024 17:03:35 +0800 Subject: fix qt.qrc rule Fix the qt.qrc rule and add multiple qrc files with the same name, which will overwrite each other. --- xmake/rules/qt/qrc/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/rules/qt/qrc/xmake.lua b/xmake/rules/qt/qrc/xmake.lua index 05b35dbdd..60653d080 100644 --- a/xmake/rules/qt/qrc/xmake.lua +++ b/xmake/rules/qt/qrc/xmake.lua @@ -44,7 +44,7 @@ rule("qt.qrc") local rcc = target:data("qt.rcc") -- get c++ source file for qrc - local sourcefile_cpp = path.join(target:autogendir(), "rules", "qt", "qrc", path.basename(sourcefile_qrc) .. ".cpp") + local sourcefile_cpp = path.join(target:autogendir(), "rules", "qt", "qrc", path.basename(sourcefile_qrc).. "_" .. hash.uuid4(sourcefile_qrc):split('%-')[1] .. ".cpp") local sourcefile_dir = path.directory(sourcefile_cpp) -- add objectfile -- cgit v1.3.1