mirror of
https://github.com/passepartoutvpn/openssl-apple.git
synced 2025-01-20 15:59:05 +00:00
Added a script to create a framework for openssl.
This makes it a lot easier to add this to another project.
This commit is contained in:
parent
e26dc9858e
commit
351c379210
3
.gitignore
vendored
3
.gitignore
vendored
@ -5,4 +5,5 @@ OpenSSL-for-iOS.xcodeproj/xcuserdata
|
||||
src
|
||||
build
|
||||
OpenSSL-for-iOS.xcodeproj/project.xcworkspace/xcuserdata
|
||||
include/openssl
|
||||
include/openssl
|
||||
*.framework
|
||||
|
19
create-openssl-framework.sh
Executable file
19
create-openssl-framework.sh
Executable 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"
|
Loading…
Reference in New Issue
Block a user