summaryrefslogtreecommitdiff
path: root/ges
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@osg.samsung.com>2017-10-04 17:07:26 -0300
committerThibault Saunier <thibault.saunier@osg.samsung.com>2017-10-11 18:27:53 +0200
commitadeecf4b4ad40052383e5e78c122e547ce84b131 (patch)
tree93329762308bc52d3138203080febe1c91e25640 /ges
parent288b061843101f7eb63980d76ec567cc80dfe89e (diff)
Run tests only when using mono and set MONO_PATH
Diffstat (limited to 'ges')
-rw-r--r--ges/meson.build10
1 files changed, 7 insertions, 3 deletions
diff --git a/ges/meson.build b/ges/meson.build
index 2193df0..aecf932 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)
+if add_languages('c', required: false) 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])
@@ -25,6 +25,10 @@ if add_languages('c', required: false)
cs_args: ['-nowarn:169', '-nowarn:108', '-nowarn:114', '-nowarn:0618', '-unsafe'],
dependencies: [ges_sharp_dep])
- test(pkg + 'abi', diff, args: [c_abi_exe.full_path(), cs_abi_exe.full_path()])
+ env = environment()
+ env.prepend('MONO_PATH', mono_path)
+ test(pkg + 'abi', diff, args: [c_abi_exe.full_path(), cs_abi_exe.full_path()],
+ env: env)
+else
+ message('Not running tests ' + csc.get_id())
endif
-