2016-09-09 01:08:53 +00:00
|
|
|
opengl_sources = [
|
|
|
|
'gstopengl.c',
|
|
|
|
'gstglbasemixer.c',
|
|
|
|
'gstglmixerbin.c',
|
|
|
|
'gstglmixer.c',
|
|
|
|
'gstglvideomixer.c',
|
|
|
|
'gstglstereomix.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
if build_gstgl and gstgl_dep.found()
|
|
|
|
optional_deps = []
|
2017-12-11 14:20:59 +00:00
|
|
|
opengl_defines = []
|
2016-09-09 01:08:53 +00:00
|
|
|
|
|
|
|
if gl_dep.found() # have desktop GL
|
|
|
|
opengl_sources += [
|
|
|
|
'gstglmosaic.c',
|
|
|
|
]
|
|
|
|
endif
|
|
|
|
|
|
|
|
if x11_dep.found()
|
|
|
|
# for XInitThreads()
|
|
|
|
optional_deps += x11_dep
|
|
|
|
endif
|
|
|
|
|
2016-10-19 05:11:58 +00:00
|
|
|
if bcm_host_dep.found()
|
|
|
|
optional_deps += bcm_host_dep
|
|
|
|
endif
|
|
|
|
|
2017-05-29 16:22:17 +00:00
|
|
|
if egl_dep.found() and cc.has_header('libdrm/drm_fourcc.h', required : false)
|
|
|
|
optional_deps += gstallocators_dep
|
|
|
|
endif
|
|
|
|
|
2017-12-11 14:20:59 +00:00
|
|
|
gstopenglmixers = library('gstopenglmixers',
|
2016-09-09 01:08:53 +00:00
|
|
|
opengl_sources,
|
|
|
|
c_args : gst_plugins_bad_args + opengl_defines,
|
|
|
|
link_args : noseh_link_args,
|
|
|
|
include_directories : [configinc],
|
2017-12-11 14:20:59 +00:00
|
|
|
dependencies : [gstbadvideo_dep, gstgl_dep, gstvideo_dep,
|
2017-01-10 01:51:51 +00:00
|
|
|
gstbase_dep, gstcontroller_dep, libm] + optional_deps,
|
2016-09-09 01:08:53 +00:00
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|
|
|
|
endif
|