]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: Fuzzing targets
authorFred Morcos <fred.morcos@open-xchange.com>
Thu, 6 Jul 2023 09:36:23 +0000 (11:36 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 12:28:27 +0000 (13:28 +0100)
meson.build
meson/fuzz-targets/meson.build [new file with mode: 0644]
meson_options.txt

index 69628fe04ef94a89bab012ea108775fb7cee855d..25e8f3ffe4a9b60b80489dadb5f85b4c65636c9d 100644 (file)
@@ -46,6 +46,7 @@ subdir('meson/clock-gettime')   # Clock_gettime
 subdir('meson/boost')           # Boost
 subdir('meson/unit-tests')      # Unit Tests
 subdir('meson/reproducible')    # Reproducible Builds
+subdir('meson/fuzz-targets')    # Fuzzing Targets
 
 # Boost Program Options library
 dep_boost_program_options = dependency('boost', modules: ['program_options'], required: true)
diff --git a/meson/fuzz-targets/meson.build b/meson/fuzz-targets/meson.build
new file mode 100644 (file)
index 0000000..e1d95f3
--- /dev/null
@@ -0,0 +1,5 @@
+# Fuzzing Targets
+# Inputs: conf
+
+opt_fuzz = get_option('fuzz-targets')
+conf.set10('FUZZ_TARGETS', opt_fuzz, description: 'Whether to enable fuzzing targets')
index 7f32c767e0853cb3a33ca40c9caf8749f2d571a3..992c314b02a8bffe161160a6840d1b88568608bd 100644 (file)
@@ -12,3 +12,4 @@ option('ipcipher', type: 'feature', value: 'auto', description: 'Enable ipcipher
 option('unit-tests', type: 'boolean', value: false, description: 'Enable building unit tests')
 option('backend-unit-tests', type: 'boolean', value: false, description: 'Enable building backend unit tests')
 option('reproducible', type: 'boolean', value: false, description: 'Create reproducible builds. Use this only if you are a distribution maintainer and need reproducible builds. If you compile PowerDNS yourself, leave this disabled, as it might make debugging harder')
+option('fuzz-targets', type: 'boolean', value: false, description: 'Enable fuzzing targets')