mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-08-05 09:10:00 +08:00
[fix] pass Windows resource compiler to Slint build
This commit is contained in:
Vendored
+6
@@ -49,6 +49,12 @@ package("slint")
|
|||||||
"-DSLINT_STYLE=fluent",
|
"-DSLINT_STYLE=fluent",
|
||||||
"-DBUILD_SHARED_LIBS=ON"
|
"-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)
|
import("package.tools.cmake").install(package, configs)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user