fallback : ['gst-plugins-base', 'sdp_dep'])
gstrtsp_dep = dependency('gstreamer-rtsp-1.0', version : gst_req,
fallback : ['gst-plugins-base', 'rtsp_dep'])
-if host_machine.system() != 'windows'
- gstcheck_dep = dependency('gstreamer-check-1.0', version : gst_req,
+gstcheck_dep = dependency('gstreamer-check-1.0', version : gst_req,
required : get_option('tests'),
fallback : ['gstreamer', 'gst_check_dep'])
-endif
gstcontroller_dep = dependency('gstreamer-controller-1.0', version : gst_req,
fallback : ['gstreamer', 'gst_controller_dep'])
# name, condition when to skip the test and extra dependencies
ugly_tests = [
- [ 'elements/amrnbenc', not amrnb_dep.found() ],
- [ 'elements/mpeg2dec', not mpeg2_dep.found(), [ gstvideo_dep ] ],
- [ 'elements/x264enc', not x264_dep.found() ],
[ 'elements/xingmux' ],
- [ 'generic/states' ],
]
+# FIXME: unistd dependency or not tested yet on windows
+if host_machine.system() != 'windows'
+ ugly_tests += [
+ [ 'elements/amrnbenc', not amrnb_dep.found() ],
+ [ 'elements/mpeg2dec', not mpeg2_dep.found() or not cdata.has('HAVE_UNISTD_H'), [ gstvideo_dep ] ],
+ [ 'elements/x264enc', not x264_dep.found() or not cdata.has('HAVE_UNISTD_H') ],
+ [ 'generic/states', not cdata.has('HAVE_UNISTD_H') ],
+ ]
+endif
+
test_defines = [
'-UG_DISABLE_ASSERT',
'-UG_DISABLE_CAST_CHECKS',
env.set('GST_PLUGIN_SYSTEM_PATH_1_0', '')
env.set('CK_DEFAULT_TIMEOUT', '20')
env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer', 'gst-plugins-base',
- 'gst-plugins-good', 'gst-plugins-ugly@' + meson.build_root(), separator: ':')
+ 'gst-plugins-good', 'gst-plugins-ugly@' + meson.build_root())
env.set('GST_PLUGIN_PATH_1_0', [meson.build_root()] + pluginsdirs)
env.set('GST_REGISTRY', '@0@/@1@.registry'.format(meson.current_build_dir(), test_name))
test(test_name, exe, env: env, timeout: 3 * 60)