2020-06-27 04:37:39 +00:00
|
|
|
gstplayer_sources = files([
|
2016-08-12 15:51:45 +00:00
|
|
|
'gstplayer.c',
|
|
|
|
'gstplayer-signal-dispatcher.c',
|
|
|
|
'gstplayer-video-renderer.c',
|
|
|
|
'gstplayer-media-info.c',
|
|
|
|
'gstplayer-g-main-context-signal-dispatcher.c',
|
|
|
|
'gstplayer-video-overlay-video-renderer.c',
|
2020-12-07 10:47:30 +00:00
|
|
|
'gstplayer-wrapped-video-renderer.c',
|
2016-08-12 15:51:45 +00:00
|
|
|
'gstplayer-visualization.c',
|
2020-06-27 04:37:39 +00:00
|
|
|
])
|
2016-08-12 15:51:45 +00:00
|
|
|
|
2020-06-27 04:37:39 +00:00
|
|
|
gstplayer_headers = files([
|
2016-08-12 15:51:45 +00:00
|
|
|
'player.h',
|
2018-03-13 13:02:54 +00:00
|
|
|
'player-prelude.h',
|
2016-08-12 15:51:45 +00:00
|
|
|
'gstplayer.h',
|
|
|
|
'gstplayer-types.h',
|
|
|
|
'gstplayer-signal-dispatcher.h',
|
|
|
|
'gstplayer-video-renderer.h',
|
|
|
|
'gstplayer-media-info.h',
|
|
|
|
'gstplayer-g-main-context-signal-dispatcher.h',
|
|
|
|
'gstplayer-video-overlay-video-renderer.h',
|
|
|
|
'gstplayer-visualization.h',
|
2020-06-27 04:37:39 +00:00
|
|
|
])
|
2016-08-12 15:51:45 +00:00
|
|
|
|
|
|
|
install_headers(gstplayer_headers, subdir : 'gstreamer-' + api_version + '/gst/player/')
|
|
|
|
|
|
|
|
gstplayer = library('gstplayer-' + api_version,
|
|
|
|
gstplayer_sources,
|
2021-10-01 14:31:18 +00:00
|
|
|
c_args : gst_plugins_bad_args + ['-DBUILDING_GST_PLAYER', '-DG_LOG_DOMAIN="GStreamer-Player"'],
|
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,
|
2020-12-07 10:47:30 +00:00
|
|
|
dependencies : [gstbase_dep, gstvideo_dep, gstaudio_dep, gstplay_dep,
|
2016-08-12 15:51:45 +00:00
|
|
|
gsttag_dep, gstpbutils_dep],
|
|
|
|
)
|
2017-01-23 15:12:06 +00:00
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
library_def = {'lib': gstplayer}
|
|
|
|
pkg_name = 'gstreamer-player-1.0'
|
2018-04-07 20:33:47 +00:00
|
|
|
pkgconfig.generate(gstplayer,
|
|
|
|
libraries : [gst_dep, gstvideo_dep],
|
|
|
|
variables : pkgconfig_variables,
|
|
|
|
subdirs : pkgconfig_subdirs,
|
|
|
|
name : 'gstreamer-player-1.0',
|
|
|
|
description : 'GStreamer Player convenience library',
|
|
|
|
)
|
|
|
|
|
2017-01-23 15:12:06 +00:00
|
|
|
gen_sources = []
|
|
|
|
if build_gir
|
2020-06-27 04:39:00 +00:00
|
|
|
gir = {
|
|
|
|
'sources' : gstplayer_sources + gstplayer_headers,
|
|
|
|
'namespace' : 'GstPlayer',
|
|
|
|
'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',
|
2017-01-23 15:12:06 +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/player/player.h'],
|
|
|
|
'dependencies' : [gstbase_dep, gstvideo_dep, gstaudio_dep, gstplay_dep,
|
|
|
|
gsttag_dep, gstpbutils_dep]
|
|
|
|
}
|
|
|
|
library_def = {'lib': library_def['lib'], 'gir': [gir]}
|
|
|
|
if not static_build
|
|
|
|
player_gir = gnome.generate_gir(gstplayer, kwargs: gir)
|
|
|
|
gen_sources += player_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
|
|
|
|
|
|
|
gstplayer_dep = declare_dependency(link_with : gstplayer,
|
|
|
|
include_directories : [libsinc],
|
2017-01-23 15:12:06 +00:00
|
|
|
sources: gen_sources,
|
2020-12-07 10:47:30 +00:00
|
|
|
dependencies : [gstbase_dep, gstvideo_dep, gstaudio_dep, gstplay_dep,
|
2016-08-12 15:51:45 +00:00
|
|
|
gsttag_dep, gstpbutils_dep])
|
2018-04-07 20:33:47 +00:00
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
meson.override_dependency(pkg_name, gstplayer_dep)
|