Skip to content

Commit

Permalink
build: make benchmark optional
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion committed Oct 11, 2023
1 parent bc503b3 commit 8a7fa50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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')
2 changes: 1 addition & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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])

0 comments on commit 8a7fa50

Please sign in to comment.