zengine-old/engine/xmake/glsl/xmake.lua

12 lines
344 B
Lua
Raw Permalink Normal View History

2024-03-26 21:23:40 +08:00
rule("glsl.env")
2024-04-30 17:34:27 +08:00
after_load(function (target)
2024-06-25 20:26:46 +08:00
--import("glsl_compiler")(target)
2024-04-30 17:34:27 +08:00
end)
on_config(function (target)
2024-06-25 20:26:46 +08:00
--import("glsl_compiler").compile(target)
2024-04-30 17:34:27 +08:00
end)
2024-03-26 21:23:40 +08:00
-- before load
before_build(function (target)
2024-06-25 20:26:46 +08:00
--os.cd("$(projectdir)/engine/assets/shader")
--os.execv("gen_glsl.bat")
2024-03-26 21:23:40 +08:00
end )