kumquat-buildroot/package/paho-mqtt-c/paho-mqtt-c.mk
Danomi Manchego 5686d69eef package/paho-mqtt-c: disable tests and cpack docs
paho-mqtt-c by default enables the building of test materials and
install of CPack documentation:

PAHO_ENABLE_TESTING - "Build tests and run"
PAHO_ENABLE_CPACK - "Enable CPack"

Let's disable these to save a couple megabytes and time.  This is
in keeping with the generic settings in pkg-cmake.mk.

Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2020-04-25 22:18:55 +02:00

25 lines
703 B
Makefile

################################################################################
#
# paho-mqtt-c
#
################################################################################
PAHO_MQTT_C_VERSION = 1.3.2
PAHO_MQTT_C_SITE = $(call github,eclipse,paho.mqtt.c,v$(PAHO_MQTT_C_VERSION))
PAHO_MQTT_C_LICENSE = EPL-2.0 or BSD-3-Clause
PAHO_MQTT_C_LICENSE_FILES = epl-v20 edl-v10 LICENSE
PAHO_MQTT_C_INSTALL_STAGING = YES
PAHO_MQTT_C_CONF_OPTS = \
-DPAHO_ENABLE_TESTING=FALSE \
-DPAHO_ENABLE_CPACK=FALSE
ifeq ($(BR2_PACKAGE_OPENSSL),y)
PAHO_MQTT_C_DEPENDENCIES += openssl
PAHO_MQTT_C_CONF_OPTS += -DPAHO_WITH_SSL=TRUE
else
PAHO_MQTT_C_CONF_OPTS += -DPAHO_WITH_SSL=FALSE
endif
$(eval $(cmake-package))