Perl script that implements a subset of the GNU as preprocessor that Apple's as doesn't
Perl Assembly Makefile
Switch branches/tags
Nothing to show
Pull request Compare This branch is 97 commits ahead of yuvi:master.
Latest commit 36bacb4 Dec 7, 2016 Michael Niedermayer Merge commit 'dd811e7a8403ef762e333909c54c24674ee04892'
* commit 'dd811e7a8403ef762e333909c54c24674ee04892':
  Convert vmrs APSR_nzcv to fmrx r15 for apple-gas
  Handle .quad, .ascii and .asciz for armasm
  Handle .equ in the same way as .set
  Don't include trailing whitespace in symbol names set with .set
  Handle .data sections for armasm
  Match the full branch target when checking for local labels
  Handle stmfd/ldmfd/ldm in the same way as stmdb/ldmia
  Handle .p2align in the same way as .align when converting for armasm
  Match ldrb/ldrw/strb/strw for the force-thumb register post indexing
  Check for arch alias names when parsing the -arch option
  Make the regexp for vmov -> vmov.f32 stricter
  Support the comma-less syntax for aligned vector loads when converting for armasm

README

To configure FFmpeg for iOS:

./configure --enable-cross-compile --arch=arm --target-os=darwin --cc='clang -arch armv7' --sysroot=$(xcrun --sdk iphoneos --show-sdk-path) --cpu=cortex-a8 --enable-pic

If deploying to all generations, it's recommended to do separate out-of-tree
builds for each architecture, then lipo together the resulting libs. For
instance, assuming separate builds in armv6 and armv7:

lipo -create -arch armv6 armv6/libavcodec/libavcodec.a -arch armv7 armv7/libavcodec/libavcodec.a -output universal/libavcodec.a

and similar for each library. Then in XCode, make sure to build for both armv6
and armv7. If you only care about one generation (since the armv6 devices are
too slow for instance), then lipo is unnecessary of course.