mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
24
package/cmocka/cmocka.mk
Normal file
24
package/cmocka/cmocka.mk
Normal file
@@ -0,0 +1,24 @@
|
||||
################################################################################
|
||||
#
|
||||
# cmocka
|
||||
#
|
||||
################################################################################
|
||||
|
||||
CMOCKA_VERSION = 1.1.5
|
||||
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
|
||||
CMOCKA_CONF_OPTS = -DWITH_EXAMPLES=OFF
|
||||
|
||||
# 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))
|
||||
Reference in New Issue
Block a user