mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
The cpe:2.3:a:flatcc_project:flatcc:*:*:*:*:*:*:*:* valid for this package. See https://nvd.nist.gov/products/cpe/detail/AA7FC7B6-537C-4735-B615-689D3A91C994 Signed-off-by: Thomas Perale <thomas.perale@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
35 lines
1.0 KiB
Makefile
35 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# FLATCC
|
|
#
|
|
################################################################################
|
|
|
|
FLATCC_VERSION = 0.6.1
|
|
FLATCC_SITE = $(call github,dvidelabs,flatcc,v$(FLATCC_VERSION))
|
|
FLATCC_LICENSE = Apache-2.0
|
|
FLATCC_LICENSE_FILES = LICENSE
|
|
FLATCC_INSTALL_STAGING = YES
|
|
FLATCC_DEPENDENCIES = host-flatcc
|
|
FLATCC_CONF_OPTS = -DFLATCC_ALLOW_WERROR=OFF
|
|
HOST_FLATCC_CONF_OPTS = -DFLATCC_ALLOW_WERROR=OFF
|
|
|
|
FLATCC_CPE_ID_VALID = YES
|
|
|
|
# Disable build of tests and samples
|
|
FLATCC_CONF_OPTS += -DFLATCC_TEST=OFF
|
|
HOST_FLATCC_CONF_OPTS += -DFLATCC_TEST=OFF
|
|
|
|
# Enable install targets
|
|
FLATCC_CONF_OPTS += -DFLATCC_INSTALL=ON
|
|
HOST_FLATCC_CONF_OPTS += -DFLATCC_INSTALL=ON
|
|
|
|
# compiler is named flatcc or flatcc_d depending on BR2_ENABLE_DEBUG value
|
|
define FLATCC_TARGET_REMOVE_FLATCC_COMPILER
|
|
rm $(TARGET_DIR)/usr/bin/flatcc*
|
|
endef
|
|
|
|
FLATCC_POST_INSTALL_TARGET_HOOKS += FLATCC_TARGET_REMOVE_FLATCC_COMPILER
|
|
|
|
$(eval $(cmake-package))
|
|
$(eval $(host-cmake-package))
|