File: meson.build

package info (click to toggle)
pdns 5.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,824 kB
  • sloc: cpp: 101,247; sh: 5,616; makefile: 2,318; sql: 860; ansic: 675; python: 635; yacc: 245; perl: 161; lex: 131
file content (21 lines) | stat: -rw-r--r-- 834 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
dep_yaml_cpp = dependency('', required: false)

if get_option('module-geoip') != 'disabled' or get_option('tools-ixfrdist')
  dep_yaml_cpp = dependency('yaml-cpp', version: '>= 0.5', required: true)
endif

if get_option('module-geoip') != 'disabled'
  summary('YAML-CPP', dep_yaml_cpp.found(), bool_yn: true, section: 'GeoIP Backend')
  if dep_yaml_cpp.found()
    summary('YAML-CPP Name', dep_yaml_cpp.name(), section: 'GeoIP Backend')
    summary('YAML-CPP Version', dep_yaml_cpp.version(), section: 'GeoIP Backend')
  endif
endif

if get_option('tools-ixfrdist')
  summary('YAML-CPP', dep_yaml_cpp.found(), bool_yn: true, section: 'IXFRDist')
  if dep_yaml_cpp.found()
    summary('YAML-CPP Name', dep_yaml_cpp.name(), section: 'IXFRDist')
    summary('YAML-CPP Version', dep_yaml_cpp.version(), section: 'IXFRDist')
  endif
endif