diff options
| author | RC1844 <[email protected]> | 2024-01-22 17:03:35 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-22 17:03:35 +0800 |
| commit | b2668582dd9bad354e8aa45e6bf0d060f60cb6cc (patch) | |
| tree | 27ffbd18214e3bd6a282beb958c7ba1c0877e91a | |
| parent | 089d5e0620bea0163983c005c70d0d6416be9aaf (diff) | |
fix qt.qrc rule
Fix the qt.qrc rule and add multiple qrc files with the same name, which will overwrite each other.
| -rw-r--r-- | xmake/rules/qt/qrc/xmake.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
