summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-22 12:18:11 +0800
committerruki <[email protected]>2022-05-22 12:18:11 +0800
commit5c23b2a425df9fad4edb17f5b64f34e8af87e628 (patch)
treeb5a509ade94c2c178ab19309d3324e1adde48638
parent489e4c01e2c4fb443c250e9ac9ec39b6bfcc129f (diff)
wrap path for glsl
-rw-r--r--xmake/rules/utils/glsl2spv/xmake.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/rules/utils/glsl2spv/xmake.lua b/xmake/rules/utils/glsl2spv/xmake.lua
index b7c772a2b..d9846c6bc 100644
--- a/xmake/rules/utils/glsl2spv/xmake.lua
+++ b/xmake/rules/utils/glsl2spv/xmake.lua
@@ -63,9 +63,9 @@ rule("utils.glsl2spv")
batchcmds:show_progress(opt.progress, "${color.build.object}generating.glsl2spv %s", sourcefile_glsl)
batchcmds:mkdir(outputdir)
if glslangValidator then
- batchcmds:vrunv(glslangValidator.program, {"--target-env", targetenv, "-o", spvfilepath, sourcefile_glsl})
+ batchcmds:vrunv(glslangValidator.program, {"--target-env", targetenv, "-o", path(spvfilepath), path(sourcefile_glsl)})
else
- batchcmds:vrunv(glslc.program, {"--target-env", targetenv, "-o", spvfilepath, sourcefile_glsl})
+ batchcmds:vrunv(glslc.program, {"--target-env", targetenv, "-o", path(spvfilepath), path(sourcefile_glsl)})
end
-- do bin2c
@@ -79,7 +79,7 @@ rule("utils.glsl2spv")
outputfile = headerfile
-- add commands
- local argv = {"lua", "private.utils.bin2c", "--nozeroend", "-i", spvfilepath, "-o", headerfile}
+ local argv = {"lua", "private.utils.bin2c", "--nozeroend", "-i", path(spvfilepath), "-o", path(headerfile)}
batchcmds:vrunv(os.programfile(), argv, {envs = {XMAKE_SKIP_HISTORY = "y"}})
end