Debian Codegraph @

common/metacity-1/meson.build

raw
1 foreach variant : get_option('variants')
2 svg_assets = run_command('find', meson.current_source_dir(), '-name', '*.svg', check : true).stdout().split()
3
4 xml_assets = [
5 variant == 'light' or variant == 'lighter' ? 'metacity-theme-1.xml' : 'metacity-theme-1-dark.xml',
6 variant == 'light' or variant == 'lighter' ? 'metacity-theme-2.xml' : 'metacity-theme-2-dark.xml',
7 variant == 'light' or variant == 'lighter' ? 'metacity-theme-3.xml' : 'metacity-theme-3-dark.xml'
8 ]
9
10 install_data(
11 svg_assets,
12 install_dir : prefix / install_dir.get(variant) / common_dirs.get('metacity')
13 )
14
15 install_data(
16 xml_assets,
17 rename : ['metacity-theme-1.xml', 'metacity-theme-2.xml', 'metacity-theme-3.xml'],
18 install_dir : prefix / install_dir.get(variant) / common_dirs.get('metacity')
19 )
20
21 install_data(
22 variant == 'light' or variant == 'lighter' ? 'thumbnail.png' : 'thumbnail-dark.png',
23 rename : 'thumbnail.png',
24 install_dir : prefix / install_dir.get(variant) / common_dirs.get('metacity')
25 )
26 endforeach