|
|
@ -33,7 +33,7 @@ Usage: |
|
|
|
$0 --help |
|
|
|
Show this help message and exit. |
|
|
|
|
|
|
|
$0 [ --enable-lcov || --disable-tests ] [ --disable-mining ] [ --disable-rust ] [ MAKEARGS... ] |
|
|
|
$0 [ --enable-lcov || --disable-tests ] [ --disable-mining ] [ --disable-rust ] [ --disable-proton ] [ MAKEARGS... ] |
|
|
|
Build Zcash and most of its transitive dependencies from |
|
|
|
source. MAKEARGS are applied to both dependencies and Zcash itself. |
|
|
|
|
|
|
@ -46,6 +46,10 @@ $0 [ --enable-lcov || --disable-tests ] [ --disable-mining ] [ --disable-rust ] |
|
|
|
|
|
|
|
If --disable-rust is passed, Zcash is configured to not build any Rust language |
|
|
|
assets. It must be passed after mining/test arguments, if present. |
|
|
|
|
|
|
|
If --disable-proton is passed, Zcash is configured to not build the Apache |
|
|
|
Qpid Proton library required for AMQP support. It must be passed after the |
|
|
|
test arguments, if present. |
|
|
|
EOF |
|
|
|
exit 0 |
|
|
|
fi |
|
|
@ -84,9 +88,17 @@ then |
|
|
|
shift |
|
|
|
fi |
|
|
|
|
|
|
|
# If --disable-proton is the next argument, disable building Proton code: |
|
|
|
PROTON_ARG='' |
|
|
|
if [ "x${1:-}" = 'x--disable-proton' ] |
|
|
|
then |
|
|
|
PROTON_ARG='--enable-proton=no' |
|
|
|
shift |
|
|
|
fi |
|
|
|
|
|
|
|
PREFIX="$(pwd)/depends/$BUILD/" |
|
|
|
|
|
|
|
HOST="$HOST" BUILD="$BUILD" NO_RUST="$RUST_ARG" "$MAKE" "$@" -C ./depends/ V=1 |
|
|
|
HOST="$HOST" BUILD="$BUILD" NO_RUST="$RUST_ARG" NO_PROTON="$PROTON_ARG" "$MAKE" "$@" -C ./depends/ V=1 |
|
|
|
./autogen.sh |
|
|
|
CC="$CC" CXX="$CXX" ./configure --prefix="${PREFIX}" --host="$HOST" --build="$BUILD" "$RUST_ARG" "$HARDENING_ARG" "$LCOV_ARG" "$TEST_ARG" "$MINING_ARG" CXXFLAGS='-fwrapv -fno-strict-aliasing -Werror -g' |
|
|
|
CC="$CC" CXX="$CXX" ./configure --prefix="${PREFIX}" --host="$HOST" --build="$BUILD" "$RUST_ARG" "$HARDENING_ARG" "$LCOV_ARG" "$TEST_ARG" "$MINING_ARG" "$PROTON_ARG" CXXFLAGS='-fwrapv -fno-strict-aliasing -Werror -g' |
|
|
|
"$MAKE" "$@" V=1 |
|
|
|