1gstplay_sources = files( 2 'gstplay.c', 3 'gstplay-signal-adapter.c', 4 'gstplay-video-renderer.c', 5 'gstplay-media-info.c', 6 'gstplay-visualization.c', 7 'gstplay-video-overlay-video-renderer.c', 8) 9 10gstplay_headers = files( 11 'play.h', 12 'play-prelude.h', 13 'gstplay.h', 14 'gstplay-types.h', 15 'gstplay-signal-adapter.h', 16 'gstplay-video-renderer.h', 17 'gstplay-media-info.h', 18 'gstplay-video-overlay-video-renderer.h', 19 'gstplay-visualization.h', 20) 21 22install_headers(gstplay_headers, subdir : 'gstreamer-' + api_version + '/gst/play/') 23 24gstplay = library('gstplay-' + api_version, 25 gstplay_sources, 26 c_args : gst_plugins_bad_args + ['-DBUILDING_GST_PLAY', '-DG_LOG_DOMAIN="GStreamer-Play"'], 27 include_directories : [configinc, libsinc], 28 version : libversion, 29 soversion : soversion, 30 darwin_versions : osxversion, 31 install : true, 32 dependencies : [gstbase_dep, gstvideo_dep, gstaudio_dep, 33 gsttag_dep, gstpbutils_dep], 34) 35 36pkg_name = 'gstreamer-play-1.0' 37pkgconfig.generate(gstplay, 38 libraries : [gst_dep, gstvideo_dep], 39 variables : pkgconfig_variables, 40 subdirs : pkgconfig_subdirs, 41 name : pkg_name, 42 description : 'GStreamer Player convenience library', 43) 44 45library_def = {'lib': gstplay} 46gen_sources = [] 47if build_gir 48 gir = { 49 'sources' : gstplay_sources + gstplay_headers, 50 'namespace' : 'GstPlay', 51 'nsversion' : api_version, 52 'identifier_prefix' : 'Gst', 53 'symbol_prefix' : 'gst', 54 'export_packages' : pkg_name, 55 'includes' : ['Gst-1.0', 'GstPbutils-1.0', 'GstBase-1.0', 'GstVideo-1.0', 56 'GstAudio-1.0', 'GstTag-1.0'], 57 'install' : true, 58 'extra_args' : gir_init_section + ['-DGST_USE_UNSTABLE_API'] + ['--c-include=gst/play/play.h'], 59 'dependencies' : [gstbase_dep, gstvideo_dep, gstaudio_dep, 60 gsttag_dep, gstpbutils_dep] 61 } 62 library_def += {'gir': [gir]} 63 if not static_build 64 play_gir = gnome.generate_gir(gstplay, kwargs: gir) 65 gen_sources += play_gir 66 endif 67endif 68libraries += [[pkg_name, library_def]] 69 70gstplay_dep = declare_dependency(link_with : gstplay, 71 include_directories : [libsinc], 72 sources: gen_sources, 73 dependencies : [gstbase_dep, gstvideo_dep, gstaudio_dep, 74 gsttag_dep, gstpbutils_dep]) 75 76meson.override_dependency(pkg_name, gstplay_dep) 77