| 1 |
foreach variant : get_option('variants') |
| 2 |
index_theme = configure_file( |
| 3 |
input: 'index.theme.in', |
| 4 |
output : 'index.theme.' + variant, |
| 5 |
configuration : { |
| 6 |
'variant_name' : variant_name.get(variant), |
| 7 |
} |
| 8 |
) |
| 9 |
|
| 10 |
install_data( |
| 11 |
index_theme, |
| 12 |
rename: 'index.theme', |
| 13 |
install_dir : prefix / install_dir.get(variant), |
| 14 |
) |
| 15 |
endforeach |
| 16 |
|
| 17 |
common_dirs = { |
| 18 |
'cinnamon' : 'cinnamon', |
| 19 |
'gnome-shell' : 'gnome-shell', |
| 20 |
'gtk2' : 'gtk-2.0', |
| 21 |
'gtk3' : 'gtk-3.0', |
| 22 |
'gtk4' : 'gtk-4.0', |
| 23 |
'metacity' : 'metacity-1', |
| 24 |
'plank' : 'plank', |
| 25 |
'unity' : 'unity', |
| •26 |
'xfwm' : 'xfwm4', |
| 27 |
'labwc' : 'labwc' |
| 28 |
} |
| 29 |
|
| 30 |
foreach theme : get_option('themes') |
| 31 |
subdir(common_dirs.get(theme)) |
| 32 |
endforeach |