]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Revert "Refactor meson building of fuzz tools" revert-14703-refactor-meson-fuzz
authorFred Morcos <fm@fredmorcos.com>
Tue, 24 Sep 2024 08:13:08 +0000 (10:13 +0200)
committerGitHub <noreply@github.com>
Tue, 24 Sep 2024 08:13:08 +0000 (10:13 +0200)
meson.build

index c201c5cc0883b750d96d5b37600bd8d81046fd4b..65598a86ada4808b59bd74f2bec3f01a4d910e98 100644 (file)
@@ -944,21 +944,14 @@ if get_option('unit-tests')
 endif
 
 if get_option('fuzz-targets')
-  fuzz_targets = [
-    'moadnsparser',
-    'packetcache',
-    'proxyprotocol',
-    'dnslabeltext-parseRFC1035CharString',
-    'yahttp',
-    'zoneparsertng',
-  ]
-
-  foreach target: fuzz_targets
-    source_file = src_dir / 'fuzz_' + target.underscorify() + '.cc'
-    tools += {
-      'fuzz-target-' + target: { 'main': source_file }
-    }
-  endforeach
+  tools += {
+    'fuzz-target-moadnsparser'                        : { 'main': src_dir / 'fuzz_moadnsparser.cc'                        },
+    'fuzz-target-packetcache'                         : { 'main': src_dir / 'fuzz_packetcache.cc'                         },
+    'fuzz-target-proxyprotocol'                       : { 'main': src_dir / 'fuzz_proxyprotocol.cc'                       },
+    'fuzz-target-dnslabeltext-parseRFC1035CharString' : { 'main': src_dir / 'fuzz_dnslabeltext_parseRFC1035CharString.cc' },
+    'fuzz-target-yahttp'                              : { 'main': src_dir / 'fuzz_yahttp.cc'                              },
+    'fuzz-target-zoneparsertng'                       : { 'main': src_dir / 'fuzz_zoneparsertng.cc'                       },
+  }
 endif
 
 libpdns_common = declare_dependency(