build: make benchmark optional

This commit is contained in:
Simon Ser 2023-10-11 16:00:23 +02:00
parent bc503b3206
commit 8a7fa50bb2
2 changed files with 2 additions and 1 deletions

View file

@ -2,3 +2,4 @@ option('pipewire', type: 'feature', description: 'Screen capture via PipeWire')
option('enable_gamescope', type : 'boolean', value : true, description: 'Build Gamescope executable')
option('enable_gamescope_wsi_layer', type : 'boolean', value : true, description: 'Build Gamescope layer')
option('enable_openvr_support', type : 'boolean', value : true, description: 'OpenVR Integrations')
option('benchmark', type: 'feature', description: 'Benchmark tools')

View file

@ -139,7 +139,7 @@ endif
)
benchmark_dep = dependency('benchmark')
benchmark_dep = dependency('benchmark', required: get_option('benchmark'), disabler: true)
executable('gamescope_color_microbench', ['color_bench.cpp', 'color_helpers.cpp'], dependencies:[benchmark_dep, glm_dep])
executable('gamescope_color_tests', ['color_tests.cpp', 'color_helpers.cpp'], dependencies:[glm_dep])