2020-06-27 04:37:39 +00:00
|
|
|
gstplay_sources = files(
|
2019-11-02 15:14:13 +00:00
|
|
|
'gstplay.c',
|
|
|
|
'gstplay-signal-adapter.c',
|
|
|
|
'gstplay-video-renderer.c',
|
|
|
|
'gstplay-media-info.c',
|
|
|
|
'gstplay-visualization.c',
|
2020-06-27 04:39:00 +00:00
|
|
|
'gstplay-video-overlay-video-renderer.c',
|
2020-06-27 04:37:39 +00:00
|
|
|
)
|
2019-11-02 15:14:13 +00:00
|
|
|
|
2020-06-27 04:37:39 +00:00
|
|
|
gstplay_headers = files(
|
2019-11-02 15:14:13 +00:00
|
|
|
'play.h',
|
|
|
|
'play-prelude.h',
|
|
|
|
'gstplay.h',
|
|
|
|
'gstplay-types.h',
|
|
|
|
'gstplay-signal-adapter.h',
|
|
|
|
'gstplay-video-renderer.h',
|
|
|
|
'gstplay-media-info.h',
|
|
|
|
'gstplay-video-overlay-video-renderer.h',
|
|
|
|
'gstplay-visualization.h',
|
2020-06-27 04:37:39 +00:00
|
|
|
)
|
2019-11-02 15:14:13 +00:00
|
|
|
|
|
|
|
install_headers(gstplay_headers, subdir : 'gstreamer-' + api_version + '/gst/play/')
|
|
|
|
|
|
|
|
gstplay = library('gstplay-' + api_version,
|
|
|
|
gstplay_sources,
|
2021-10-01 14:31:18 +00:00
|
|
|
c_args : gst_plugins_bad_args + ['-DBUILDING_GST_PLAY', '-DG_LOG_DOMAIN="GStreamer-Play"'],
|
2019-11-02 15:14:13 +00:00
|
|
|
include_directories : [configinc, libsinc],
|
|
|
|
version : libversion,
|
|
|
|
soversion : soversion,
|
|
|
|
darwin_versions : osxversion,
|
|
|
|
install : true,
|
|
|
|
dependencies : [gstbase_dep, gstvideo_dep, gstaudio_dep,
|
|
|
|
gsttag_dep, gstpbutils_dep],
|
|
|
|
)
|
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
pkg_name = 'gstreamer-play-1.0'
|
2019-11-02 15:14:13 +00:00
|
|
|
pkgconfig.generate(gstplay,
|
|
|
|
libraries : [gst_dep, gstvideo_dep],
|
|
|
|
variables : pkgconfig_variables,
|
|
|
|
subdirs : pkgconfig_subdirs,
|
2020-06-27 04:39:00 +00:00
|
|
|
name : pkg_name,
|
2019-11-02 15:14:13 +00:00
|
|
|
description : 'GStreamer Player convenience library',
|
|
|
|
)
|
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
library_def = {'lib': gstplay}
|
2019-11-02 15:14:13 +00:00
|
|
|
gen_sources = []
|
|
|
|
if build_gir
|
2020-06-27 04:39:00 +00:00
|
|
|
gir = {
|
|
|
|
'sources' : gstplay_sources + gstplay_headers,
|
|
|
|
'namespace' : 'GstPlay',
|
|
|
|
'nsversion' : api_version,
|
|
|
|
'identifier_prefix' : 'Gst',
|
|
|
|
'symbol_prefix' : 'gst',
|
|
|
|
'export_packages' : pkg_name,
|
|
|
|
'includes' : ['Gst-1.0', 'GstPbutils-1.0', 'GstBase-1.0', 'GstVideo-1.0',
|
2019-11-02 15:14:13 +00:00
|
|
|
'GstAudio-1.0', 'GstTag-1.0'],
|
2020-06-27 04:39:00 +00:00
|
|
|
'install' : true,
|
|
|
|
'extra_args' : gir_init_section + ['-DGST_USE_UNSTABLE_API'] + ['--c-include=gst/play/play.h'],
|
|
|
|
'dependencies' : [gstbase_dep, gstvideo_dep, gstaudio_dep,
|
|
|
|
gsttag_dep, gstpbutils_dep]
|
|
|
|
}
|
|
|
|
library_def += {'gir': [gir]}
|
|
|
|
if not static_build
|
|
|
|
play_gir = gnome.generate_gir(gstplay, kwargs: gir)
|
2022-08-31 18:15:16 +00:00
|
|
|
library_def += {'gir_targets': library_def.get('gir_targets', []) + [play_gir]}
|
2020-06-27 04:39:00 +00:00
|
|
|
gen_sources += play_gir
|
|
|
|
endif
|
2019-11-02 15:14:13 +00:00
|
|
|
endif
|
2022-09-01 15:51:48 +00:00
|
|
|
gst_libraries += [[pkg_name, library_def]]
|
2019-11-02 15:14:13 +00:00
|
|
|
|
|
|
|
gstplay_dep = declare_dependency(link_with : gstplay,
|
|
|
|
include_directories : [libsinc],
|
|
|
|
sources: gen_sources,
|
|
|
|
dependencies : [gstbase_dep, gstvideo_dep, gstaudio_dep,
|
|
|
|
gsttag_dep, gstpbutils_dep])
|
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
meson.override_dependency(pkg_name, gstplay_dep)
|