build: make benchmark optional
This commit is contained in:
parent
bc503b3206
commit
8a7fa50bb2
2 changed files with 2 additions and 1 deletions
|
@ -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', type : 'boolean', value : true, description: 'Build Gamescope executable')
|
||||||
option('enable_gamescope_wsi_layer', type : 'boolean', value : true, description: 'Build Gamescope layer')
|
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('enable_openvr_support', type : 'boolean', value : true, description: 'OpenVR Integrations')
|
||||||
|
option('benchmark', type: 'feature', description: 'Benchmark tools')
|
||||||
|
|
|
@ -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_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])
|
executable('gamescope_color_tests', ['color_tests.cpp', 'color_helpers.cpp'], dependencies:[glm_dep])
|
||||||
|
|
Loading…
Reference in a new issue