From 06ad721f910b9663837c4174ba1876e614cd4558 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Mon, 25 Feb 2019 11:12:23 -0300 Subject: [PATCH] Add an option to disable tests --- ges/meson.build | 2 +- meson_options.txt | 1 + sources/meson.build | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 meson_options.txt diff --git a/ges/meson.build b/ges/meson.build index 092b72d..b00d553 100644 --- a/ges/meson.build +++ b/ges/meson.build @@ -16,7 +16,7 @@ configure_file( output: pkg + '-sharp.dll.config', configuration: configuration_data()) -if add_languages('c', required: false) and csc.get_id() == 'mono' +if add_languages('c', required: get_option('tests')) and csc.get_id() == 'mono' c_abi_exe = executable(pkg + '_c_abi', c_abi, c_args: ['-Wno-deprecated', '-Wno-deprecated-declarations'], dependencies: [gst_deps, ges_dep]) diff --git a/meson_options.txt b/meson_options.txt new file mode 100644 index 0000000..b27c329 --- /dev/null +++ b/meson_options.txt @@ -0,0 +1 @@ +option('tests', type : 'feature', value : 'auto', yield : true) \ No newline at end of file diff --git a/sources/meson.build b/sources/meson.build index 6b44a7d..a08dc0d 100644 --- a/sources/meson.build +++ b/sources/meson.build @@ -41,7 +41,7 @@ gst_sharp = shared_library('gstreamer-sharp', gst_generate_files, sources, gst_sharp_dep = declare_dependency(dependencies: [glib_sharp_dep, gio_sharp_dep], link_with: gst_sharp) -if add_languages('c', required: false) and csc.get_id() == 'mono' +if add_languages('c', required: get_option('tests')) and csc.get_id() == 'mono' c_abi_exe = executable('gst_sharp_c_abi', c_abi, c_args: ['-DGST_USE_UNSTABLE_API'], dependencies: [gst_deps]) -- 2.7.4