# -*- 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 = 'b5281c938e959fd2418e989cfb6065fdd9fe5f6f87ee86236c9427166e708163' 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'