-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Carthage support
- Loading branch information
Showing
4 changed files
with
72 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,6 @@ xcuserdata | |
|
||
# Carthage | ||
Carthage/Build | ||
|
||
# Pre-action log file | ||
pre_action.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env sh | ||
set -e # abort if any command fails | ||
|
||
LIBWALLYCORE="CLibWally/libwally-core/src/.libs/libwallycore.a" | ||
VALIDLIBWALLYCORE=0 | ||
REQUIREDARCHS="armv7 armv7s i386 x86_64 arm64 arm64e" | ||
LIPO_CMD="lipo $LIBWALLYCORE -verify_arch $REQUIREDARCHS" | ||
|
||
if [ -e "$LIBWALLYCORE" ]; then | ||
echo "$LIBWALLYCORE exists" | ||
if $LIPO_CMD; then | ||
VALIDLIBWALLYCORE=1 | ||
echo "libwallycore.a contains $REQUIREDARCHS" | ||
else | ||
echo "libwallycore.a does not contain $REQUIREDARCHS" | ||
lipo "$LIBWALLYCORE" -info | ||
fi | ||
else | ||
echo "$LIBWALLYCORE does not exists" | ||
fi | ||
|
||
if ((VALIDLIBWALLYCORE == 0)); then | ||
echo "Rebuilding libwallycore.a" | ||
sh ./build-libwally.sh -csd | ||
else | ||
echo "Skip rebuild" | ||
fi | ||
|
||
exit 0 |