summaryrefslogtreecommitdiff
path: root/gsettings/meson.build
blob: a28892d93a4a42c386e819abb4f0a4fb59a300ea (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
# We use the libraries directly, as the dependency objects use
# link_whole; this avoids the gsettings backend module exposing
# symbols other than g_io_module_*
backend_deps = [
  libdconf_common_hidden,
  libdconf_gdbus_thread,
]

libdconf_settings = shared_library(
  'dconfsettings',
  sources: 'dconfsettingsbackend.c',
  include_directories: top_inc,
  link_with: backend_deps,
  dependencies: gio_dep,
  c_args: dconf_c_args,
  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,
)