Commit 0fd4a117 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller

meson: tests: icles: simplify build file

parent 57a6e2ff
tests = [
['equalizer-test'],
['test-accurate-seek', gstapp_dep],
['test-segment-seeks'],
['videocrop-test'],
['videobox-test'],
['videocrop2-test'],
]
gtk_dep = dependency('gtk+-3.0', version : '>= 3.0.0', required : false) gtk_dep = dependency('gtk+-3.0', version : '>= 3.0.0', required : false)
if gtk_dep.found() if gtk_dep.found()
executable('gdkpixbufsink-test', 'gdkpixbufsink-test.c', tests += [
dependencies: [gst_dep, gtk_dep], ['gdkpixbufsink-test', gtk_dep],
c_args : gst_plugins_good_args, ['gdkpixbufoverlay-test', [gstvideo_dep, gtk_dep]],
include_directories : [configinc], ]
install: false)
executable('gdkpixbufoverlay-test', 'gdkpixbufoverlay-test.c',
dependencies: [gstvideo_dep, gst_dep, gtk_dep, libm],
c_args : gst_plugins_good_args,
include_directories : [configinc],
install: false)
endif endif
if cdata.has('HAVE_GST_V4L2') if cdata.has('HAVE_GST_V4L2')
executable('v4l2src-test', 'v4l2src-test.c', tests += [['v4l2src-test', gstvideo_dep]]
dependencies: [gstvideo_dep, gst_dep, libm],
c_args : gst_plugins_good_args,
include_directories : [configinc],
install: false)
endif endif
if get_variable('have_oss4', false) if get_variable('have_oss4', false)
executable('test-oss4', 'test-oss4.c', tests += [['test-oss4']]
dependencies: gst_dep,
c_args : gst_plugins_good_args,
include_directories : [configinc],
install: false)
endif endif
if get_variable('x11_dep', dependency('', required: false)).found() if get_variable('x11_dep', dependency('', required: false)).found()
executable('ximagesrc-test', 'ximagesrc-test.c', tests += [['ximagesrc-test']]
dependencies: [gst_dep, libm],
c_args : gst_plugins_good_args,
include_directories : [configinc],
install: false)
endif endif
tests = [
['equalizer-test'],
['test-accurate-seek', gstapp_dep],
['test-segment-seeks'],
['videocrop-test'],
['videobox-test'],
['videocrop2-test'],
]
foreach t : tests foreach t : tests
executable(t.get(0), t.get(0) + '.c', test_name = t.get(0)
dependencies: [gst_dep, libm] + [t.get(1, [])], extra_deps = t.get(1, [])
executable(test_name, test_name + '.c',
dependencies: [gst_dep, libm, extra_deps],
c_args : gst_plugins_good_args, c_args : gst_plugins_good_args,
include_directories : [configinc], include_directories : [configinc],
install: false) install: false)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment