build: make protobuf optional in depends
Those that want to build it can now pass PROTOBUF=1.
This commit is contained in:
parent
ff6122f32b
commit
107e030723
5 changed files with 16 additions and 4 deletions
|
@ -7,6 +7,7 @@
|
||||||
export LC_ALL=C.UTF-8
|
export LC_ALL=C.UTF-8
|
||||||
|
|
||||||
export HOST=i686-pc-linux-gnu
|
export HOST=i686-pc-linux-gnu
|
||||||
|
export DEP_OPTS="PROTOBUF=1"
|
||||||
export PACKAGES="g++-multilib python3-zmq"
|
export PACKAGES="g++-multilib python3-zmq"
|
||||||
export GOAL="install"
|
export GOAL="install"
|
||||||
export BITCOIN_CONFIG="--enable-zmq --with-gui=qt5 --enable-bip70 --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++"
|
export BITCOIN_CONFIG="--enable-zmq --with-gui=qt5 --enable-bip70 --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++"
|
||||||
|
|
|
@ -5,6 +5,7 @@ WORK_PATH = $(BASEDIR)/work
|
||||||
BASE_CACHE ?= $(BASEDIR)/built
|
BASE_CACHE ?= $(BASEDIR)/built
|
||||||
SDK_PATH ?= $(BASEDIR)/SDKs
|
SDK_PATH ?= $(BASEDIR)/SDKs
|
||||||
NO_QT ?=
|
NO_QT ?=
|
||||||
|
PROTOBUF ?=
|
||||||
RAPIDCHECK ?=
|
RAPIDCHECK ?=
|
||||||
NO_WALLET ?=
|
NO_WALLET ?=
|
||||||
NO_ZMQ ?=
|
NO_ZMQ ?=
|
||||||
|
@ -96,13 +97,15 @@ wallet_packages_$(NO_WALLET) = $(wallet_packages)
|
||||||
upnp_packages_$(NO_UPNP) = $(upnp_packages)
|
upnp_packages_$(NO_UPNP) = $(upnp_packages)
|
||||||
zmq_packages_$(NO_ZMQ) = $(zmq_packages)
|
zmq_packages_$(NO_ZMQ) = $(zmq_packages)
|
||||||
|
|
||||||
|
protobuf_packages_$(PROTOBUF) = $(protobuf_packages)
|
||||||
rapidcheck_packages_$(RAPIDCHECK) = $(rapidcheck_packages)
|
rapidcheck_packages_$(RAPIDCHECK) = $(rapidcheck_packages)
|
||||||
|
|
||||||
packages += $($(host_arch)_$(host_os)_packages) $($(host_os)_packages) $(qt_packages_) $(wallet_packages_) $(upnp_packages_)
|
packages += $($(host_arch)_$(host_os)_packages) $($(host_os)_packages) $(qt_packages_) $(wallet_packages_) $(upnp_packages_)
|
||||||
native_packages += $($(host_arch)_$(host_os)_native_packages) $($(host_os)_native_packages)
|
native_packages += $($(host_arch)_$(host_os)_native_packages) $($(host_os)_native_packages)
|
||||||
|
|
||||||
ifneq ($(qt_packages_),)
|
ifeq ($(protobuf_packages_),)
|
||||||
native_packages += $(qt_native_packages)
|
native_packages += $(protobuf_native_packages)
|
||||||
|
packages += $(protobuf_packages)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(zmq_packages_),)
|
ifneq ($(zmq_packages_),)
|
||||||
|
@ -150,6 +153,7 @@ $(host_prefix)/share/config.site : config.site.in $(host_prefix)/.stamp_$(final_
|
||||||
-e 's|@allow_host_packages@|$(ALLOW_HOST_PACKAGES)|' \
|
-e 's|@allow_host_packages@|$(ALLOW_HOST_PACKAGES)|' \
|
||||||
-e 's|@no_qt@|$(NO_QT)|' \
|
-e 's|@no_qt@|$(NO_QT)|' \
|
||||||
-e 's|@no_zmq@|$(NO_ZMQ)|' \
|
-e 's|@no_zmq@|$(NO_ZMQ)|' \
|
||||||
|
-e 's|@enable_bip70@|$(PROTOBUF)|' \
|
||||||
-e 's|@no_wallet@|$(NO_WALLET)|' \
|
-e 's|@no_wallet@|$(NO_WALLET)|' \
|
||||||
-e 's|@no_upnp@|$(NO_UPNP)|' \
|
-e 's|@no_upnp@|$(NO_UPNP)|' \
|
||||||
-e 's|@debug@|$(DEBUG)|' \
|
-e 's|@debug@|$(DEBUG)|' \
|
||||||
|
|
|
@ -77,6 +77,7 @@ The following can be set when running make: make FOO=bar
|
||||||
NO_UPNP: Don't download/build/cache packages needed for enabling upnp
|
NO_UPNP: Don't download/build/cache packages needed for enabling upnp
|
||||||
DEBUG: disable some optimizations and enable more runtime checking
|
DEBUG: disable some optimizations and enable more runtime checking
|
||||||
RAPIDCHECK: build rapidcheck (experimental, requires cmake)
|
RAPIDCHECK: build rapidcheck (experimental, requires cmake)
|
||||||
|
PROTOBUF: build protobuf (used for deprecated BIP70 support)
|
||||||
HOST_ID_SALT: Optional salt to use when generating host package ids
|
HOST_ID_SALT: Optional salt to use when generating host package ids
|
||||||
BUILD_ID_SALT: Optional salt to use when generating build package ids
|
BUILD_ID_SALT: Optional salt to use when generating build package ids
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,10 @@ if test -z $enable_zmq && test -n "@no_zmq@"; then
|
||||||
enable_zmq=no
|
enable_zmq=no
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test -n $enable_bip70 && test -n "@enable_bip70@"; then
|
||||||
|
enable_bip70=yes
|
||||||
|
fi
|
||||||
|
|
||||||
if test x@host_os@ = xdarwin; then
|
if test x@host_os@ = xdarwin; then
|
||||||
BREW=no
|
BREW=no
|
||||||
PORT=no
|
PORT=no
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
packages:=boost openssl libevent
|
packages:=boost openssl libevent
|
||||||
|
|
||||||
qt_native_packages = native_protobuf
|
protobuf_native_packages = native_protobuf
|
||||||
qt_packages = qrencode protobuf zlib
|
protobuf_packages = protobuf
|
||||||
|
|
||||||
|
qt_packages = qrencode zlib
|
||||||
|
|
||||||
qt_linux_packages:=qt expat libxcb xcb_proto libXau xproto freetype fontconfig
|
qt_linux_packages:=qt expat libxcb xcb_proto libXau xproto freetype fontconfig
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue