]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: Auth remote backend
authorFred Morcos <fred.morcos@open-xchange.com>
Wed, 12 Jul 2023 21:06:23 +0000 (23:06 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 12:28:29 +0000 (13:28 +0100)
meson.build
meson_options.txt

index c29c48016408d5c0f2aef8ca50ba152e4fea7a4c..cc2862427912285fdf1cf731e82d3e026e83db07 100644 (file)
@@ -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')
index c380705989a1e15b73c775be99fe041f423885fa..48d2d3a531ce3301033a4fe8f140c61794227361 100644 (file)
@@ -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')