conf.set_quoted('PDNS_MODULES', ' '.join(selected_modules), description: 'Built-in modules')
conf.set_quoted('PDNS_DYN_MODULES', ' '.join(selected_dyn_modules), description: 'Dynamically loadable modules that were built along with pdns')
+# Generate config.h ----------------------------------------------------------------------
+config_h = configure_file(configuration: conf, output: 'config.h')
+# summary('Defines', conf.keys(), section: 'Build Configuration') # TODO Meson 0.57
+
# Ext
ext_modules = ['yahttp', 'ipcrypt', 'json11']
subdir('ext')
# Pdns
subdir('pdns')
-# Generate config.h ----------------------------------------------------------------------
-config_h = configure_file(configuration: conf, output: 'config.h')
-# summary('Defines', conf.keys(), section: 'Build Configuration') # TODO Meson 0.57
-
-# TODO: Add source files
-internal_deps = [libpdns, libpdns_bindparser, libpdns_auth]
+internal_deps = [libpdns, libpdns_auth]
auth = executable('pdns_server', config_h, dependencies: deps, link_with: internal_deps, export_dynamic: true)