summaryrefslogtreecommitdiff
path: root/recipes/gst-devtools-1.0.recipe
blob: 25753266db13418daf7afeda47bbe09f3eda67c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# -*- 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 = '8beb9e98ed136c29f4ec10396dd6c8708a5645cdacda90af1b7196057de17672'
    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",
                   "%(libdir)s/pkgconfig/gstreamer-validate-1.0.pc"]

    files_validate = ["%(libdir)s/gst-validate-launcher/python/launcher/",
                      "%(libdir)s/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 = ['%(libdir)s/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()