summaryrefslogtreecommitdiff
path: root/service/meson.build
blob: 7d54805da3db472903bcb0bc4a6653a0e5f4dc11 (plain)
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
63
service_conf = configuration_data()
service_conf.set('libexecdir', dconf_libexecdir)

service = dconf_namespace + '.service'

configure_file(
  input: service + '.in',
  output: service,
  configuration: service_conf,
  install: true,
  install_dir: dbus_session_service_dir,
)

lib_sources = [
  'dconf-blame.c',
  'dconf-gvdb-utils.c',
  'dconf-keyfile-writer.c',
  'dconf-service.c',
  'dconf-shm-writer.c',
  'dconf-writer.c',
]
sources = [
  'main.c',
]

dconf_generated = gnome.gdbus_codegen(
  'dconf-generated',
  dconf_namespace + '.xml',
  interface_prefix: dconf_namespace + '.',
  namespace: 'DConfDBus',
)

lib_sources += dconf_generated

libdconf_service = static_library(
  'dconf-service',
  sources: lib_sources,
  include_directories: top_inc,
  c_args: dconf_c_args,
  dependencies: gio_unix_dep,
  link_with: [
    libdconf_common,
    libdconf_shm,
    libgvdb,
  ],
)

libdconf_service_dep = declare_dependency(
  link_with: libdconf_service,
  dependencies: gio_unix_dep,
  sources: dconf_generated,
)

executable(
  'dconf-service',
  sources,
  include_directories: top_inc,
  c_args: dconf_c_args,
  dependencies: gio_unix_dep,
  link_with: libdconf_service,
  install: true,
  install_dir: dconf_libexecdir,
)