diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-05-27 03:08:28 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-05-27 03:21:30 +0530 |
commit | 77b44b973fdf6d5d0160824e2af005d0916f4412 (patch) | |
tree | 7feaa74e87a0d98b46405c081bdbb93e0e8bb35e /recipes/gst-libav-1.0.recipe | |
parent | 99ce1b90e255bdc6914a6e18c0e945ded5f6c655 (diff) |
gst-libav-1.0.recipe: Don't target Vista while building ffmpeg
ffmpeg 4.0 and above have the necessary bugfixes for it, but the
version we're using currently does not.
Add it only for ffmpeg because our own code must build while
targetting Vista and above.
Diffstat (limited to 'recipes/gst-libav-1.0.recipe')
-rw-r--r-- | recipes/gst-libav-1.0.recipe | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes/gst-libav-1.0.recipe b/recipes/gst-libav-1.0.recipe index 07165dbe..fc80b192 100644 --- a/recipes/gst-libav-1.0.recipe +++ b/recipes/gst-libav-1.0.recipe @@ -68,6 +68,11 @@ class Recipe(custom.GStreamer): # cause warnings now. Ignore them libavextraconf = " --extra-cflags=\'-Wno-ignored-optimization-argument\' " self.configure_options += ' --with-libav-extra-configure="%s"' % libavextraconf + elif self.config.target_platform == Platform.WINDOWS: + # FIXME: Remove when we update to ffmpeg 4.0 which fixes targetting Vista + winflags = '-UWINVER -U_WIN32_WINNT -DWINVER=0x0501 -D_WIN32_WINNT=0x0501' + libavextraconf = "--extra-cflags='{}'".format(winflags) + self.configure_options += ' --with-libav-extra-configure="{}" '.format(libavextraconf) if self.config.variants.nodebug: self.append_env['CFLAGS'] += ' -DGST_LEVEL_MAX=GST_LEVEL_FIXME' |