2016-08-12 15:26:31 +00:00
|
|
|
gst_allocators_headers = [
|
|
|
|
'allocators.h',
|
2018-03-13 10:19:16 +00:00
|
|
|
'allocators-prelude.h',
|
2016-08-12 15:26:31 +00:00
|
|
|
'gstfdmemory.h',
|
2017-12-19 12:44:35 +00:00
|
|
|
'gstphysmemory.h',
|
2016-08-12 15:26:31 +00:00
|
|
|
'gstdmabuf.h',
|
|
|
|
]
|
|
|
|
install_headers(gst_allocators_headers, subdir : 'gstreamer-1.0/gst/allocators/')
|
|
|
|
|
2017-12-19 12:44:35 +00:00
|
|
|
gst_allocators_sources = [ 'gstdmabuf.c', 'gstfdmemory.c', 'gstphysmemory.c']
|
2016-08-12 15:26:31 +00:00
|
|
|
gstallocators = library('gstallocators-@0@'.format(api_version),
|
2016-10-20 20:17:27 +00:00
|
|
|
gst_allocators_sources,
|
2018-04-28 13:50:11 +00:00
|
|
|
c_args : gst_plugins_base_args + ['-DBUILDING_GST_ALLOCATORS'],
|
2016-08-12 15:26:31 +00:00
|
|
|
include_directories: [configinc, libsinc],
|
|
|
|
version : libversion,
|
|
|
|
soversion : soversion,
|
2018-08-31 09:06:30 +00:00
|
|
|
darwin_versions : osxversion,
|
2016-08-12 15:26:31 +00:00
|
|
|
install : true,
|
|
|
|
dependencies : [gst_dep],
|
|
|
|
)
|
2016-10-20 20:17:27 +00:00
|
|
|
|
|
|
|
allocators_gen_sources = []
|
|
|
|
if build_gir
|
2017-04-12 14:06:45 +00:00
|
|
|
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/allocators/allocators.h' ]
|
2016-10-20 20:17:27 +00:00
|
|
|
allocators_gen_sources += [gnome.generate_gir(gstallocators,
|
|
|
|
sources : gst_allocators_sources + gst_allocators_headers,
|
|
|
|
namespace : 'GstAllocators',
|
|
|
|
nsversion : api_version,
|
|
|
|
identifier_prefix : 'Gst',
|
|
|
|
symbol_prefix : 'gst',
|
|
|
|
export_packages : 'gstreamer-allocators-1.0',
|
|
|
|
includes : ['Gst-1.0'],
|
|
|
|
install : true,
|
2017-04-12 14:06:45 +00:00
|
|
|
extra_args : gst_gir_extra_args,
|
2016-10-20 20:17:27 +00:00
|
|
|
dependencies : [gst_dep]
|
|
|
|
)]
|
|
|
|
endif
|
2016-08-12 15:26:31 +00:00
|
|
|
|
|
|
|
allocators_dep = declare_dependency(link_with: gstallocators,
|
|
|
|
include_directories : [libsinc],
|
2016-10-20 20:17:27 +00:00
|
|
|
dependencies : [gst_dep],
|
|
|
|
sources : allocators_gen_sources)
|