diff options
author | Thibault Saunier <tsaunier@igalia.com> | 2019-02-25 11:12:23 -0300 |
---|---|---|
committer | Thibault Saunier <tsaunier@igalia.com> | 2019-02-25 13:28:51 -0300 |
commit | 06ad721f910b9663837c4174ba1876e614cd4558 (patch) | |
tree | 01816aa192157fd52aaedd35290fe794577b6b8f | |
parent | dd3e1854ef58d4050b03998ca41ebb8819822788 (diff) |
Add an option to disable tests
-rw-r--r-- | ges/meson.build | 2 | ||||
-rw-r--r-- | meson_options.txt | 1 | ||||
-rw-r--r-- | sources/meson.build | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/ges/meson.build b/ges/meson.build index 092b72d8b7..b00d553ce2 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 0000000000..b27c329ec8 --- /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 6b44a7d7ea..a08dc0d54d 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]) |