2020-06-27 04:37:39 +00:00
|
|
|
camerabin_sources = files(
|
2016-08-12 15:51:45 +00:00
|
|
|
'gstcamerabin-enum.c',
|
|
|
|
'gstcamerabinpreview.c',
|
|
|
|
'gstbasecamerasrc.c',
|
2020-06-27 04:37:39 +00:00
|
|
|
)
|
|
|
|
camerabin_headers = files(
|
2018-03-13 12:29:08 +00:00
|
|
|
'basecamerabinsrc-prelude.h',
|
2016-08-12 15:51:45 +00:00
|
|
|
'gstcamerabin-enum.h',
|
|
|
|
'gstcamerabinpreview.h',
|
|
|
|
'gstbasecamerasrc.h',
|
2020-06-27 04:37:39 +00:00
|
|
|
)
|
2016-08-12 15:51:45 +00:00
|
|
|
install_headers(camerabin_headers, subdir : 'gstreamer-1.0/gst/basecamerabinsrc')
|
|
|
|
|
|
|
|
gstbasecamerabin = library('gstbasecamerabinsrc-' + api_version,
|
|
|
|
camerabin_sources,
|
2021-10-01 14:31:18 +00:00
|
|
|
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API', '-DBUILDING_GST_BASE_CAMERA_BIN_SRC', '-DG_LOG_DOMAIN="GStreamer-BaseCameraBinSrc"'],
|
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 : [gstapp_dep],
|
|
|
|
)
|
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
library_def = {'lib': gstbasecamerabin}
|
|
|
|
pkg_name = 'gstreamer-bad-base-camerabinsrc-1.0'
|
|
|
|
gen_sources = []
|
|
|
|
if build_gir and not static_build
|
|
|
|
gir = {
|
|
|
|
'sources' : camerabin_sources + camerabin_headers,
|
|
|
|
'namespace' : 'GstBadBaseCameraBin',
|
|
|
|
'nsversion' : api_version,
|
|
|
|
'identifier_prefix' : 'Gst',
|
|
|
|
'symbol_prefix' : 'gst',
|
|
|
|
'export_packages' : pkg_name,
|
|
|
|
'includes' : ['Gst-1.0', 'GstApp-1.0'],
|
|
|
|
'install' : false, # Only for the documentation
|
|
|
|
'extra_args' : gir_init_section + ['-DGST_USE_UNSTABLE_API'],
|
|
|
|
'dependencies' : [gstapp_dep],
|
|
|
|
'build_by_default' : true,
|
|
|
|
}
|
|
|
|
library_def += {'gir': [gir]}
|
|
|
|
if not static_build
|
|
|
|
basecamerabin_gir = gnome.generate_gir(gstbasecamerabin, kwargs: gir)
|
|
|
|
gen_sources += basecamerabin_gir
|
|
|
|
endif
|
2020-06-23 14:03:04 +00:00
|
|
|
endif
|
|
|
|
|
2016-08-12 15:51:45 +00:00
|
|
|
gstbasecamerabin_dep = declare_dependency(link_with : gstbasecamerabin,
|
|
|
|
include_directories : [libsinc],
|
2020-06-27 04:39:00 +00:00
|
|
|
sources: gen_sources,
|
2016-08-12 15:51:45 +00:00
|
|
|
dependencies : [gstapp_dep])
|
2020-06-27 04:39:00 +00:00
|
|
|
meson.override_dependency(pkg_name, gstbasecamerabin_dep)
|