-
-
Notifications
You must be signed in to change notification settings - Fork 76
/
meson.build
73 lines (64 loc) · 2.25 KB
/
meson.build
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
72
73
install_data(
'gala.gschema.xml',
install_dir: join_paths(data_dir, 'glib-2.0', 'schemas'),
rename: 'org.pantheon.desktop.gala.gschema.xml'
)
install_data(
'gala-daemon.desktop',
install_dir: join_paths(get_option('sysconfdir'), 'xdg', 'autostart')
)
i18n.merge_file(
input: 'gala.appdata.xml.in',
output: meson.project_name() + '.appdata.xml',
po_dir: join_paths(meson.global_source_root(), 'po'),
type: 'xml',
install: true,
install_dir: join_paths(get_option('datadir'), 'metainfo'),
)
i18n.merge_file(
input: 'gala-multitaskingview.desktop.in',
output: 'gala-multitaskingview.desktop',
po_dir: join_paths(meson.global_source_root (), 'po'),
type: 'desktop',
install: true,
install_dir: join_paths(data_dir, 'applications')
)
i18n.merge_file(
input: 'gala-other.desktop.in',
output: 'gala-other.desktop',
po_dir: join_paths(meson.global_source_root (), 'po'),
type: 'desktop',
install: true,
install_dir: join_paths(data_dir, 'applications')
)
install_data(['gala.desktop', 'gala-wayland.desktop'], install_dir: join_paths(data_dir, 'applications'))
install_data(files('20_elementary.pantheon.wm.gschema.override'), install_dir: join_paths(data_dir, 'glib-2.0', 'schemas'))
if get_option('systemd')
dep_systemd = dependency('systemd', required: true)
systemd_userunitdir = get_option('systemduserunitdir')
if systemd_userunitdir == ''
systemd_userunitdir = dep_systemd.get_variable('systemduserunitdir', pkgconfig_define: ['prefix', get_option('prefix')])
endif
bindir = join_paths(get_option('prefix'), get_option('bindir'))
unit_conf = configuration_data()
unit_conf.set('bindir', bindir)
configure_file(
input: 'gala@x11.service.in',
output: 'io.elementary.gala@x11.service',
install: true,
install_dir: systemd_userunitdir,
configuration: unit_conf
)
configure_file(
input: 'gala@wayland.service.in',
output: 'io.elementary.gala@wayland.service',
install: true,
install_dir: systemd_userunitdir,
configuration: unit_conf
)
install_data(
'gala.target',
rename: 'io.elementary.gala.target',
install_dir: systemd_userunitdir
)
endif