[fix] pass Windows resource compiler to Slint build

This commit is contained in:
dijunkun
2026-08-01 02:08:05 +08:00
parent c10f1499f2
commit c0b880e1eb
+6
View File
@@ -49,6 +49,12 @@ package("slint")
"-DSLINT_STYLE=fluent",
"-DBUILD_SHARED_LIBS=ON"
}
if package:is_plat("windows") then
local rc = assert(package:build_getenv("mrc"),
"failed to find the Windows resource compiler")
rc = rc:gsub("\\", "/")
table.insert(configs, "-DCMAKE_RC_COMPILER=" .. rc)
end
import("package.tools.cmake").install(package, configs)
end)