-
Notifications
You must be signed in to change notification settings - Fork 2
/
meson.build
52 lines (44 loc) · 1.88 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
project(
'solus-mate-transition-tool',
['c'],
version: '0.3.1',
license: [
'GPL-2.0-only',
],
default_options: [
'prefix=/usr',
'sysconfdir=/etc',
],
)
path_prefix = get_option('prefix')
path_datadir = join_paths(path_prefix, get_option('datadir'))
path_bindir = join_paths(path_prefix, get_option('bindir'))
path_libexecdir = join_paths(path_prefix, get_option('libexecdir'))
path_policydir = join_paths(path_datadir, 'polkit-1', 'actions')
path_dbussystemdir = join_paths(path_datadir, 'dbus-1', 'system.d')
path_dbussystemservicesdir = join_paths(path_datadir, 'dbus-1', 'system-services')
path_desktopdir = join_paths(path_datadir, 'applications')
path_autostartdesktopdir = join_paths(path_datadir, 'xdg', 'autostart')
localedir = join_paths(path_prefix, get_option('localedir'))
podir = join_paths(meson.source_root(), 'po')
path_generaldir = join_paths(path_datadir, 'solus-mate-transition-tool')
subdir('data')
subdir('pkgs')
subdir('po')
subdir('src')
report = [
' Build configuration:',
' ====================',
'',
' prefix: @0@'.format(path_prefix),
' datadir: @0@'.format(path_datadir),
' policykit dir: @0@'.format(path_policydir),
' dbus system dir: @0@'.format(path_dbussystemdir),
' dbus system services dir: @0@'.format(path_dbussystemservicesdir),
' desktop dir: @0@'.format(path_desktopdir),
' autostart desktop dir: @0@'.format(path_autostartdesktopdir),
' localedir: @0@'.format(localedir),
' general dir: @0@'.format(path_generaldir),
]
# Output some stuff to validate the build config
message('\n\n\n' + '\n'.join(report) + '\n\n')