]> git.sesse.net Git - x264/commit
iPhone compilation support
authorDavid Conrad <lessen42@gmail.com>
Sun, 4 Oct 2009 11:24:42 +0000 (07:24 -0400)
committerFiona Glaser <fiona@x264.com>
Mon, 15 Feb 2010 09:00:07 +0000 (01:00 -0800)
commit04996dfb749955610daeb9a35bf3e1230ead460a
tree7423597d6cfcaa422aed915244a0305791f168b1
parentb46cec4f0128df6dc5cea0fca4d73671fe11bbdc
iPhone compilation support
Also add --sysroot to configure options

To build for iPhone 3gs / iPod touch 3g:
CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc ./configure --host=arm-apple-darwin --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk

For older devices, add
--extra-cflags='-arch armv6 -mcpu=arm1176jzf-s' --extra-ldflags='-arch armv6' --disable-asm
common/arm/asm.S
common/arm/pixel-a.S
configure
extras/gas-preprocessor.pl [new file with mode: 0755]