tests: fix build when not building gstgl

gstgl_dep is only defined when build_gstgl is true
This commit is contained in:
Mathieu Duponchelle 2017-12-21 19:24:20 +01:00
parent b5037aee2a
commit b0d795263f

View file

@ -24,16 +24,6 @@ base_tests = [
[ 'libs/sdp.c' ], [ 'libs/sdp.c' ],
[ 'libs/tag.c' ], [ 'libs/tag.c' ],
# [ 'libs/video' ], # FIXME: times out, perhaps split or spawn conversions into benchmark tool and/or multiple threads # [ 'libs/video' ], # FIXME: times out, perhaps split or spawn conversions into benchmark tool and/or multiple threads
[ 'libs/gstglcolorconvert.c', not build_gstgl, [gstgl_dep]],
[ 'libs/gstglcontext.c', not build_gstgl, [gstgl_dep]],
[ 'libs/gstglheaders.c', not build_gstgl, [gstgl_dep]],
[ 'libs/gstglmatrix.c', not build_gstgl, [gstgl_dep]],
[ 'libs/gstglmemory.c', not build_gstgl, [gstgl_dep]],
[ 'libs/gstglquery.c', not build_gstgl, [gstgl_dep]],
[ 'libs/gstglshader.c', not build_gstgl, [gstgl_dep]],
[ 'libs/gstglsl.c', not build_gstgl, [gstgl_dep]],
[ 'libs/gstglslstage.c', not build_gstgl, [gstgl_dep]],
[ 'libs/gstglupload.c', not build_gstgl, [gstgl_dep]],
[ 'libs/videoencoder.c' ], [ 'libs/videoencoder.c' ],
[ 'libs/videotimecode.c' ], [ 'libs/videotimecode.c' ],
[ 'libs/xmpwriter.c' ], [ 'libs/xmpwriter.c' ],
@ -78,6 +68,21 @@ base_tests = [
[ 'pipelines/vorbisdec.c', not vorbisenc_dep.found(),], [ 'pipelines/vorbisdec.c', not vorbisenc_dep.found(),],
] ]
if build_gstgl
base_tests += [
[ 'libs/gstglcolorconvert.c', not build_gstgl, [gstgl_dep]],
[ 'libs/gstglcontext.c', not build_gstgl, [gstgl_dep]],
[ 'libs/gstglheaders.c', not build_gstgl, [gstgl_dep]],
[ 'libs/gstglmatrix.c', not build_gstgl, [gstgl_dep]],
[ 'libs/gstglmemory.c', not build_gstgl, [gstgl_dep]],
[ 'libs/gstglquery.c', not build_gstgl, [gstgl_dep]],
[ 'libs/gstglshader.c', not build_gstgl, [gstgl_dep]],
[ 'libs/gstglsl.c', not build_gstgl, [gstgl_dep]],
[ 'libs/gstglslstage.c', not build_gstgl, [gstgl_dep]],
[ 'libs/gstglupload.c', not build_gstgl, [gstgl_dep]]
]
endif
# Make sure our headers are C++ clean # Make sure our headers are C++ clean
if have_cxx if have_cxx
base_tests += [ base_tests += [