mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
builds: parallelise "make" by setting "-j4"
This commit is contained in:
parent
9d2b601cc7
commit
63e5119ceb
3 changed files with 8 additions and 7 deletions
|
@ -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."
|
||||||
(
|
(
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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…
Add table
Reference in a new issue