File: meson.build

package info (click to toggle)
swayosd 0.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 552 kB
  • sloc: xml: 29; makefile: 24
file content (71 lines) | stat: -rw-r--r-- 1,900 bytes parent folder | download | duplicates (3)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
datadir = get_option('datadir')
libdir = get_option('libdir')

# udev rules
install_data(
  join_paths('udev', '99-swayosd.rules'),
  install_dir: join_paths('lib', 'udev', 'rules.d')
)
# Dbus conf
install_data(
  join_paths('dbus', 'org.erikreider.swayosd.conf'),
  install_dir: join_paths(datadir, 'dbus-1', 'system.d')
)
# Polkit rule
install_data(
  join_paths('polkit', 'rules', 'org.erikreider.swayosd.rules'),
  install_dir: join_paths(datadir, 'polkit-1', 'rules.d')
)
# Polkit policy
conf_data = configuration_data()
conf_data.set('bindir', join_paths(get_option('prefix'), get_option('bindir')))
configure_file(
  input: join_paths('polkit', 'actions', 'org.erikreider.swayosd.policy.in'),
  output: 'org.erikreider.swayosd.policy',
  configuration: conf_data,
  install: true,
  install_dir: join_paths(datadir, 'polkit-1', 'actions')
)
# Dbus service
configure_file(
  configuration: conf_data,
  input: join_paths('services', 'dbus', 'org.erikreider.swayosd.service.in'),
  output: '@BASENAME@',
  install_dir: datadir + '/dbus-1/system-services'
)

# Systemd service unit
systemd = dependency('systemd', required: false)
if systemd.found()
  systemd_service_install_dir = systemd.get_variable(pkgconfig :'systemdsystemunitdir')
else
  systemd_service_install_dir = join_paths('lib', 'systemd', 'system')
endif

configure_file(
  configuration: conf_data,
  input: join_paths('services', 'systemd', 'swayosd-libinput-backend.service.in'),
  output: '@BASENAME@',
  install_dir: systemd_service_install_dir
)

# SCSS Compilation
style_css = custom_target(
  'SCSS Compilation',
  build_by_default: true,
  input : 'style/style.scss',
  output : 'style.css',
  install: true,
  install_dir: config_path,
  command : [
    sassc,
    '@INPUT@',
    '@OUTPUT@'
  ],
)

message(style_css.full_path())

install_data(['config/config.toml', 'config/backend.toml'],
  install_dir : config_path
)