mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
Introduce oss_fuzz feature option
This commit is contained in:
parent
1a03ebc43a
commit
92043cf077
@ -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.
|
# 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
|
# 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()
|
if fuzzing_engine.found()
|
||||||
deps += fuzzing_engine
|
deps += fuzzing_engine
|
||||||
else
|
else
|
||||||
|
@ -89,3 +89,8 @@ option('nls',
|
|||||||
value : 'auto',
|
value : 'auto',
|
||||||
yield: true,
|
yield: true,
|
||||||
description : 'Enable native language support (translations)')
|
description : 'Enable native language support (translations)')
|
||||||
|
|
||||||
|
option('oss_fuzz',
|
||||||
|
type : 'feature',
|
||||||
|
value : 'disabled',
|
||||||
|
description : 'Indicate oss-fuzz build environment')
|
||||||
|
Loading…
Reference in New Issue
Block a user