Add an option to disable tests

This commit is contained in:
Thibault Saunier 2019-02-25 11:12:23 -03:00
parent dd3e1854ef
commit 06ad721f91
3 changed files with 3 additions and 2 deletions

View file

@ -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])

1
meson_options.txt Normal file
View file

@ -0,0 +1 @@
option('tests', type : 'feature', value : 'auto', yield : true)

View file

@ -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])