Merge pull request #48 from dapperstout/master
Add support for creating a dynamically linked framework.
This commit is contained in:
commit
c6b17fa638
|
@ -12,8 +12,14 @@ if [ -d $FWNAME.framework ]; then
|
||||||
rm -rf $FWNAME.framework
|
rm -rf $FWNAME.framework
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$1" == "dynamic" ]; then
|
||||||
|
LIBTOOL_FLAGS="-dynamic -undefined dynamic_lookup"
|
||||||
|
else
|
||||||
|
LIBTOOL_FLAGS="-static"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Creating $FWNAME.framework"
|
echo "Creating $FWNAME.framework"
|
||||||
mkdir -p $FWNAME.framework/Headers
|
mkdir -p $FWNAME.framework/Headers
|
||||||
libtool -no_warning_for_no_symbols -static -o $FWNAME.framework/$FWNAME lib/libcrypto.a lib/libssl.a
|
libtool -no_warning_for_no_symbols $LIBTOOL_FLAGS -o $FWNAME.framework/$FWNAME lib/libcrypto.a lib/libssl.a
|
||||||
cp -r include/$FWNAME/* $FWNAME.framework/Headers/
|
cp -r include/$FWNAME/* $FWNAME.framework/Headers/
|
||||||
echo "Created $FWNAME.framework"
|
echo "Created $FWNAME.framework"
|
||||||
|
|
Loading…
Reference in New Issue