gstreamer-player-1.0: Do not install it if it's a subproject
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Fri, 17 Mar 2023 18:59:43 +0000 (19:59 +0100)
committerJeremy Bícha <jbicha@ubuntu.com>
Fri, 22 Sep 2023 14:27:13 +0000 (15:27 +0100)
Origin: https://gitlab.gnome.org/3v1n0/gtk/-/commits/gst-player-subproject
Forwarded: not-needed

Gbp-Pq: Topic debian
Gbp-Pq: Name gstreamer-player-1.0-Do-not-install-it-if-it-s-a-subproje.patch

subprojects/gstreamer-player-1.0/gst/play/meson.build
subprojects/gstreamer-player-1.0/gst/player/meson.build

index 582b70f11533957d296497f5f07eec5c801bc238..b3e82ffaa02b40b5566d2e66e71160ddf37f7e53 100644 (file)
@@ -19,7 +19,9 @@ gstplay_headers = files(
   'gstplay-visualization.h',
 )
 
+if not meson.is_subproject()
 install_headers(gstplay_headers, subdir : 'gstreamer-' + api_version + '/gst/play/')
+endif
 
 gstplay = library('gstplay-' + api_version,
   gstplay_sources,
@@ -28,12 +30,13 @@ gstplay = library('gstplay-' + api_version,
   version : libversion,
   soversion : soversion,
   darwin_versions : osxversion,
-  install : true,
+  install : not meson.is_subproject(),
   dependencies : [gstbase_dep, gstvideo_dep, gstaudio_dep,
                   gsttag_dep, gstpbutils_dep],
 )
 
 pkg_name = 'gstreamer-play-1.0'
+if not meson.is_subproject()
 pkgconfig.generate(gstplay,
   libraries : [gst_dep, gstvideo_dep],
   variables : pkgconfig_variables,
@@ -41,6 +44,7 @@ pkgconfig.generate(gstplay,
   name : pkg_name,
   description : 'GStreamer Player convenience library',
 )
+endif
 
 library_def = {'lib': gstplay}
 gen_sources = []
@@ -54,7 +58,7 @@ if build_gir
     'export_packages' : pkg_name,
     'includes' : ['Gst-1.0', 'GstPbutils-1.0', 'GstBase-1.0', 'GstVideo-1.0',
       'GstAudio-1.0', 'GstTag-1.0'],
-    'install' : true,
+    'install' : not meson.is_subproject(),
     '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]
index 0c273f0efd2b8778f70e0dd684fb26e4271eb972..0cfbdd93a99101874d60d6f3103a98bc2a969409 100644 (file)
@@ -22,7 +22,9 @@ gstplayer_headers = files([
   'gstplayer-visualization.h',
 ])
 
+if not meson.is_subproject()
 install_headers(gstplayer_headers, subdir : 'gstreamer-' + api_version + '/gst/player/')
+endif
 
 gstplayer = library('gstplayer-' + api_version,
   gstplayer_sources,
@@ -31,13 +33,15 @@ gstplayer = library('gstplayer-' + api_version,
   version : libversion,
   soversion : soversion,
   darwin_versions : osxversion,
-  install : true,
+  install : false,
   dependencies : [gstbase_dep, gstvideo_dep, gstaudio_dep, gstplay_dep,
                   gsttag_dep, gstpbutils_dep],
 )
 
 library_def = {'lib': gstplayer}
+
 pkg_name = 'gstreamer-player-1.0'
+if not meson.is_subproject()
 pkgconfig.generate(gstplayer,
   libraries : [gst_dep, gstvideo_dep],
   variables : pkgconfig_variables,
@@ -45,6 +49,7 @@ pkgconfig.generate(gstplayer,
   name : 'gstreamer-player-1.0',
   description : 'GStreamer Player convenience library',
 )
+endif
 
 gen_sources = []
 if build_gir
@@ -57,7 +62,7 @@ if build_gir
     'export_packages' : pkg_name,
     'includes' : ['Gst-1.0', 'GstPbutils-1.0', 'GstBase-1.0', 'GstVideo-1.0',
       'GstAudio-1.0', 'GstTag-1.0'],
-    'install' : true,
+    'install' : not meson.is_subproject(),
     '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]