Debian Codegraph @

common/xfwm4/meson.build

raw
1 xfwm_asset_names = run_command(
2 'cat', 'assets.txt',
3 check : true
4 ).stdout().split()
5
6 if 'light' in get_option('variants') or 'lighter' in get_option('variants')
7 subdir('light')
8 endif
9
10 if 'dark' in get_option('variants') or 'darker' in get_option('variants')
11 subdir('dark')
12 endif
13
14 foreach variant : get_option('variants')
15 if variant == 'light' or variant == 'lighter'
16 themerc = 'light/themerc'
17 assets = xfwm_light_assets
18 asset_files = xfwm_light_asset_files
19 elif variant == 'dark' or variant == 'darker'
20 themerc = 'dark/themerc'
21 assets = xfwm_dark_assets
22 asset_files = xfwm_dark_asset_files
23 endif
24
25 install_data(
26 themerc,
27 install_dir : prefix / install_dir.get(variant) / common_dirs.get('xfwm')
28 )
29
30 full_path_assets = []
31 foreach asset : assets
32 full_path_assets += asset.full_path()
33 endforeach
34
35 meson.add_install_script(
36 install_file,
37 full_path_assets,
38 asset_files,
39 '$MESON_INSTALL_DESTDIR_PREFIX' / install_dir.get(variant) / common_dirs.get('xfwm')
40 )
41 endforeach