[glib: 1/2] Introduce oss_fuzz feature option
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] Introduce oss_fuzz feature option
- Date: Wed, 13 Mar 2019 11:47:55 +0000 (UTC)
commit 92043cf077e33814a55cd1a77cae8eb57af3f6d1
Author: pdknsk <pdknsk gmail com>
Date: Wed Mar 13 11:47:36 2019 +0000
Introduce oss_fuzz feature option
fuzzing/meson.build | 2 +-
meson_options.txt | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/fuzzing/meson.build b/fuzzing/meson.build
index 16878fedf..7fdd8c909 100644
--- a/fuzzing/meson.build
+++ b/fuzzing/meson.build
@@ -13,7 +13,7 @@ extra_c_args = cc.get_supported_arguments('-Werror=unused-function')
# Links in a static library provided by oss-fuzz, else a standalone driver.
# https://github.com/google/oss-fuzz/blob/master/docs/new_project_guide.md#buildsh-script-environment
-fuzzing_engine = cxx.find_library('FuzzingEngine', required : false)
+fuzzing_engine = cxx.find_library('FuzzingEngine', required : get_option('oss_fuzz'))
if fuzzing_engine.found()
deps += fuzzing_engine
else
diff --git a/meson_options.txt b/meson_options.txt
index 5c5b4dfe1..897d06607 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -89,3 +89,8 @@ option('nls',
value : 'auto',
yield: true,
description : 'Enable native language support (translations)')
+
+option('oss_fuzz',
+ type : 'feature',
+ value : 'disabled',
+ description : 'Indicate oss-fuzz build environment')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]