diff options
-rw-r--r-- | recipes/gst-ffmpeg-static.recipe | 7 | ||||
-rw-r--r-- | recipes/gst-ffmpeg.recipe | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/recipes/gst-ffmpeg-static.recipe b/recipes/gst-ffmpeg-static.recipe index dc7af21..41906bd 100644 --- a/recipes/gst-ffmpeg-static.recipe +++ b/recipes/gst-ffmpeg-static.recipe @@ -43,6 +43,13 @@ class Recipe(custom.GStreamerStatic): if self.config.target_platform == Platform.WINDOWS: opts = '--cross-prefix=%s- --target-os=mingw32 --arch=%s' %\ (self.config.host, self.config.target_arch) + if self.config.target_platform == Platform.IOS: + opts = "--enable-cross-compile --target-os=darwin --cross-prefix='' --arch=%s "\ + "--cc='$CC' --ar='$AR' --nm='$NM' --extra-cflags='$CFLAGS'" % self.config.target_arch + if self.config.target_arch == Architecture.X86: + opts += ' --as=$AS' + else: + opts += " --as='$GAS'" if opts: opts_file = os.path.join(self.build_dir, 'ffmpeg_extra_configure_options') with open(opts_file, 'w+') as f: diff --git a/recipes/gst-ffmpeg.recipe b/recipes/gst-ffmpeg.recipe index 24a84f7..562d193 100644 --- a/recipes/gst-ffmpeg.recipe +++ b/recipes/gst-ffmpeg.recipe @@ -40,7 +40,7 @@ class Recipe(recipe.Recipe): if self.config.target_arch == Architecture.X86: opts += ' --as=$AS' else: - opts += ' --as=$GAS' + opts += " --as='$GAS'" if opts: opts_file = os.path.join(self.build_dir, 'ffmpeg_extra_configure_options') with open(opts_file, 'w+') as f: |