summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-09-16 22:59:20 +0800
committerruki <[email protected]>2022-09-16 22:59:20 +0800
commit224f01a0aaadb4b8dedc710d8547fbdb954f75e4 (patch)
tree355a82d66af2c750f63517c2bf7b22317433498b
parent01deb38cc0e1fd98f405ca45c63a16c7c495d60a (diff)
pass windres
-rw-r--r--xmake/modules/package/tools/meson.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/meson.lua b/xmake/modules/package/tools/meson.lua
index 6a0463492..a50579bbd 100644
--- a/xmake/modules/package/tools/meson.lua
+++ b/xmake/modules/package/tools/meson.lua
@@ -104,6 +104,12 @@ function _get_cross_file(package, opt)
if ranlib then
file:print("ranlib='%s'", ranlib)
end
+ if package:is_plat("mingw") then
+ local mrc = package:build_getenv("mrc")
+ if mrc then
+ file:print("windres='%s'", mrc)
+ end
+ end
local cmake = find_tool("cmake")
if cmake then
file:print("cmake='%s'", cmake.program)