From be3149fae00ba903dc41c70e3cf4caf1e505e7a1 Mon Sep 17 00:00:00 2001 From: Andoni Morales Alastruey Date: Tue, 1 Dec 2020 10:37:57 +0000 Subject: ffmpeg: use Platform enums instead of strings Part-of: --- recipes/ffmpeg.recipe | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'recipes') diff --git a/recipes/ffmpeg.recipe b/recipes/ffmpeg.recipe index 821adc2b..51237579 100644 --- a/recipes/ffmpeg.recipe +++ b/recipes/ffmpeg.recipe @@ -85,9 +85,9 @@ class Recipe(recipe.Recipe): self.config.target_platform == Platform.WINDOWS: libavextraconf += ' --enable-cross-compile' target_os = self.config.target_platform - if target_os == 'windows': + if target_os == Platform.WINDOWS: target_os = 'mingw32' - elif target_os == 'ios': + elif target_os == Platform.IOS: target_os = 'darwin' target_arch = self.config.host.split('-', 1)[0] libavextraconf += ' --target-os=' + target_os -- cgit v1.2.3