Browse Source

mac build: reuse previously built dylibs if available

patch-4
SomberNight 4 years ago
parent
commit
5115e14aed
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 24
      contrib/osx/make_osx

24
contrib/osx/make_osx

@ -129,16 +129,28 @@ info "generating locale"
info "Installing some build-time deps for compilation..." info "Installing some build-time deps for compilation..."
brew install autoconf automake libtool gettext coreutils pkgconfig brew install autoconf automake libtool gettext coreutils pkgconfig
info "Building libsecp256k1 dylib..." if [ ! -f "$PROJECT_ROOT"/electrum/libsecp256k1.0.dylib ]; then
"$CONTRIB"/make_libsecp256k1.sh || fail "Could not build libsecp" info "Building libsecp256k1 dylib..."
"$CONTRIB"/make_libsecp256k1.sh || fail "Could not build libsecp"
else
info "Skipping libsecp256k1 build: reusing already built dylib."
fi
cp "$PROJECT_ROOT"/electrum/libsecp256k1.0.dylib "$CONTRIB"/osx cp "$PROJECT_ROOT"/electrum/libsecp256k1.0.dylib "$CONTRIB"/osx
info "Building ZBar dylib..." if [ ! -f "$PROJECT_ROOT"/electrum/libzbar.0.dylib ]; then
"$CONTRIB"/make_zbar.sh || fail "Could not build ZBar dylib" info "Building ZBar dylib..."
"$CONTRIB"/make_zbar.sh || fail "Could not build ZBar dylib"
else
info "Skipping ZBar build: reusing already built dylib."
fi
cp "$PROJECT_ROOT"/electrum/libzbar.0.dylib "$CONTRIB"/osx cp "$PROJECT_ROOT"/electrum/libzbar.0.dylib "$CONTRIB"/osx
info "Building libusb dylib..." if [ ! -f "$PROJECT_ROOT"/electrum/libusb-1.0.dylib ]; then
"$CONTRIB"/make_libusb.sh || fail "Could not build libusb dylib" info "Building libusb dylib..."
"$CONTRIB"/make_libusb.sh || fail "Could not build libusb dylib"
else
info "Skipping libusb build: reusing already built dylib."
fi
cp "$PROJECT_ROOT"/electrum/libusb-1.0.dylib "$CONTRIB"/osx cp "$PROJECT_ROOT"/electrum/libusb-1.0.dylib "$CONTRIB"/osx

Loading…
Cancel
Save