shaders = [ | |
['texture-blit', 'frag'], | |
['texture-blit', 'vert'], | |
['texture-blit-flip', 'vert'], | |
] | |
foreach e : shaders | |
output = '@0@-@1@.h'.format(e[0], e[1]) | |
genh += custom_target(output, | |
output: output, | |
capture: true, | |
input: files('@0@.@1@'.format(e[0], e[1])), | |
build_by_default: false, | |
command: [shaderinclude, '@INPUT0@']) | |
endforeach |