2020-06-27 04:37:39 +00:00
|
|
|
insert_sources = files('gstinsertbin.c')
|
|
|
|
insert_headers = files('gstinsertbin.h')
|
2016-08-12 15:51:45 +00:00
|
|
|
install_headers(insert_headers, subdir : 'gstreamer-1.0/gst/insertbin')
|
|
|
|
|
|
|
|
gstinsertbin = library('gstinsertbin-' + api_version,
|
|
|
|
insert_sources,
|
2021-10-01 14:31:18 +00:00
|
|
|
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API', '-DBUILDING_GST_INSERT_BIN', '-DG_LOG_DOMAIN="GStreamer-InsertBin"'],
|
2016-08-12 15:51:45 +00:00
|
|
|
include_directories : [configinc, libsinc],
|
|
|
|
version : libversion,
|
|
|
|
soversion : soversion,
|
2018-08-31 09:07:46 +00:00
|
|
|
darwin_versions : osxversion,
|
2016-08-12 15:51:45 +00:00
|
|
|
install : true,
|
|
|
|
dependencies : [gst_dep],
|
|
|
|
)
|
2017-01-23 15:12:06 +00:00
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
library_def = {'lib': gstinsertbin}
|
|
|
|
pkg_name = 'gstreamer-insertbin-1.0'
|
2018-04-07 20:33:47 +00:00
|
|
|
pkgconfig.generate(gstinsertbin,
|
|
|
|
libraries : [gst_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 : 'Bin to automatically and insertally link elements',
|
|
|
|
)
|
|
|
|
|
2017-01-23 15:12:06 +00:00
|
|
|
gen_sources = []
|
|
|
|
if build_gir
|
2020-06-27 04:39:00 +00:00
|
|
|
gir = {
|
|
|
|
'sources' : insert_sources + insert_headers,
|
|
|
|
'namespace' : 'GstInsertBin',
|
|
|
|
'nsversion' : api_version,
|
|
|
|
'identifier_prefix' : 'Gst',
|
|
|
|
'symbol_prefix' : 'gst',
|
|
|
|
'export_packages' : pkg_name,
|
|
|
|
'includes' : ['Gst-1.0'],
|
|
|
|
'install' : true,
|
|
|
|
'extra_args' : gir_init_section + ['-DGST_USE_UNSTABLE_API'] + ['--c-include=gst/insertbin/gstinsertbin.h'],
|
|
|
|
'dependencies' : [gst_dep]
|
|
|
|
}
|
|
|
|
library_def += {'gir': [gir]}
|
|
|
|
if not static_build
|
|
|
|
insertbin_gir = gnome.generate_gir(gstinsertbin, kwargs: gir)
|
|
|
|
gen_sources += insertbin_gir
|
|
|
|
endif
|
2017-01-23 15:12:06 +00:00
|
|
|
endif
|
2022-09-01 15:51:48 +00:00
|
|
|
gst_libraries += [[pkg_name, library_def]]
|
2016-08-12 15:51:45 +00:00
|
|
|
|
|
|
|
gstinsertbin_dep = declare_dependency(link_with : gstinsertbin,
|
|
|
|
include_directories : [libsinc],
|
2017-01-23 15:12:06 +00:00
|
|
|
sources: gen_sources,
|
2016-08-12 15:51:45 +00:00
|
|
|
dependencies : [gst_dep])
|
2018-04-07 20:33:47 +00:00
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
meson.override_dependency(pkg_name, gstinsertbin_dep)
|