Merge pull request #40 from pieterclaerhout/master

Added a script to create openssl.framework
This commit is contained in:
Felix Schulze 2014-11-23 18:52:16 +01:00
commit 1da7d72467
2 changed files with 21 additions and 1 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ src
build build
OpenSSL-for-iOS.xcodeproj/project.xcworkspace/xcuserdata OpenSSL-for-iOS.xcodeproj/project.xcworkspace/xcuserdata
include/openssl include/openssl
*.framework

19
create-openssl-framework.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/sh
FWNAME=openssl
if [ ! -d lib ]; then
echo "Please run build-libssl.sh first!"
exit 1
fi
if [ -d $FWNAME.framework ]; then
echo "Removing previous $FWNAME.framework copy"
rm -rf $FWNAME.framework
fi
echo "Creating $FWNAME.framework"
mkdir -p $FWNAME.framework/Headers
libtool -no_warning_for_no_symbols -static -o $FWNAME.framework/$FWNAME lib/libcrypto.a lib/libssl.a
cp -r include/$FWNAME/* $FWNAME.framework/Headers/
echo "Created $FWNAME.framework"