diff options
| author | ruki <[email protected]> | 2025-09-04 23:05:39 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-09-04 22:30:35 +0800 |
| commit | 7260c2d4f475146c4bc388787be28d7f68e8ca33 (patch) | |
| tree | 3156d4ba24006040e0e5216bcb6bae4133537e33 | |
| parent | 9b446fb15e4c91cb6687cf904e4d39f3ce30637d (diff) | |
switch all bin2c rules
| -rw-r--r-- | xmake/rules/utils/glsl2spv/xmake.lua | 4 | ||||
| -rw-r--r-- | xmake/rules/utils/hlsl2spv/xmake.lua | 4 | ||||
| -rw-r--r-- | xmake/rules/xmake_cli/xmake.lua | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/xmake/rules/utils/glsl2spv/xmake.lua b/xmake/rules/utils/glsl2spv/xmake.lua index 83988287e..dfd1779fe 100644 --- a/xmake/rules/utils/glsl2spv/xmake.lua +++ b/xmake/rules/utils/glsl2spv/xmake.lua @@ -85,8 +85,8 @@ rule("utils.glsl2spv") outputfile = headerfile -- add commands - local argv = {"lua", "private.utils.bin2c", "--nozeroend", "-i", path(spvfilepath), "-o", path(headerfile)} - batchcmds:vrunv(os.programfile(), argv, {envs = {XMAKE_SKIP_HISTORY = "y"}}) + local argv = {"--nozeroend", "-i", path(spvfilepath), "-o", path(headerfile)} + batchcmds:vlua("private.utils.bin2c", argv) end -- add deps diff --git a/xmake/rules/utils/hlsl2spv/xmake.lua b/xmake/rules/utils/hlsl2spv/xmake.lua index 7815290fb..2b285d893 100644 --- a/xmake/rules/utils/hlsl2spv/xmake.lua +++ b/xmake/rules/utils/hlsl2spv/xmake.lua @@ -85,8 +85,8 @@ rule("utils.hlsl2spv") outputfile = headerfile -- add commands - local argv = {"lua", "private.utils.bin2c", "--nozeroend", "-i", path(spvfilepath), "-o", path(headerfile)} - batchcmds:vrunv(os.programfile(), argv, {envs = {XMAKE_SKIP_HISTORY = "y"}}) + local argv = {"--nozeroend", "-i", path(spvfilepath), "-o", path(headerfile)} + batchcmds:vlua("private.utils.bin2c", argv) end batchcmds:add_depfiles(sourcefile_hlsl) diff --git a/xmake/rules/xmake_cli/xmake.lua b/xmake/rules/xmake_cli/xmake.lua index 6f599f9bd..d3a4b6f26 100644 --- a/xmake/rules/xmake_cli/xmake.lua +++ b/xmake/rules/xmake_cli/xmake.lua @@ -54,8 +54,8 @@ rule("xmake.cli") local headerdir = path.join(target:autogendir(), "rules", "xmake.cli", "include") local headerfile = path.join(headerdir, "luafiles.xmz.h") target:add("includedirs", headerdir) - argv = {"lua", "private.utils.bin2c", "--nozeroend", "-i", path(archivefile), "-o", path(headerfile)} - batchcmds:vrunv(os.programfile(), argv, {envs = {XMAKE_SKIP_HISTORY = "y"}}) + argv = {"--nozeroend", "-i", path(archivefile), "-o", path(headerfile)} + batchcmds:vlua("private.utils.bin2c", argv) batchcmds:add_depfiles(sourcefiles) batchcmds:set_depmtime(os.mtime(dependfile)) |
