Skip building if binaries exist
This commit is contained in:
parent
c8cc6d73dc
commit
03dd1a494b
1 changed files with 14 additions and 10 deletions
|
@ -15,7 +15,8 @@ if [ ! -d $TMPROOT/openssl/ios-openssl ] ; then
|
||||||
try popd
|
try popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Build the required binaries
|
# Build the required binaries if not found (long process)
|
||||||
|
if [ ! -f $BUILDROOT/lib/libssl.a ] ; then
|
||||||
if [ -d $TMPROOT/openssl/ios-openssl ] ; then
|
if [ -d $TMPROOT/openssl/ios-openssl ] ; then
|
||||||
echo "ios-openssl repo found. Building now..."
|
echo "ios-openssl repo found. Building now..."
|
||||||
if [ ! -d $TMPROOT/openssl/ios-openssl/lib ] ; then
|
if [ ! -d $TMPROOT/openssl/ios-openssl/lib ] ; then
|
||||||
|
@ -27,6 +28,9 @@ if [ -d $TMPROOT/openssl/ios-openssl ] ; then
|
||||||
sh build.sh
|
sh build.sh
|
||||||
try popd
|
try popd
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
echo "Skipping build. Binary found: $BUILDROOT/lib/libssl.a"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Copying built OpenSSL binaries..."
|
echo "Copying built OpenSSL binaries..."
|
||||||
cp $TMPROOT/openssl/ios-openssl/lib/libssl.a $BUILDROOT/lib/libssl.a
|
cp $TMPROOT/openssl/ios-openssl/lib/libssl.a $BUILDROOT/lib/libssl.a
|
||||||
|
|
Loading…
Reference in a new issue