xmake: Improve scripts
This commit is contained in:
@@ -28,7 +28,7 @@ rule("nzsl.compile.shaders")
|
||||
envs = mingw:runenvs()
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
batchcmds:vrunv(nzsl, argv, { curdir = ".", envs = envs })
|
||||
|
||||
local outputFile = path.join(path.directory(shaderfile), path.basename(shaderfile) .. ".nzslb.h")
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user