forked from RedHatInsights/insights-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
52 lines (44 loc) · 1.73 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('insights-client',
version: '3.2.8',
meson_version: '>=0.49'
)
python = import('python')
python_installation = python.find_installation(get_option('python'))
python_exec = '/usr/bin/python3'
systemd = dependency('systemd', version: '>=231')
config_data = configuration_data({
'bindir': get_option('prefix') / get_option('bindir'),
'BINDIR': get_option('prefix') / get_option('bindir'),
'DATADIR': get_option('prefix') / get_option('datadir'),
'DATAROOTDIR':get_option('prefix') / get_option('datadir'),
'DOCDIR': get_option('prefix') / get_option('datadir') / 'doc' / meson.project_name(),
'LIBEXECDIR': get_option('prefix') / get_option('libexecdir'),
'LOCALSTATEDIR': get_option('localstatedir'),
'PACKAGE': meson.project_name(),
'PACKAGE_VERSION': meson.project_version(),
'pkgsysconfdir': '/' / get_option('sysconfdir') / meson.project_name(),
'PREFIX': get_option('prefix'),
'PYTHON': python_exec,
'pythondir': python_installation.get_install_dir(),
'SBINDIR': get_option('prefix') / get_option('sbindir'),
'SYSCONFDIR': '/' / get_option('sysconfdir'),
'sysconfdir': '/' / get_option('sysconfdir'),
'top_srcdir': meson.source_root()
})
run_target('update-egg', command: 'scripts/01-upgrade-egg.sh')
subdir('data')
subdir('docs')
subdir('src')
configuration = '**Configuration**\n'
configuration += '\tpython\t\t\t: ' + get_option('python') + '\n'
if get_option('checkin').enabled()
configuration += '\tcheckin\t: ' + 'enabled' + '\n'
else
configuration += '\tcheckin\t: ' + 'disabled' + '\n'
endif
if get_option('auto_registration').enabled()
configuration += '\tauto_registration\t: ' + 'enabled' + '\n'
else
configuration += '\tauto_registration\t: ' + 'disabled' + '\n'
endif
message(configuration)