From: Fred Morcos Date: Wed, 12 Jul 2023 21:06:23 +0000 (+0200) Subject: Meson: Auth remote backend X-Git-Tag: rec-5.1.0-alpha1~80^2~329 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45964631e5f5af1565740cc66ccc218e06bc0327;p=thirdparty%2Fpdns.git Meson: Auth remote backend --- diff --git a/meson.build b/meson.build index c29c480164..cc28624279 100644 --- a/meson.build +++ b/meson.build @@ -120,6 +120,7 @@ all_modules = [ ['gpgsql', 'pgsql'], ['gsqlite3', 'sqlite3'], ['ldap', 'ldap'], + ['remote', 'curl'], ] selected_modules = [] foreach module: all_modules @@ -129,12 +130,16 @@ foreach module: all_modules opt_dyn = get_option('module-' + name + '-dyn') if opt or opt_dyn - subdir('meson' / dep) - # TODO Also build the actual backend. - if opt selected_modules += name endif + + if name == 'remote' and not opt_unittests + continue # We only need cURL for unit tests. + endif + + subdir('meson' / dep) + # TODO Also build the actual backend. endif endforeach conf.set_quoted('PDNS_MODULES', ' '.join(selected_modules), description: 'Built-in modules') diff --git a/meson_options.txt b/meson_options.txt index c380705989..48d2d3a531 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -27,3 +27,5 @@ option('module-gsqlite3', type: 'boolean', value: false, description: 'Build the option('module-gsqlite3-dyn', type: 'boolean', value: false, description: 'Build the dynamically loadable gsqlite3 backend') option('module-ldap', type: 'boolean', value: false, description: 'Build the LDAP backend') option('module-ldap-dyn', type: 'boolean', value: false, description: 'Build the dynamically loadable LDAP backend') +option('module-remote', type: 'boolean', value: false, description: 'Build the remote backend') +option('module-remote-dyn', type: 'boolean', value: false, description: 'Build the dynamically loadable remote backend')