2016-08-12 15:26:31 +00:00
|
|
|
theora_sources = [
|
|
|
|
'gsttheora.c',
|
|
|
|
'gsttheoraparse.c',
|
|
|
|
]
|
|
|
|
|
2018-07-25 02:05:05 +00:00
|
|
|
theoradec_dep = dependency('theoradec', version : '>=1.1', required : get_option('theora'))
|
|
|
|
theoraenc_dep = dependency('theoraenc', version : '>=1.1', required : get_option('theora'))
|
2016-08-12 15:26:31 +00:00
|
|
|
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,
|
|
|
|
)
|
2018-04-24 18:05:57 +00:00
|
|
|
pkgconfig.generate(gsttheora, install_dir : plugins_pkgconfig_install_dir)
|
2018-10-22 06:17:24 +00:00
|
|
|
plugins += [gsttheora]
|
2016-08-12 15:26:31 +00:00
|
|
|
endif
|