summaryrefslogtreecommitdiff
path: root/gsettings/meson.build
blob: 41e65ad8de7a3032684e9dac7c4b7f43887e91d3 (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
sources = files('dconfsettingsbackend.c')

cflags = '-DG_LOG_DOMAIN="@0@"'.format(meson.project_name())

libdconf_settings = shared_library(
  meson.project_name() + 'settings',
  sources: sources,
  include_directories: top_inc,
  dependencies: gio_unix_dep,
  c_args: cflags,
  link_with: [
    libdconf_common_hidden,
    libdconf_engine_shared,
    libdconf_gdbus_thread_shared,
    libdconf_shm_shared,
    libgvdb_shared
  ],
  install: true,
  install_dir: gio_module_dir
)

envs = test_env + [
  'G_TEST_SRCDIR=' + meson.current_source_dir(),
  'G_TEST_BUILDDIR=' + meson.current_build_dir(),
  'GSETTINGS_LIB=' + libdconf_settings.full_path(),
]

unit_test = 'abicheck'

test(
  unit_test,
  find_program(unit_test + '.sh'),
  env: envs,
)