Browse Source

builds: parallelise "make" by setting "-j4"

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
SomberNight 6 years ago
parent
commit
63e5119ceb
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 11
      contrib/build-linux/appimage/build.sh
  2. 2
      contrib/build-wine/build-secp256k1.sh
  3. 2
      contrib/osx/make_osx

11
contrib/build-linux/appimage/build.sh

@ -4,10 +4,11 @@ set -e
PROJECT_ROOT="$(dirname "$(readlink -e "$0")")/../../.." PROJECT_ROOT="$(dirname "$(readlink -e "$0")")/../../.."
CONTRIB="$PROJECT_ROOT/contrib" CONTRIB="$PROJECT_ROOT/contrib"
CONTRIB_APPIMAGE="$CONTRIB/build-linux/appimage"
DISTDIR="$PROJECT_ROOT/dist" DISTDIR="$PROJECT_ROOT/dist"
BUILDDIR="$CONTRIB/build-linux/appimage/build/appimage" BUILDDIR="$CONTRIB_APPIMAGE/build/appimage"
APPDIR="$BUILDDIR/electrum.AppDir" APPDIR="$BUILDDIR/electrum.AppDir"
CACHEDIR="$CONTRIB/build-linux/appimage/.cache/appimage" CACHEDIR="$CONTRIB_APPIMAGE/.cache/appimage"
# pinned versions # pinned versions
PYTHON_VERSION=3.6.8 PYTHON_VERSION=3.6.8
@ -49,7 +50,7 @@ tar xf "$CACHEDIR/Python-$PYTHON_VERSION.tar.xz" -C "$BUILDDIR"
--enable-shared \ --enable-shared \
--with-threads \ --with-threads \
-q -q
TZ=UTC faketime -f '2019-01-01 01:01:01' make -s TZ=UTC faketime -f '2019-01-01 01:01:01' make -j4 -s
make -s install > /dev/null make -s install > /dev/null
) )
@ -71,7 +72,7 @@ info "building libsecp256k1."
--enable-module-ecdh \ --enable-module-ecdh \
--disable-jni \ --disable-jni \
-q -q
make -s make -j4 -s
make -s install > /dev/null make -s install > /dev/null
) )
@ -127,7 +128,7 @@ cp "$PROJECT_ROOT/electrum/gui/icons/electrum.png" "$APPDIR/electrum.png"
# add launcher # add launcher
cp "$CONTRIB/build-linux/appimage/apprun.sh" "$APPDIR/AppRun" cp "$CONTRIB_APPIMAGE/apprun.sh" "$APPDIR/AppRun"
info "finalizing AppDir." info "finalizing AppDir."
( (

2
contrib/build-wine/build-secp256k1.sh

@ -14,7 +14,7 @@ build_dll() {
--enable-experimental \ --enable-experimental \
--enable-module-ecdh \ --enable-module-ecdh \
--disable-jni --disable-jni
make make -j4
${1}-strip .libs/libsecp256k1-0.dll ${1}-strip .libs/libsecp256k1-0.dll
} }

2
contrib/osx/make_osx

@ -89,7 +89,7 @@ git reset --hard $LIBSECP_VERSION
git clean -f -x -q git clean -f -x -q
./autogen.sh ./autogen.sh
./configure --enable-module-recovery --enable-experimental --enable-module-ecdh --disable-jni ./configure --enable-module-recovery --enable-experimental --enable-module-ecdh --disable-jni
make make -j4
popd popd
cp $BUILDDIR/secp256k1/.libs/libsecp256k1.0.dylib contrib/osx cp $BUILDDIR/secp256k1/.libs/libsecp256k1.0.dylib contrib/osx

Loading…
Cancel
Save