summaryrefslogtreecommitdiff
path: root/src/zeroconf/avahi/meson.build
blob: d13b55201917777f59f4fb629d746d4a0cbebb16 (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
libavahi_client = dependency('avahi-client', required: get_option('zeroconf') == 'avahi')
if not libavahi_client.found()
  avahi_dep = dependency('', required: false)
  subdir_done()
endif

avahi = static_library(
  'avahi',
  'Client.cxx',
  'Error.cxx',
  'Poll.cxx',
  'Publisher.cxx',
  include_directories: inc,
  dependencies: [
    libavahi_client,
  ],
)

avahi_dep = declare_dependency(
  link_with: avahi,
  dependencies: [
    event_dep,
  ],
)