Browse Source

meson: allow disabling building test executables

They should not be built when cross-compiling and we don't have an exe_wrapper.
They can't be run directly. They may be used on another machine, so it should be
possible to force it.

Disabled on Windows for now as we can't run them because they rely on alarm().
pull/170/head
Steve Lhomme 1 year ago
committed by Felix Paul Kühne
parent
commit
0e4be11159
  1. 10
      meson.build
  2. 5
      meson_options.txt

10
meson.build

@ -1064,9 +1064,13 @@ subdir('bin')
# VLC plugins
subdir('modules')
# Integration and non-regression tests, some unittest are there too but the
# modules/, src/ and lib/ folders should be favoured for those.
subdir('test')
if (get_option('tests')
.disable_auto_if(host_system in ['windows'])
.allowed())
# Integration and non-regression tests, some unittest are there too but the
# modules/, src/ and lib/ folders should be favoured for those.
subdir('test')
endif
if get_option('rust').allowed()
warning('''

5
meson_options.txt

@ -5,6 +5,11 @@ option('vlc',
value : true,
description : 'Build the VLC executable program.')
option('tests',
type : 'feature',
value : 'auto',
description : 'Build the VLC test executables.')
option('nls',
type : 'feature',
value : 'auto',

Loading…
Cancel
Save