From 726d77656d543345b55f5f4ce51452fae37b9c58 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Fri, 29 Nov 2024 10:14:03 +0100 Subject: [PATCH] meson: disable building all tests when the option says so Follow-up to 0e4be111590da80c4a695e4efc4a007eae604bc8. --- modules/access/http/meson.build | 3 ++- modules/codec/meson.build | 2 ++ modules/demux/meson.build | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/access/http/meson.build b/modules/access/http/meson.build index f7b1104902..1ded30fd4f 100644 --- a/modules/access/http/meson.build +++ b/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 diff --git a/modules/codec/meson.build b/modules/codec/meson.build index 3893ed9616..4e7a7de9c9 100644 --- a/modules/codec/meson.build +++ b/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 diff --git a/modules/demux/meson.build b/modules/demux/meson.build index f302b7b42f..9c9f90f750 100644 --- a/modules/demux/meson.build +++ b/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 += {