Created
September 22, 2013 18:20
-
-
Save cesare/6662450 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
srcdir="${HOME}/svn/pjproject" | |
devpath="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer" | |
arch="i386" | |
cflags="-O2 -m32 -miphoneos-version-min=4.0" | |
ldflags="-O2 -m32 -miphoneos-version-min=4.0" | |
cd ${srcdir} | |
( | |
cat <<END | |
#define PJ_CONFIG_IPHONE 1 | |
#include <pj/config_site_sample.h> | |
END | |
) > pjlib/include/pj/config_site.h | |
ARCH="-arch ${arch}" DEVPATH=${devpath} CFLAGS=${cflags} LDFLAGS=${ldflags} ./configure-iphone && make dep && make clean && make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment