diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2022-08-24 10:55:53 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2022-09-15 10:40:12 +0530 |
commit | ceb6534a6b5a4f8e9b67e8efd9ac5b5b5e16ff1a (patch) | |
tree | 3297e83e84d59219c94b7063d207a2172a29fe19 /packages | |
parent | 65c81d7c4dd0c7b88c8eb70da6a03c7c5410ed0d (diff) |
Add gst-plugins-rs.recipe
Plugins are also packaged when the variant is enabled.
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/915>
Diffstat (limited to 'packages')
-rw-r--r-- | packages/gstreamer-1.0-capture.package | 5 | ||||
-rw-r--r-- | packages/gstreamer-1.0-codecs-gpl.package | 7 | ||||
-rw-r--r-- | packages/gstreamer-1.0-codecs-restricted.package | 4 | ||||
-rw-r--r-- | packages/gstreamer-1.0-codecs.package | 4 | ||||
-rw-r--r-- | packages/gstreamer-1.0-core.package | 5 | ||||
-rw-r--r-- | packages/gstreamer-1.0-dvd.package | 4 | ||||
-rw-r--r-- | packages/gstreamer-1.0-effects.package | 4 | ||||
-rw-r--r-- | packages/gstreamer-1.0-encoding.package | 4 | ||||
-rw-r--r-- | packages/gstreamer-1.0-net-restricted.package | 4 | ||||
-rw-r--r-- | packages/gstreamer-1.0-net.package | 4 | ||||
-rw-r--r-- | packages/gstreamer-1.0-playback.package | 5 | ||||
-rw-r--r-- | packages/gstreamer-1.0-system.package | 4 | ||||
-rw-r--r-- | packages/gstreamer-1.0-visualizers.package | 5 |
13 files changed, 57 insertions, 2 deletions
diff --git a/packages/gstreamer-1.0-capture.package b/packages/gstreamer-1.0-capture.package index afc2bf4f..f829fa01 100644 --- a/packages/gstreamer-1.0-capture.package +++ b/packages/gstreamer-1.0-capture.package @@ -18,3 +18,8 @@ class Package(custom.GStreamer, package.Package): 'gst-plugins-good-1.0:plugins_capture_devel', 'gst-plugins-ugly-1.0:plugins_capture_devel', 'gst-plugins-bad-1.0:plugins_capture_devel'] + + def prepare(self): + if self.config.variants.rust: + self.files.append('gst-plugins-rs:plugins_capture') + self.files_devel.append('gst-plugins-rs:plugins_capture_devel') diff --git a/packages/gstreamer-1.0-codecs-gpl.package b/packages/gstreamer-1.0-codecs-gpl.package index 3c4f0946..48c12058 100644 --- a/packages/gstreamer-1.0-codecs-gpl.package +++ b/packages/gstreamer-1.0-codecs-gpl.package @@ -17,14 +17,17 @@ class Package(custom.GStreamer, package.Package): 'gst-plugins-ugly-1.0:plugins_codecs_gpl'] files_devel = ['gst-plugins-base-1.0:plugins_codecs_gpl_devel', 'gst-plugins-good-1.0:plugins_codecs_gpl_devel', - 'gst-plugins-bad-1.0:plugins_codecs_gpl_devel', - 'gst-plugins-ugly-1.0:plugins_codecs_gpl_devel'] + 'gst-plugins-bad-1.0:plugins_codecs_gpl_devel'] def prepare(self): if self.config.target_platform in (Platform.WINDOWS, Platform.ANDROID): # Needed by libass self.files.append('libiconv:libs') + if self.config.variants.rust: + self.files.append('gst-plugins-rs:plugins_codecs_gpl') + self.files_devel.append('gst-plugins-rs:plugins_codecs_gpl_devel') + if self.config.variants.uwp: self.files.remove('libass:libs') self.files.remove('libiconv:libs') diff --git a/packages/gstreamer-1.0-codecs-restricted.package b/packages/gstreamer-1.0-codecs-restricted.package index a39a65ad..58556ff8 100644 --- a/packages/gstreamer-1.0-codecs-restricted.package +++ b/packages/gstreamer-1.0-codecs-restricted.package @@ -22,6 +22,10 @@ class Package(custom.GStreamer, package.Package): if self.config.platform == Platform.WINDOWS: self.files.remove('a52dec:libs') + if self.config.variants.rust: + self.files.append('gst-plugins-rs:plugins_codecs_restricted') + self.files_devel.append('gst-plugins-rs:plugins_restricted_devel') + if self.config.variants.uwp: self.files = [ 'gst-plugins-ugly-1.0:plugins_codecs_restricted', diff --git a/packages/gstreamer-1.0-codecs.package b/packages/gstreamer-1.0-codecs.package index 0781454f..00e89397 100644 --- a/packages/gstreamer-1.0-codecs.package +++ b/packages/gstreamer-1.0-codecs.package @@ -45,6 +45,10 @@ class Package(custom.GStreamer, package.Package): # Needed by zbar library self.files.append('libiconv:libs') + if self.config.variants.rust: + self.files.append('gst-plugins-rs:plugins_codecs') + self.files_devel.append('gst-plugins-rs:plugins_codecs_devel') + if self.config.variants.uwp: self.files = [ 'libvpx:libs', 'openh264:libs', 'opus:libs', diff --git a/packages/gstreamer-1.0-core.package b/packages/gstreamer-1.0-core.package index 55b91531..10a0b12d 100644 --- a/packages/gstreamer-1.0-core.package +++ b/packages/gstreamer-1.0-core.package @@ -32,5 +32,10 @@ class Package(custom.GStreamer, package.Package): # will likely only use it from inside Visual Studio. if not self.config.variants.uwp: self.platform_files[Platform.WINDOWS].append('pkg-config') + if self.config.variants.unwind: self.files.append('libunwind:libs') + + if self.config.variants.rust: + self.files.append('gst-plugins-rs:plugins_core') + self.files_devel.append('gst-plugins-rs:plugins_core_devel') diff --git a/packages/gstreamer-1.0-dvd.package b/packages/gstreamer-1.0-dvd.package index 649af673..9c8a04fb 100644 --- a/packages/gstreamer-1.0-dvd.package +++ b/packages/gstreamer-1.0-dvd.package @@ -25,3 +25,7 @@ class Package(custom.GStreamer, package.Package): if self.config.platform == Platform.WINDOWS: self.files.remove('libdvdnav:libs') self.files.remove('libdvdread:libs') + + if self.config.variants.rust: + self.files.append('gst-plugins-rs:plugins_dvd') + self.files_devel.append('gst-plugins-rs:plugins_dvd_devel') diff --git a/packages/gstreamer-1.0-effects.package b/packages/gstreamer-1.0-effects.package index ea771b8d..b105d359 100644 --- a/packages/gstreamer-1.0-effects.package +++ b/packages/gstreamer-1.0-effects.package @@ -26,3 +26,7 @@ class Package(custom.GStreamer, package.Package): self.files += ['soundtouch:libs', 'webrtc-audio-processing:libs'] if self.config.variants.uwp: self.files.remove('ladspa:libs') + + if self.config.variants.rust: + self.files.append('gst-plugins-rs:plugins_effects') + self.files_devel.append('gst-plugins-rs:plugins_effects_devel') diff --git a/packages/gstreamer-1.0-encoding.package b/packages/gstreamer-1.0-encoding.package index a463ba7b..bb7f6d5c 100644 --- a/packages/gstreamer-1.0-encoding.package +++ b/packages/gstreamer-1.0-encoding.package @@ -19,3 +19,7 @@ class Package(custom.GStreamer, package.Package): 'gst-plugins-ugly-1.0:plugins_encoding_devel', 'gst-plugins-bad-1.0:plugins_encoding_devel'] + def prepare(self): + if self.config.variants.rust: + self.files.append('gst-plugins-rs:plugins_encoding') + self.files_devel.append('gst-plugins-rs:plugins_encoding_devel') diff --git a/packages/gstreamer-1.0-net-restricted.package b/packages/gstreamer-1.0-net-restricted.package index 967ad4b4..e6a6ccc0 100644 --- a/packages/gstreamer-1.0-net-restricted.package +++ b/packages/gstreamer-1.0-net-restricted.package @@ -20,3 +20,7 @@ class Package(custom.GStreamer, package.Package): def prepare(self): if self.config.variants.uwp: self.files.remove('librtmp:libs') + + if self.config.variants.rust: + self.files.append('gst-plugins-rs:plugins_net_restricted') + self.files_devel.append('gst-plugins-rs:plugins_net_restricted_devel') diff --git a/packages/gstreamer-1.0-net.package b/packages/gstreamer-1.0-net.package index ead91c82..b342adb1 100644 --- a/packages/gstreamer-1.0-net.package +++ b/packages/gstreamer-1.0-net.package @@ -32,6 +32,10 @@ class Package(custom.GStreamer, package.Package): elif self.config.target_platform == Platform.LINUX: self.sys_deps = {self.config.target_distro_version: ['glib-networking']} + if self.config.variants.rust: + self.files.append('gst-plugins-rs:plugins_net') + self.files_devel.append('gst-plugins-rs:plugins_net_devel') + if self.config.variants.uwp: self.files = [ 'glib-networking', 'libsrtp:libs', diff --git a/packages/gstreamer-1.0-playback.package b/packages/gstreamer-1.0-playback.package index 64aaacce..06103eda 100644 --- a/packages/gstreamer-1.0-playback.package +++ b/packages/gstreamer-1.0-playback.package @@ -18,3 +18,8 @@ class Package(custom.GStreamer, package.Package): 'gst-plugins-good-1.0:plugins_playback_devel', 'gst-plugins-ugly-1.0:plugins_playback_devel', 'gst-plugins-bad-1.0:plugins_playback_devel'] + + def prepare(self): + if self.config.variants.rust: + self.files.append('gst-plugins-rs:plugins_playback') + self.files_devel.append('gst-plugins-rs:plugins_playback_devel') diff --git a/packages/gstreamer-1.0-system.package b/packages/gstreamer-1.0-system.package index 912207fe..c611b913 100644 --- a/packages/gstreamer-1.0-system.package +++ b/packages/gstreamer-1.0-system.package @@ -32,3 +32,7 @@ class Package(custom.GStreamer, package.Package): if self.config.target_arch in (Architecture.X86, Architecture.X86_64, Architecture.ARM64, Architecture.UNIVERSAL): self.files.append('angle-uwp:libs') self.files_devel.append('angle-uwp:headers') + + if self.config.variants.rust: + self.files.append('gst-plugins-rs:plugins_sys') + self.files_devel.append('gst-plugins-rs:plugins_sys_devel') diff --git a/packages/gstreamer-1.0-visualizers.package b/packages/gstreamer-1.0-visualizers.package index 872ed6d8..15491137 100644 --- a/packages/gstreamer-1.0-visualizers.package +++ b/packages/gstreamer-1.0-visualizers.package @@ -16,3 +16,8 @@ class Package(custom.GStreamer, package.Package): 'gst-plugins-good-1.0:plugins_vis_devel', 'gst-plugins-ugly-1.0:plugins_vis_devel', 'gst-plugins-bad-1.0:plugins_vis_devel'] + + def prepare(self): + if self.config.variants.rust: + self.files.append('gst-plugins-rs:plugins_vis') + self.files_devel.append('gst-plugins-rs:plugins_vis_devel') |