2018-06-21 00:26:11 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# cmocka
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-04-13 21:39:49 +02:00
|
|
|
CMOCKA_VERSION = 1.1.5
|
2018-06-21 00:26:11 +02:00
|
|
|
CMOCKA_SOURCE = cmocka-$(CMOCKA_VERSION).tar.xz
|
|
|
|
CMOCKA_SITE = https://cmocka.org/files/1.1
|
|
|
|
CMOCKA_LICENSE = Apache-2.0
|
|
|
|
CMOCKA_LICENSE_FILES = COPYING
|
|
|
|
CMOCKA_INSTALL_STAGING = YES
|
2019-04-13 21:39:49 +02:00
|
|
|
CMOCKA_CONF_OPTS = -DWITH_EXAMPLES=OFF
|
2018-06-21 00:26:11 +02:00
|
|
|
|
|
|
|
# cmocka only supports out of source builds
|
|
|
|
CMOCKA_SUPPORTS_IN_SOURCE_BUILD = NO
|
|
|
|
|
|
|
|
# cmocka always builds a shared library, but you can optionally build a static
|
|
|
|
# library as well
|
|
|
|
ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
|
|
|
CMOCKA_CONF_OPTS += -DWITH_STATIC_LIB=ON
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|