mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 02:30:35 +00:00
53 lines
1.6 KiB
Meson
53 lines
1.6 KiB
Meson
gst_allocators_headers = [
|
|
'allocators.h',
|
|
'allocators-prelude.h',
|
|
'gstfdmemory.h',
|
|
'gstphysmemory.h',
|
|
'gstdmabuf.h',
|
|
]
|
|
install_headers(gst_allocators_headers, subdir : 'gstreamer-1.0/gst/allocators/')
|
|
|
|
gst_allocators_sources = [ 'gstdmabuf.c', 'gstfdmemory.c', 'gstphysmemory.c']
|
|
gstallocators = library('gstallocators-@0@'.format(api_version),
|
|
gst_allocators_sources,
|
|
c_args : gst_plugins_base_args + ['-DBUILDING_GST_ALLOCATORS'],
|
|
include_directories: [configinc, libsinc],
|
|
version : libversion,
|
|
soversion : soversion,
|
|
darwin_versions : osxversion,
|
|
install : true,
|
|
dependencies : [gst_dep],
|
|
)
|
|
|
|
pkgconfig.generate(gstallocators,
|
|
libraries : [gst_dep],
|
|
variables : pkgconfig_variables,
|
|
subdirs : pkgconfig_subdirs,
|
|
name : 'gstreamer-allocators-1.0',
|
|
description : 'Allocators implementation',
|
|
)
|
|
|
|
allocators_gen_sources = []
|
|
if build_gir
|
|
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/allocators/allocators.h' ]
|
|
allocators_gir = 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,
|
|
extra_args : gst_gir_extra_args,
|
|
dependencies : [gst_dep]
|
|
)
|
|
allocators_gen_sources += allocators_gir
|
|
endif
|
|
|
|
allocators_dep = declare_dependency(link_with: gstallocators,
|
|
include_directories : [libsinc],
|
|
dependencies : [gst_dep],
|
|
sources : allocators_gen_sources)
|
|
|
|
meson.override_dependency('gstreamer-allocators-1.0', allocators_dep)
|