diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-02-26 17:09:37 +0100 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-02-26 18:16:12 +0100 |
commit | 64f8e411378b6584db4f98bf65a3cebb28c752d4 (patch) | |
tree | 70adeaf732d90d73c1213b2c449490dec2d56a8a /recipes | |
parent | 1a9cd7e8e17ac8fdbbf70c228a8890569a35423d (diff) |
gst-ffmpeg-static: Fix iOS build
Diffstat (limited to 'recipes')
-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: |