mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-01 06:01:04 +00:00
eadedc68f8
GL dependency detection is still automagic. https://bugzilla.gnome.org/show_bug.cgi?id=795107
30 lines
1,020 B
Meson
30 lines
1,020 B
Meson
theora_sources = [
|
|
'gsttheora.c',
|
|
'gsttheoraparse.c',
|
|
]
|
|
|
|
theoradec_dep = dependency('theoradec', version : '>=1.1', required : get_option('theora'))
|
|
theoraenc_dep = dependency('theoraenc', version : '>=1.1', required : get_option('theora'))
|
|
core_conf.set('HAVE_THEORA', theoradec_dep.found() and theoraenc_dep.found())
|
|
theora_deps = []
|
|
|
|
if theoradec_dep.found() or theoraenc_dep.found()
|
|
if theoradec_dep.found()
|
|
theora_sources += [ 'gsttheoradec.c' ]
|
|
theora_deps += theoradec_dep
|
|
endif
|
|
if theoraenc_dep.found()
|
|
theora_sources += [ 'gsttheoraenc.c' ]
|
|
theora_deps += theoraenc_dep
|
|
endif
|
|
gsttheora = library('gsttheora',
|
|
theora_sources,
|
|
c_args : gst_plugins_base_args,
|
|
link_args : noseh_link_args,
|
|
include_directories: [configinc, libsinc],
|
|
dependencies : theora_deps + glib_deps + [video_dep, tag_dep, gst_dep, gst_base_dep],
|
|
install : true,
|
|
install_dir : plugins_install_dir,
|
|
)
|
|
pkgconfig.generate(gsttheora, install_dir : plugins_pkgconfig_install_dir)
|
|
endif
|