25 lines
494 B
Meson
25 lines
494 B
Meson
|
embed = find_program('./embed.sh', native: true)
|
||
|
|
||
|
shaders = [
|
||
|
'quad.vert',
|
||
|
'quad.frag',
|
||
|
'tex.vert',
|
||
|
'corner.frag',
|
||
|
'tex_rgba.frag',
|
||
|
'tex_rgbx.frag',
|
||
|
'tex_external.frag',
|
||
|
]
|
||
|
|
||
|
foreach name : shaders
|
||
|
output = name.underscorify() + '_src.h'
|
||
|
var = name.underscorify() + '_src'
|
||
|
sway_sources += custom_target(
|
||
|
output,
|
||
|
command: [embed, var],
|
||
|
input: name,
|
||
|
output: output,
|
||
|
feed: true,
|
||
|
capture: true,
|
||
|
)
|
||
|
endforeach
|