webrtc/talk/examples/ios/makeLibs.sh
henrike@webrtc.org 28e2075280 Adds trunk/talk folder of revision 359 from libjingles google code to
trunk/talk


git-svn-id: http://webrtc.googlecode.com/svn/trunk@4318 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-07-10 00:45:36 +00:00

31 lines
662 B
Bash
Executable File

#!/bin/bash -e
if [ "$(dirname $0)" != "." ]; then
echo "$(basename $0) must be run from talk/examples/ios as ./$(basename $0)"
exit 1
fi
rm -rf libs
mkdir libs
cd ../../../xcodebuild/Debug-iphoneos
for f in *.a; do
if [ -f "../Debug-iphonesimulator/$f" ]; then
echo "creating fat static library $f"
lipo -create "$f" "../Debug-iphonesimulator/$f" -output "../../talk/examples/ios/libs/$f"
else
echo ""
echo "$f was not built for the simulator."
echo ""
fi
done
cd ../Debug-iphonesimulator
for f in *.a; do
if [ ! -f "../Debug-iphoneos/$f" ]; then
echo ""
echo "$f was not built for the iPhone."
echo ""
fi
done