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
|
dbus_service_dir = get_option('with-dbus-service-dir').strip()
if dbus_service_dir == ''
dbus_service_dir = join_paths(dconf_datadir, 'dbus-1', 'services')
endif
dbus_system_service_dir = get_option('with-dbus-system-service-dir').strip()
if dbus_system_service_dir == ''
dbus_system_service_dir = join_paths(dconf_datadir, 'dbus-1', 'system-services')
endif
service_conf = configuration_data()
service_conf.set('libexecdir', dconf_libexecdir)
service = dconf_namespace + '.service'
configure_file(
input: service + '.in',
output: service,
install: true,
install_dir: dbus_service_dir,
configuration: service_conf
)
sources = [
'dconf-blame.c',
'dconf-gvdb-utils.c',
'dconf-keyfile-writer.c',
'dconf-service.c',
'dconf-shm-writer.c',
'dconf-writer.c',
'main.c'
]
sources += gnome.gdbus_codegen(
'dconf-generated',
dconf_namespace + '.xml',
interface_prefix: dconf_namespace + '.',
namespace: 'DConfDBus'
)
executable(
'dconf-service',
sources,
include_directories: top_inc,
dependencies: gio_unix_dep,
link_with: [
libdconf_common,
libdconf_shm,
libgvdb
],
install: true,
install_dir: dconf_libexecdir
)
|