summaryrefslogtreecommitdiffstats
path: root/plugins/smartcard/meson.build
blob: 916a0fcb402456f901f0a9bf6d3bcd085d465a54 (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
sources = files(
  'gsd-smartcard-manager.c',
  'gsd-smartcard-service.c',
  'gsd-smartcard-utils.c',
  'main.c'
)

enum_headers = files(
  'gsd-smartcard-manager.h',
  'gsd-smartcard-utils.h'
)

enum_types = 'gsd-smartcard-enum-types'

sources += gnome.mkenums(
  enum_types,
  sources: enum_headers,
  c_template: enum_types + '.c.in',
  h_template: enum_types + '.h.in'
)

gdbus = 'org.gnome.SettingsDaemon.Smartcard'

sources += gnome.gdbus_codegen(
  gdbus,
  gdbus + '.xml',
  interface_prefix: gdbus + '.',
  namespace: 'GsdSmartcardService',
  object_manager: true
)

deps = plugins_deps + [
  gio_unix_dep,
  libnotify_dep,
  nss_dep
]

cflags += ['-DGSD_SMARTCARD_MANAGER_NSS_DB="@0@"'.format(system_nssdb_dir)]

executable(
  'gsd-' + plugin_name,
  sources,
  include_directories: [top_inc, common_inc],
  dependencies: deps,
  c_args: cflags,
  install: true,
  install_rpath: gsd_pkglibdir,
  install_dir: gsd_libexecdir
)