2020-11-26 01:25:28 +00:00
|
|
|
sources = files(['gsttranscoder.c', 'gsttranscoder-signal-adapter.c'])
|
|
|
|
headers = files(['gsttranscoder.h', 'transcoder-prelude.h', 'gsttranscoder-signal-adapter.h'])
|
2015-12-03 11:32:05 +00:00
|
|
|
|
|
|
|
install_headers(headers, subdir : 'gstreamer-' + api_version + '/gst/transcoder')
|
|
|
|
|
2020-11-26 01:21:35 +00:00
|
|
|
transcoder_enums = gnome.mkenums_simple('transcoder-enumtypes',
|
|
|
|
sources : headers,
|
|
|
|
body_prefix : '#ifdef HAVE_CONFIG_H\n#include "config.h"\n#endif',
|
|
|
|
header_prefix : '#include <gst/transcoder/transcoder-prelude.h>',
|
|
|
|
decorator: 'GST_TRANSCODER_API',
|
|
|
|
install_header: true,
|
|
|
|
install_dir : join_paths(get_option('includedir'), 'gstreamer-1.0/gst/transcoder'))
|
|
|
|
|
|
|
|
gsttranscoder_c = transcoder_enums[0]
|
|
|
|
gsttranscoder_h = transcoder_enums[1]
|
|
|
|
|
|
|
|
transcoder_gen_sources = [gsttranscoder_h]
|
|
|
|
|
2015-12-03 11:32:05 +00:00
|
|
|
gst_transcoder = library('gsttranscoder-' + api_version,
|
2020-11-26 01:21:35 +00:00
|
|
|
sources + [gsttranscoder_c] + transcoder_gen_sources,
|
2015-12-03 11:32:05 +00:00
|
|
|
install: true,
|
|
|
|
include_directories : [configinc, libsinc],
|
|
|
|
dependencies: [gst_dep, gstpbutils_dep],
|
2021-10-01 14:31:18 +00:00
|
|
|
c_args: gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API', '-DBUILDING_GST_TRANSCODER', '-DG_LOG_DOMAIN="GStreamer-Transcoder"'],
|
2015-12-03 11:32:05 +00:00
|
|
|
soversion : soversion,
|
|
|
|
)
|
2018-04-07 20:33:47 +00:00
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
library_def = {'lib': gst_transcoder}
|
|
|
|
pkg_name = 'gstreamer-transcoder-1.0'
|
2018-04-07 20:33:47 +00:00
|
|
|
pkgconfig.generate(gst_transcoder,
|
|
|
|
libraries : [gst_dep, gstbase_dep],
|
|
|
|
variables : pkgconfig_variables,
|
|
|
|
subdirs : pkgconfig_subdirs,
|
2020-06-27 04:39:00 +00:00
|
|
|
name : pkg_name,
|
2018-04-07 20:33:47 +00:00
|
|
|
description : 'High level API for transcoding using GStreamer',
|
|
|
|
)
|
|
|
|
|
2015-12-03 11:32:05 +00:00
|
|
|
if build_gir
|
2020-06-27 04:39:00 +00:00
|
|
|
gir = {
|
|
|
|
'sources' : sources + headers + [gsttranscoder_h],
|
|
|
|
'nsversion' : api_version,
|
|
|
|
'namespace' : 'GstTranscoder',
|
|
|
|
'identifier_prefix' : 'Gst',
|
|
|
|
'symbol_prefix' : 'gst_',
|
|
|
|
'includes' : ['GObject-2.0',
|
2015-12-03 11:32:05 +00:00
|
|
|
'Gst-' + api_version,
|
|
|
|
'GstPbutils-' + api_version],
|
2020-06-27 04:39:00 +00:00
|
|
|
'dependencies' : [gst_dep, gstpbutils_dep],
|
|
|
|
'export_packages' : pkg_name,
|
|
|
|
'install' : true,
|
|
|
|
'extra_args' : gir_init_section
|
|
|
|
}
|
|
|
|
library_def += { 'gir': [gir]}
|
|
|
|
if not static_build
|
|
|
|
transcoder_gir = gnome.generate_gir(gst_transcoder, kwargs: gir)
|
|
|
|
transcoder_gen_sources += transcoder_gir
|
|
|
|
endif
|
2015-12-03 11:32:05 +00:00
|
|
|
endif
|
2022-09-01 15:51:48 +00:00
|
|
|
gst_libraries += [[pkg_name, library_def]]
|
2015-12-03 11:32:05 +00:00
|
|
|
|
|
|
|
gst_transcoder_dep = declare_dependency(link_with: gst_transcoder,
|
|
|
|
dependencies : [gst_dep, gstpbutils_dep],
|
2020-11-26 01:21:35 +00:00
|
|
|
sources: transcoder_gen_sources,
|
2020-06-27 04:39:00 +00:00
|
|
|
include_directories : [libsinc]
|
2018-04-07 20:33:47 +00:00
|
|
|
)
|
2020-06-27 04:39:00 +00:00
|
|
|
meson.override_dependency(pkg_name, gst_transcoder_dep)
|