2022-11-10 17:32:28 +11:00
|
|
|
embed = find_program('./embed.sh', native: true)
|
|
|
|
|
|
|
|
shaders = [
|
2023-04-18 07:24:48 +10:00
|
|
|
'blur1.frag',
|
|
|
|
'blur2.frag',
|
2024-01-04 04:38:44 +11:00
|
|
|
'blur_effects.frag',
|
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',
|
2023-05-01 02:53:26 +10:00
|
|
|
'stencil_mask.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
|