mirror of
https://github.com/godotengine/godot.git
synced 2024-12-27 11:24:59 +08:00
2aaa4cd645
glslang isn't needed for OpenGL rendering, which includes the web export. This reduces the web release export template's `.wasm` size by about 20 KB, since web builds use `vulkan=no`.
9 lines
226 B
Python
9 lines
226 B
Python
def can_build(env, platform):
|
|
# glslang is only needed when Vulkan or Direct3D 12-based renderers are available,
|
|
# as OpenGL doesn't use glslang.
|
|
return env["vulkan"] or env["d3d12"]
|
|
|
|
|
|
def configure(env):
|
|
pass
|