From: Fred Morcos Date: Fri, 18 Aug 2023 22:18:16 +0000 (+0200) Subject: Meson: Auth Backends: bind X-Git-Tag: rec-5.1.0-alpha1~80^2~179 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65acb100511cd76d999a32700864600f94c723b7;p=thirdparty%2Fpdns.git Meson: Auth Backends: bind --- diff --git a/modules/bindbackend/meson.build b/modules/bindbackend/meson.build index d07ae3a9e4..4d1c33deae 100644 --- a/modules/bindbackend/meson.build +++ b/modules/bindbackend/meson.build @@ -3,34 +3,22 @@ sources = [ 'binddnssec.cc', ] -headers = [ +extras = [ 'bindbackend2.hh', -] -# TODO These should be packaged up some other way (and avoid product_source_dir) -docs = [ + # TODO These should be packaged up some other way (and avoid product_source_dir) product_source_dir / 'pdns' / 'bind-dnssec.4.2.0_to_4.3.0_schema.sqlite3.sql', product_source_dir / 'pdns' / 'bind-dnssec.schema.sqlite3.sql', ] -if get_variable(module_name + '_module') - lib = static_library( - module_backend_name, - sources, - dependencies: [dep_pdns, dep_libcrypto], - extra_files: [headers, docs], - ) +deps = [dep_pdns, dep_libcrypto] - set_variable('dep_static_' + module_name, lib) +set_variable('dep_' + module_backend_name, dependency('', required: false)) +if module_opt + lib = static_library(module_backend_name, sources, dependencies: deps, extra_files: extras) + set_variable('dep_' + module_backend_name, lib) endif -if get_variable(module_name + '_dyn_module') - lib = shared_module( - module_backend_name, - sources, - dependencies: [dep_pdns, dep_libcrypto], - extra_files: [headers, docs], - ) - - set_variable('dep_dyn_' + module_name, lib) +if module_opt_dyn + shared_module(module_backend_name, sources, dependencies: deps, extra_files: extras) endif