64f34fbcfe
Fixes: - http://autobuild.buildroot.org/results/05f344151100219c159ca4d466a453df96bf07fa Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> [yann.morin.1998@free.fr: - move code in thread condition, to avoid setting -DBUILD_CPP twice ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
62 lines
1.7 KiB
Makefile
62 lines
1.7 KiB
Makefile
################################################################################
|
|
#
|
|
# qpid-proton
|
|
#
|
|
################################################################################
|
|
|
|
QPID_PROTON_VERSION = 0.33.0
|
|
QPID_PROTON_SITE = \
|
|
https://downloads.apache.org/qpid/proton/$(QPID_PROTON_VERSION)
|
|
QPID_PROTON_LICENSE = Apache-2.0
|
|
QPID_PROTON_LICENSE_FILES = LICENSE.txt
|
|
QPID_PROTON_CPE_ID_VENDOR = apache
|
|
QPID_PROTON_CPE_ID_PRODUCT = qpid_proton
|
|
QPID_PROTON_INSTALL_STAGING = YES
|
|
QPID_PROTON_DEPENDENCIES = \
|
|
host-python \
|
|
util-linux \
|
|
$(if $(BR2_PACKAGE_LIBUV),libuv) \
|
|
$(if $(BR2_PACKAGE_OPENSSL),openssl)
|
|
|
|
# python and ruby language bindings are enabled when host-swig tool is present
|
|
# in HOST_DIR.
|
|
# go language binding is enabled when host-go is present
|
|
# For now, disable all of them.
|
|
QPID_PROTON_CONF_OPTS = \
|
|
-DBUILD_GO=OFF \
|
|
-DBUILD_PYTHON=OFF \
|
|
-DBUILD_RUBY=OFF \
|
|
-DENABLE_FUZZ_TESTING=OFF \
|
|
-DENABLE_VALGRIND=OFF \
|
|
-DENABLE_WARNING_ERROR=OFF \
|
|
-DPYTHON_EXECUTABLE=$(HOST_DIR)/bin/python2
|
|
|
|
# epoll proactor unconditionally uses pthread and cpp (C++) bindings
|
|
# unconditionally use proactor
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
|
ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
|
|
QPID_PROTON_CONF_OPTS += -DBUILD_CPP=ON
|
|
else
|
|
QPID_PROTON_CONF_OPTS += -DBUILD_CPP=OFF
|
|
endif
|
|
else
|
|
QPID_PROTON_CONF_OPTS += \
|
|
-DBUILD_CPP=OFF \
|
|
-DPROACTOR=none
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_JSONCPP),y)
|
|
QPID_PROTON_DEPENDENCIES += jsoncpp
|
|
QPID_PROTON_CONF_OPTS += -DENABLE_JSONCPP=ON
|
|
else
|
|
QPID_PROTON_CONF_OPTS += -DENABLE_JSONCPP=OFF
|
|
endif
|
|
|
|
define QPID_PROTON_REMOVE_USELESS_FILES
|
|
rm -fr $(TARGET_DIR)/usr/share/proton/
|
|
endef
|
|
|
|
QPID_PROTON_POST_INSTALL_TARGET_HOOKS += QPID_PROTON_REMOVE_USELESS_FILES
|
|
|
|
$(eval $(cmake-package))
|