xmake: Improve scripts

This commit is contained in:
SirLynix
2023-01-29 15:32:55 +01:00
parent 511a45cf6a
commit 3a58ed9701
4 changed files with 10 additions and 12 deletions

View File

@@ -2,11 +2,7 @@
rule("embed.resources")
before_build(function (target, opt)
import("core.base.option")
if xmake.version():ge("2.5.9") then
import("utils.progress")
elseif not import("utils.progress", { try = true }) then
import("private.utils.progress")
end
import("utils.progress")
local function GenerateEmbedHeader(filepath, targetpath)
local bufferSize = 1024 * 1024