This repository has been archived by the owner on Dec 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
meson.build
40 lines (34 loc) · 1.63 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
project('quadlet', 'c',
version: '0.2.4',
meson_version: '>= 0.50.0',
default_options: [ 'warning_level=2',
'c_std=gnu11',
],
)
top_inc = include_directories('.')
quadlet_prefix = get_option('prefix')
quadlet_libexecdir = join_paths(quadlet_prefix, get_option('libexecdir'))
quadlet_system_generatordir = join_paths(quadlet_prefix, 'lib/systemd/system-generators')
quadlet_user_generatordir = join_paths(quadlet_prefix, 'lib/systemd/user-generators')
quadlet_admin_containersdir = join_paths(quadlet_prefix, get_option('sysconfdir'), 'containers')
quadlet_distro_containersdir = join_paths(quadlet_prefix, get_option('datadir'), 'containers')
config_h = configuration_data()
config_h.set_quoted('PACKAGE_VERSION', meson.project_version())
config_h.set_quoted('QUADLET_UNIT_DIR_DISTRO', join_paths(quadlet_distro_containersdir, 'systemd'))
config_h.set_quoted('QUADLET_UNIT_DIR_ADMIN', join_paths(quadlet_admin_containersdir, 'systemd'))
config_h.set_quoted('QUADLET_USERNAME', get_option('quadlet-user'))
config_h.set('QUADLET_FALLBACK_UID_START', get_option('fallback-uidstart'))
config_h.set('QUADLET_FALLBACK_UID_LENGTH', get_option('fallback-uidlen'))
config_h.set('QUADLET_FALLBACK_GID_START', get_option('fallback-gidstart'))
config_h.set('QUADLET_FALLBACK_GID_LENGTH', get_option('fallback-gidlen'))
configure_file(
output: 'quadlet-config.h',
configuration: config_h,
)
add_project_arguments([
'-I' + meson.build_root(),
], language: 'c')
glib_dep = dependency('glib-2.0', version: '>= 2.44')
gobject_dep = dependency('gobject-2.0', version: '>= 2.44')
subdir('src')
subdir('tests')