13 lines
295 B
Python

from SCons.Script import *
def exists(env: Environment) -> bool:
return True
def generate(env : Environment):
glslang_spv_builder = Builder(
action = '$GLSLANG -V -o $TARGET $SOURCE'
)
env['GLSLANG'] = 'glslang'
env.Append(BUILDERS={'SpirV': glslang_spv_builder})