2016-09-09 01:08:53 +00:00
|
|
|
opengl_sources = [
|
|
|
|
'gstopengl.c',
|
|
|
|
'gstglbasemixer.c',
|
|
|
|
'gstglmixerbin.c',
|
|
|
|
'gstglmixer.c',
|
|
|
|
'gstglvideomixer.c',
|
|
|
|
'gstglstereomix.c',
|
2017-12-19 17:34:50 +00:00
|
|
|
'gstglutils.c',
|
2016-09-09 01:08:53 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if build_gstgl and gstgl_dep.found()
|
|
|
|
optional_deps = []
|
2017-12-19 17:34:50 +00:00
|
|
|
opengl_defines = ['-DGST_USE_UNSTABLE_API'] # for videoaggregator
|
2016-09-09 01:08:53 +00:00
|
|
|
|
2017-12-19 17:34:50 +00:00
|
|
|
if gst_gl_have_api_opengl # have desktop GL
|
2016-09-09 01:08:53 +00:00
|
|
|
opengl_sources += [
|
|
|
|
'gstglmosaic.c',
|
|
|
|
]
|
|
|
|
endif
|
|
|
|
|
|
|
|
if x11_dep.found()
|
|
|
|
# for XInitThreads()
|
|
|
|
optional_deps += x11_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,
|
|
|
|
)
|
2018-04-24 18:05:30 +00:00
|
|
|
pkgconfig.generate(gstopenglmixers, install_dir : plugins_pkgconfig_install_dir)
|
2016-09-09 01:08:53 +00:00
|
|
|
endif
|