Browse Source

meson: disable building all tests when the option says so

Follow-up to 0e4be11159.
pull/175/head
Steve Lhomme 1 year ago
parent
commit
726d77656d
  1. 3
      modules/access/http/meson.build
  2. 2
      modules/codec/meson.build
  3. 2
      modules/demux/meson.build

3
modules/access/http/meson.build

@ -25,6 +25,7 @@ vlc_http_lib = static_library('vlc_http',
include_directories: [vlc_include_dirs],
)
if (get_option('tests').allowed())
#
# Tests
#
@ -84,7 +85,7 @@ test('http_h1chunked_test', h1chunked_test, suite: 'http')
test('http_msg_test', http_msg_test, suite: 'http')
test('http_file_test', http_file_test, suite: 'http')
test('http_tunnel_test', http_tunnel_test, suite: 'http', timeout: 90)
endif
#
# HTTP(S) module

2
modules/codec/meson.build

@ -409,6 +409,7 @@ if get_option('css_engine').require(flex.found() and bison.found(),
webvtt_bison_files,
]
if (get_option('tests').allowed())
# CSS parser test
css_parser_test = executable('css_parser_test',
files(
@ -423,6 +424,7 @@ if get_option('css_engine').require(flex.found() and bison.found(),
include_directories('webvtt')])
test('css_parser', css_parser_test, suite: 'css_parser')
endif
endif

2
modules/demux/meson.build

@ -36,12 +36,14 @@ if ogg_dep.found()
}
endif
if (get_option('tests').allowed())
# Xiph test
xiph_test = executable('xiph_test',
files('xiph_test.c'),
include_directories: [vlc_include_dirs])
test('xiph_test', xiph_test, suite: 'demux')
endif
# Demux dump
vlc_modules += {

Loading…
Cancel
Save