summaryrefslogtreecommitdiff
path: root/src/neighbor/meson.build
blob: 00033bd26930c48a5a3df190d795a80ca94c1bd6 (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
if not get_option('neighbor')
  conf.set('ENABLE_NEIGHBOR_PLUGINS', false)
  neighbor_glue_dep = dependency('', required: false)
  subdir_done()
endif

neighbor_api_dep = declare_dependency()

subdir('plugins')

conf.set('ENABLE_NEIGHBOR_PLUGINS', found_neighbor_plugin)
if not found_neighbor_plugin
  neighbor_glue_dep = dependency('', required: false)
  subdir_done()
endif

neighbor_glue = static_library(
  'neighbor_glue',
  'Glue.cxx',
  'Registry.cxx',
  include_directories: inc,
)

neighbor_glue_dep = declare_dependency(
  link_with: neighbor_glue,
  dependencies: [
    neighbor_plugins_dep,
    config_dep,
  ],
)