summaryrefslogtreecommitdiff
path: root/recipes/gst-devtools-1.0.recipe
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2020-05-29 12:18:22 +0100
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-05-29 15:28:19 +0000
commit587da007aefa4135b203c9d724afffdecc14d7db (patch)
treef080fab4dabb385acfe284aaf3fcc58dceb0a0ad /recipes/gst-devtools-1.0.recipe
parentcaeec6d0f49ab475f4d3793638cf982096b609fa (diff)
Rename gst-validate -> gst-devtools-1.0
There will be gst-devtools tarballs in future as well, so we can make this into a 'normal' gstreamer module now and remove the special-casing. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/490>
Diffstat (limited to 'recipes/gst-devtools-1.0.recipe')
-rw-r--r--recipes/gst-devtools-1.0.recipe42
1 files changed, 42 insertions, 0 deletions
diff --git a/recipes/gst-devtools-1.0.recipe b/recipes/gst-devtools-1.0.recipe
new file mode 100644
index 00000000..6c0d9651
--- /dev/null
+++ b/recipes/gst-devtools-1.0.recipe
@@ -0,0 +1,42 @@
+# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
+from cerbero.utils import shell
+from cerbero.tools.libtool import LibtoolLibrary
+
+class Recipe(custom.GStreamer):
+ name = 'gst-devtools-1.0'
+ btype = BuildType.MESON
+ meson_options = {'debug_viewer': 'disabled'}
+ tarball_checksum = '0000000000000000000000000000000000000000000000000000000000000000'
+ deps = ['gstreamer-1.0', 'gst-plugins-base-1.0', 'json-glib', 'gst-rtsp-server-1.0']
+
+ files_bins = ['gst-validate-1.0', 'gst-validate-transcoding-1.0', 'gst-validate-media-check-1.0',
+ 'gst-validate-rtsp-server-1.0']
+ files_libs = ['libgstvalidate-1.0']
+
+ files_devel = ["include/gstreamer-1.0/gst/validate/*.h",
+ "lib/pkgconfig/gst-validate-1.0.pc"]
+
+ files_validate = ["lib/gst-validate-launcher/",
+ 'bin/gst-validate-launcher',
+ "share/gstreamer-1.0/validate/scenarios/*.scenario"
+ ]
+
+ files_typelibs = [
+ 'GstValidate-1.0'
+ ]
+
+ def prepare(self):
+ if self.config.target_platform == Platform.LINUX:
+ self.files_libs.append("libgstvalidate-default-overrides-1.0")
+
+ if self.config.platform != Platform.WINDOWS:
+ # validatedefaultinjection plugin isn't built on Windows
+ self.files_gst_validate_plugins = ['lib/gstreamer-1.0/validate/libgstvalidatefaultinjection%(mext)s']
+
+ def post_install(self):
+ super().post_install()
+
+ if self.config.target_platform == Platform.LINUX:
+ LibtoolLibrary('gstvalidate-default-overrides-1.0',
+ None, None, None, self.config.libdir,
+ self.config.target_platform, deps=['gstvalidate-1.0']).save()