summaryrefslogtreecommitdiff
path: root/recipes/gst-omx-1.0.recipe
blob: 01acdd9925b4635b89ef3690028cddc3ffcf0903 (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
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python

class Recipe(custom.GStreamer):
    name = 'gst-omx-1.0'
    btype = BuildType.MESON
    tarball_checksum = '48e82008a2a0ad5f4b525aba8a6c49c4ca2d7d25c6b1b14d107dd747e26d5a8e'
    deps = ['gstreamer-1.0', 'gst-plugins-base-1.0']

    files_plugins_codecs = ['lib/gstreamer-1.0/libgstomx%(mext)s']
    files_plugins_codecs_devel = [
        'lib/gstreamer-1.0/libgstomx.a',
        'lib/gstreamer-1.0/libgstomx.la'
    ]

    def prepare(self):
        if self.config.variants.rpi:
            flags = ['-I/opt/vc/include', '-I/opt/vc/include/IL',
                     '-I/opt/vc/include/interface/vcos/pthreads',
                     '-I/opt/vc/include/interface/vmcs_host/linux']
            self.append_env('CFLAGS', *flags)
            self.append_env('CPPFLAGS', *flags)
            self.append_env('LDFLAGS', '-L/opt/vc/lib')
            self.meson_options['target'] = 'rpi'
        else:
            self.meson_options['target'] = 'generic'