mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
meson: enable tests for orc code
This commit is contained in:
parent
d3662bae00
commit
6700c16989
1 changed files with 25 additions and 23 deletions
|
@ -200,27 +200,29 @@ foreach t : good_tests
|
||||||
endif
|
endif
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
# FIXME: orc tests
|
# orc tests
|
||||||
fixme_orc_tests='''
|
orc_tests = [
|
||||||
orc_deinterlace_CFLAGS = $(ORC_CFLAGS)
|
['orc_deinterlace', files('../../gst/deinterlace/tvtime.orc')],
|
||||||
orc_deinterlace_LDADD = $(ORC_LIBS) -lorc-test-0.4
|
['orc_videomixer', files('../../gst/videomixer/videomixerorc.orc')],
|
||||||
nodist_orc_deinterlace_SOURCES = orc/deinterlace.c
|
['orc_videobox', files('../../gst/videobox/gstvideoboxorc.orc')],
|
||||||
orc_videomixer_CFLAGS = $(ORC_CFLAGS)
|
]
|
||||||
orc_videomixer_LDADD = $(ORC_LIBS) -lorc-test-0.4
|
|
||||||
nodist_orc_videomixer_SOURCES = orc/videomixer.c
|
|
||||||
orc_videobox_CFLAGS = $(ORC_CFLAGS)
|
|
||||||
orc_videobox_LDADD = $(ORC_LIBS) -lorc-test-0.4
|
|
||||||
nodist_orc_videobox_SOURCES = orc/videobox.c
|
|
||||||
|
|
||||||
orc/deinterlace.c: $(top_srcdir)/gst/deinterlace/tvtime.orc
|
if have_orcc
|
||||||
$(MKDIR_P) orc/
|
# FIXME: there should really just be a separate orc-test-0.4.pc file for this
|
||||||
$(ORCC) --test -o $@ $<
|
if orc_dep.type_name() == 'pkgconfig'
|
||||||
|
orc_test_dep = cc.find_library('orc-test-0.4', dependencies: orc_dep)
|
||||||
orc/videomixer.c: $(top_srcdir)/gst/videomixer/videomixerorc.orc
|
else
|
||||||
$(MKDIR_P) orc/
|
orc_test_dep = dependency('', fallback: ['orc', 'orc_test_dep'])
|
||||||
$(ORCC) --test -o $@ $<
|
endif
|
||||||
|
foreach t : orc_tests
|
||||||
orc/videobox.c: $(top_srcdir)/gst/videobox/gstvideoboxorc.orc
|
tname = t[0]
|
||||||
$(MKDIR_P) orc/
|
torcfile = t[1]
|
||||||
$(ORCC) --test -o $@ $<
|
tcfilename = '@0@.c'.format(tname)
|
||||||
'''
|
test_c = custom_target(tcfilename,
|
||||||
|
output: tcfilename,
|
||||||
|
input: torcfile,
|
||||||
|
command: [orcc, '--include', 'stdint.h', '--test', '-o', '@OUTPUT@', '@INPUT@'])
|
||||||
|
test_exe = executable(tname, test_c, dependencies: [orc_dep, orc_test_dep])
|
||||||
|
test(tname, test_exe)
|
||||||
|
endforeach
|
||||||
|
endif
|
||||||
|
|
Loading…
Reference in a new issue