File: meson.build

package info (click to toggle)
arc-theme 20221218-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 12,444 kB
  • sloc: xml: 4,691; python: 94; makefile: 6
file content (29 lines) | stat: -rw-r--r-- 911 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
base_svg_assets = run_command(
  'find',
  meson.current_source_dir(),
  '-maxdepth', '1',
  '-name', '*.svg',
  check : true
).stdout().split()

foreach variant : get_option('variants')
  # custom install script is necessary here, since install_subdir() currently installs 
  # the symlink target file, instead of the actual symlink, which doesn't install
  # dark variant correctly
  meson.add_install_script(
    install_file,
    base_svg_assets,
    '$MESON_INSTALL_DESTDIR_PREFIX' / install_dir.get(variant) / common_dirs.get('unity')
  )

  install_subdir(
    'dash',
    install_dir : prefix / install_dir.get(variant) / common_dirs.get('unity'),
  )

  install_subdir(
    variant == 'light' or variant == 'lighter' ? 'window-buttons' : 'window-buttons-dark',
    install_dir : prefix / install_dir.get(variant) / common_dirs.get('unity') / 'window-buttons',
    strip_directory : true
  )
endforeach