summary history branches tags files
commit:f0e1763fd4de6ef75cfd7ca8ed46662eceacfa92
author:mrmekon
committer:mrmekon
date:Fri Nov 11 19:50:26 2011 -0500
parents:b3e93d2bd148c3aa077c36a2664f2cf140b8dcbc
Added install file.  Improved iOS buid script to automatically detect SDK version.
diff --git a/INSTALL b/INSTALL
line changes: +27/-0
index 0000000..62cc1d8
--- /dev/null
+++ b/INSTALL
@@ -0,0 +1,27 @@
+********** From Mercurial repository
+
+You must have the autoconf suite installed.  Run:
+
+# autoreconf -i
+
+Then continue as if from tarball.
+
+
+********** From tarball
+
+After extracting, run:
+
+# ./configure
+
+To build for the local host, run:
+
+# make
+# sudo make install
+
+
+
+To build static libraries for Apple iOS, run:
+
+# make ios
+
+Static libraries will be output under the build/ directory. 
\ No newline at end of file

diff --git a/Makefile.am b/Makefile.am
line changes: +3/-0
index 2a318db..8766f3a
--- a/Makefile.am
+++ b/Makefile.am
@@ -9,3 +9,6 @@ libsimplepgp_la_SOURCES = \
 
 clean-local:
 	-rm -rf build
+
+ios:
+	@./build_ios.sh

diff --git a/build_ios.sh b/build_ios.sh
line changes: +2/-1
index 2794ad2..cd7d446
--- a/build_ios.sh
+++ b/build_ios.sh
@@ -3,6 +3,7 @@
 echo "Building iOS library..."
 xcodebuild -project simplepgp.xcodeproj -alltargets > /dev/null
 echo "Building iOS simulator library..."
-xcodebuild -project simplepgp.xcodeproj -alltargets -sdk iphonesimulator4.3 >/dev/null
+SIMSDK=`xcodebuild -showsdks |grep iphonesim |tail -1 |sed 's/.*-sdk \(.*\)/\1/'`
+xcodebuild -project simplepgp.xcodeproj -alltargets -sdk ${SIMSDK} >/dev/null
 echo "Done!"