subdir('meson' / 'clock-gettime') # Clock_gettime
subdir('meson' / 'boost') # Boost
subdir('meson' / 'boost-program-options') # Boost Program Options Library
-subdir('meson' / 'unit-tests') # Unit Tests
-subdir('meson' / 'auth-backend-unit-tests') # Auth Backend Unit Tests
subdir('meson' / 'reproducible') # Reproducible Builds
subdir('meson' / 'fuzz-targets') # Fuzzing Targets
subdir('meson' / 'dlopen') # dlopen
subdir('meson' / 'verbose-logging') # Verbose Logging
subdir('meson' / 'pkcs11') # PKCS11
subdir('meson' / 'gss-tsig') # GSS-TSIG
-subdir('meson' / 'auth-tools') # Tools
-subdir('meson' / 'ixfrdist') # Ixfrdist
subdir('meson' / 'systemd') # Systemd and unit file handling
subdir('meson' / 'code-coverage') # Code coverage
subdir('meson' / 'auto-var-init') # Automatic Variable Initialization
subdir('meson' / 'various-functions') # Various Functions
subdir('meson' / 'various-headers') # Various Headers
+if get_option('unit-tests') or get_option('unit-tests-backends')
+ subdir('meson' / 'boost-test')
+endif
+
+if get_option('module-geoip') != 'disabled' or get_option('tools-ixfrdist')
+ subdir('meson' / 'yaml-cpp')
+endif
+
# Manpages
# if not fs.exists('docs' / 'pdns_server.1') and not python_have_venv
# warning('Python3 and/or its venv module is not available and ' +
dep_rt,
dep_boost,
dep_boost_program_options,
- dep_unittests,
- dep_backend_unittests,
dep_dlopen,
dep_pkcs11,
dep_gss_tsig,
- dep_ixfrdist,
dep_yahttp,
dep_ipcrypt,
dep_json11,
'lua2': {'deps': [], 'exts': []},
'remote': {'deps': ['prog-curl', 'zeromq'], 'exts': []},
'tinydns': {'deps': ['cdb'], 'exts': []},
- 'geoip': {'deps': ['geoip', 'mmdb', 'yaml-cpp'], 'exts': []},
+ 'geoip': {'deps': ['geoip', 'mmdb'], 'exts': []},
'lmdb': {'deps': ['lmdb', 'boost-serialization'], 'exts': ['lmdb-safe']},
}
foreach dep: module_deps
if module_name == 'remote'
if dep == 'prog-curl'
- if not opt_unittests
+ if not get_option('unit-tests')
continue # We only need cURL for unit tests.
endif
elif dep == 'zeromq'
+++ /dev/null
-opt_backend_unittests = get_option('unit-tests-backends')
-dep_backend_unittests = dependency('', required: false)
-
-conf.set('BACKEND_UNIT_TESTS', opt_backend_unittests, description: 'Backend unit tests')
-
-if opt_backend_unittests
- dep_boost_test = dependency('boost', modules: ['unit_test_framework'], required: true)
-
- if not dep_unittests.found()
- summary('Test', dep_boost_test.found(), bool_yn: true, section: 'Boost')
- endif
-
- dep_backend_unittests = declare_dependency(dependencies: dep_boost_test)
-endif
+++ /dev/null
-opt_ixfrdist = get_option('tools-ixfrdist')
-dep_ixfrdist = dependency('', required: false)
-
-if opt_ixfrdist
- dep_yaml_cpp = dependency('yaml-cpp', version: '>= 0.5', required: true)
- dep_ixfrdist = declare_dependency(dependencies: dep_yaml_cpp)
-endif
-
-conf.set('IXFRDIST', dep_ixfrdist.found(), description: 'Whether to build ixfrdist')
-summary('Build `ixfrdist`', dep_ixfrdist.found(), bool_yn: true, section: 'Configuration')
+++ /dev/null
-opt_unittests = get_option('unit-tests')
-dep_unittests = dependency('', required: false)
-
-conf.set('UNIT_TESTS', opt_unittests, description: 'Unit tests')
-
-if opt_unittests
- dep_boost_test = dependency('boost', modules: ['unit_test_framework'], required: true)
- summary('Test', dep_boost_test.found(), bool_yn: true, section: 'Boost')
- dep_unittests = declare_dependency(dependencies: dep_boost_test)
-endif