)
libpdns_bind_parser = declare_dependency(
- link_with: static_library(
+ link_whole: static_library(
'pdns-bind-parser',
'zoneparser-tng.cc',
extra_files: [
libpdns_lua = dependency('', required: false)
if dep_lua.found()
libpdns_lua = declare_dependency(
- link_with: static_library(
+ link_whole: static_library(
'pdns-lua',
'lua-base4.cc',
extra_files: [
libpdns_lua_records = dependency('', required: false)
if dep_lua_records.found()
libpdns_lua_records = declare_dependency(
- link_with: static_library(
+ link_whole: static_library(
'pdns-lua-records',
'lua-record.cc',
'minicurl.cc',
libpdns_gss = dependency('', required: false)
libpdns_gss = declare_dependency(
- link_with: static_library(
+ link_whole: static_library(
'pdns-gss',
'gss_context.cc',
extra_files: [
libpdns_pkcs11 = dependency('', required: false)
if dep_pkcs11.found()
libpdns_pkcs11 = declare_dependency(
- link_with: static_library(
+ link_whole: static_library(
'pdns-pkcs11',
'pkcs11signers.cc',
extra_files: [
endif
libpdns_ws = declare_dependency(
- link_with: static_library(
+ link_whole: static_library(
'pdns-ws',
'webserver.cc',
'ws-api.cc',
)
libpdns_tsig = declare_dependency(
- link_with: static_library(
+ link_whole: static_library(
'pdns-tsig',
'tsigutils.cc',
'tsigverifier.cc',
libpdns_dnslabeltext_cc = ragel_generator.process('dnslabeltext.rl')
endif
-libpdns = declare_dependency(
- link_with: static_library(
- 'pdns',
+libpdns_base = declare_dependency(
+ link_whole: static_library(
+ 'pdns-base',
'arguments.cc',
'axfr-retriever.cc',
# TODO Move to a separate module
'backends' / 'gsql' / 'gsqlbackend.cc',
'base32.cc',
'base64.cc',
- 'communicator.cc',
'credentials.cc',
'dbdnsseckeeper.cc',
'dns.cc',
'dnssecinfra.cc',
'dnssecsigner.cc',
'dnswriter.cc',
- 'dynhandler.cc',
'dynlistener.cc',
'ednscookies.cc',
'ednsoptions.cc',
'ixfr.cc',
'json.cc',
'logger.cc',
- 'mastercommunicator.cc',
'misc.cc',
- 'nameserver.cc',
'nsecrecords.cc',
'opensslsigners.cc',
- 'packethandler.cc',
'proxy-protocol.cc',
'qtype.cc',
'query-local-address.cc',
'rcpgenerator.cc',
'resolver.cc',
'responsestats.cc',
- 'rfc2136handler.cc',
'secpoll.cc',
'serialtweaker.cc',
'shuffle.cc',
'signingpipe.cc',
'sillyrecords.cc',
- 'slavecommunicator.cc',
'statbag.cc',
'stubresolver.cc',
'svc-records.cc',
- 'tcpreceiver.cc',
'threadname.cc',
- 'tkey.cc',
'trusted-notification-proxy.cc',
'ueberbackend.cc',
'unix_semaphore.cc',
'unix_utility.cc',
'uuid-utils.cc',
'version.cc',
- 'zoneparser-tng.cc',
libpdns_dnslabeltext_cc,
extra_files: [
'arguments.hh',
'cachecleaner.hh',
'circular_buffer.hh',
'comment.hh',
- 'communicator.hh',
'credentials.hh',
'digests.hh',
'distributor.hh',
'logger.hh',
'logging.hh',
'misc.hh',
- 'nameserver.hh',
'namespaces.hh',
'noinitvector.hh',
'opensslsigners.hh',
'packetcache.hh',
- 'packethandler.hh',
'pdnsexception.hh',
'proxy-protocol.hh',
'qtype.hh',
'statbag.hh',
'stubresolver.hh',
'svc-records.hh',
- 'tcpreceiver.hh',
'threadname.hh',
'trusted-notification-proxy.hh',
'ueberbackend.hh',
dependencies: [
deps,
libpdns_bind_parser,
- libpdns_lua,
- libpdns_lua_records,
libpdns_gss,
- libpdns_tsig,
+ libpdns_lua,
libpdns_pkcs11,
+ libpdns_tsig,
+ ],
+ )
+)
+
+libpdns = declare_dependency(
+ link_whole: static_library(
+ 'pdns',
+ 'communicator.cc',
+ 'dynhandler.cc',
+ 'mastercommunicator.cc',
+ 'nameserver.cc',
+ 'packethandler.cc',
+ 'rfc2136handler.cc',
+ 'slavecommunicator.cc',
+ 'tcpreceiver.cc',
+ 'tkey.cc',
+ extra_files: [
+ 'communicator.hh',
+ 'dynhandler.hh',
+ 'nameserver.hh',
+ 'packethandler.hh',
+ 'tcpreceiver.hh',
+ ],
+ dependencies: [
+ deps,
+ libpdns_base,
libpdns_ws,
],
)
)
libpdns_auth_main = declare_dependency(
- link_with: static_library(
+ link_whole: static_library(
'pdns-auth-main',
'auth-main.cc',
extra_files: [
)
libpdns_auth_ws = declare_dependency(
- link_with: static_library(
+ link_whole: static_library(
'pdns-auth-ws',
'ws-auth.cc',
extra_files: [
libpdns_auth_lua = dependency('', required: false)
if dep_lua.found()
libpdns_auth_lua = declare_dependency(
- link_with: static_library(
+ link_whole: static_library(
'pdns-auth-lua',
'lua-auth4.cc',
extra_files: [
)
endif
+libpdns_auth_sources = [
+ 'auth-caches.cc',
+ 'auth-carbon.cc',
+ 'auth-catalogzone.cc',
+ 'auth-packetcache.cc',
+ 'auth-querycache.cc',
+ 'auth-zonecache.cc',
+ 'responsestats-auth.cc',
+ 'secpoll-auth.cc',
+]
+
+if get_variable('dep_sqlite3', dependency('', required: false)).found()
+ libpdns_auth_sources += 'ssqlite3.cc'
+endif
+
libpdns_auth = declare_dependency(
- link_with: static_library(
+ link_whole: static_library(
'pdns-auth',
- 'auth-caches.cc',
- 'auth-carbon.cc',
- 'auth-catalogzone.cc',
- 'auth-packetcache.cc',
- 'auth-querycache.cc',
- 'auth-zonecache.cc',
- 'responsestats-auth.cc',
- 'secpoll-auth.cc',
- 'ssqlite3.cc',
+ libpdns_auth_sources,
extra_files: [
'auth-caches.hh',
'auth-catalogzone.hh',
libpdns_ipcipher = dependency('', required: false)
if enable_ipcipher
libpdns_ipcipher = declare_dependency(
- link_with: static_library(
+ link_whole: static_library(
'pdns-ipcipher',
'ipcipher.cc',
dependencies: deps,
endif
libpdns_util = declare_dependency(
- link_with: static_library(
+ link_whole: static_library(
'pdns-util',
'pdnsutil.cc',
'zonemd.cc',