if build_gstgl and gstgl_dep.found()
optional_deps = []
- opengl_defines = []
if gl_dep.found() # have desktop GL
# These have to stay in -bad until we can move GstVideoAggregator to -base
graphene_dep = dependency('graphene-1.0', version : '>=1.4.0', required : false)
if graphene_dep.found()
optional_deps += graphene_dep
- opengl_defines += '-DHAVE_GRAPHENE=1'
+ core_conf.set('HAVE_GRAPHENE', true)
opengl_sources += [
'gstgltransformation.c',
'gstglvideoflip.c',
if png_dep.found()
optional_deps += png_dep
- opengl_defines += '-DHAVE_PNG=1'
+ core_conf.set('HAVE_PNG', true)
opengl_sources += [
'gstgldifferencematte.c',
]
if jpeg_dep.found()
optional_deps += jpeg_dep
- opengl_defines += '-DHAVE_JPEG=1'
+ core_conf.set('HAVE_JPEG', true)
opengl_sources += [
'gstgloverlay.c',
]
gstopengl = library('gstopengl',
opengl_sources,
- c_args : gst_plugins_base_args + opengl_defines,
+ c_args : gst_plugins_base_args,
link_args : noseh_link_args,
include_directories : [configinc],
dependencies : [gstgl_dep, video_dep,
[ 'elements/vorbistag.c', not vorbisenc_dep.found(), [ vorbis_dep, vorbisenc_dep ] ],
[ 'generic/clock-selection.c' ],
[ 'generic/states.c', false, [ gmodule_dep ] ],
- [ 'pipelines/gl-launch-lines.c', not build_gstgl ],
[ 'pipelines/simple-launch-lines.c' ],
[ 'pipelines/basetime.c' ],
[ 'pipelines/capsfilter-renegotiation.c' ],
[ 'libs/gstglslstage.c', not build_gstgl, [gstgl_dep]],
[ 'libs/gstglupload.c', not build_gstgl, [gstgl_dep]],
[ 'elements/glimagesink.c', not build_gstgl, [gstgl_dep]],
+ [ 'pipelines/gl-launch-lines.c', not build_gstgl ],
]
endif