This repository was archived by the owner on Jan 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeson.build
62 lines (53 loc) · 1.46 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
project(
'clr-desktop-defaults', 'c',
version : '18',
license: 'MIT'
)
# Directory vars
prefix = get_option('prefix')
datadir = join_paths(prefix, get_option('datadir'))
bindir = join_paths(prefix, get_option('bindir'))
xdgdir = join_paths(datadir, 'xdg')
schemasdir = join_paths(datadir, 'glib-2.0', 'schemas')
systemddir = join_paths(prefix, 'lib', 'systemd')
libexecdir = join_paths(prefix, get_option('libexecdir'))
desktop_conf = configuration_data()
desktop_conf.set('prefix', prefix)
# Flathub
configure_file(
input: 'org.clearlinux.initFlathubRepo.desktop.in',
output: 'org.clearlinux.initFlathubRepo.desktop',
configuration: desktop_conf,
install_dir: join_paths(xdgdir, 'autostart')
)
install_data(
'clr-init-flathub-repo',
install_dir : libexecdir
)
# XFCE Desktop files
configure_file(
input: 'clr-desktop-files.desktop.in',
output: 'clr-desktop-files.desktop',
configuration: desktop_conf,
install_dir: join_paths(xdgdir, 'autostart')
)
install_data(
'clr-desktop-files.sh',
install_dir : bindir
)
# Reset old dconf schemas to ensure new app-folders take
configure_file(
input: 'clr-migrate-settings.desktop.in',
output: 'clr-migrate-settings.desktop',
configuration: desktop_conf,
install_dir: join_paths(xdgdir, 'autostart')
)
install_data(
'clr-migrate-settings',
install_dir : libexecdir
)
subdir('dconf')
subdir('schemas')
subdir('logind.conf.d')
subdir('fontconfig')
subdir('mimeapps')