summaryrefslogtreecommitdiff
path: root/common/meson.build
blob: 074dd92e19b9c69c63eefe0ae5465c3670c7fe18 (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
libgdmcommon_src = files(
  'gdm-address.c',
  'gdm-common.c',
  'gdm-log.c',
  'gdm-profile.c',
  'gdm-settings-backend.c',
  'gdm-settings-desktop-backend.c',
  'gdm-settings-direct.c',
  'gdm-settings-utils.c',
  'gdm-settings.c',
)

libgdmcommon_deps = [
  libsystemd_dep,
  gobject_dep,
  gio_dep,
  gio_unix_dep,
]

if libselinux_dep.found()
  libgdmcommon_deps += libselinux_dep
endif

libgdmcommon_lib = static_library('gdmcommon',
  libgdmcommon_src,
  dependencies: libgdmcommon_deps,
  include_directories: config_h_dir,
)

libgdmcommon_dep = declare_dependency(
  link_with: libgdmcommon_lib,
  dependencies: libgdmcommon_deps,
  include_directories: include_directories('.'),
)

install_data('gdb-cmd')

# test-log exectuable
test_log = executable('test-log',
  'test-log.c',
  dependencies: libgdmcommon_dep,
  include_directories: config_h_dir,
)