2022-11-10 17:32:28 +11:00
|
|
|
embed = find_program('./embed.sh', native: true)
|
|
|
|
|
|
|
|
shaders = [
|
2023-03-21 03:30:40 +11:00
|
|
|
'box_shadow.frag',
|
2022-12-12 06:59:11 +11:00
|
|
|
'common.vert',
|
2023-03-21 03:30:40 +11:00
|
|
|
'corner.frag',
|
2022-11-10 17:32:28 +11:00
|
|
|
'quad.frag',
|
2022-11-12 12:05:05 +11:00
|
|
|
'quad_round.frag',
|
2022-11-11 17:19:02 +11:00
|
|
|
'quad_round_tl.frag',
|
|
|
|
'quad_round_tr.frag',
|
2023-03-21 03:30:40 +11:00
|
|
|
'tex.frag',
|
2022-11-10 17:32:28 +11:00
|
|
|
]
|
|
|
|
|
|
|
|
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
|