2018-05-31 19:04:29 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# FLATCC
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-08-28 14:14:21 +02:00
|
|
|
FLATCC_VERSION = v0.5.2
|
2018-05-31 19:04:29 +02:00
|
|
|
FLATCC_SITE = $(call github,dvidelabs,flatcc,$(FLATCC_VERSION))
|
|
|
|
FLATCC_LICENSE = Apache-2.0
|
|
|
|
FLATCC_LICENSE_FILES = LICENSE
|
|
|
|
FLATCC_INSTALL_STAGING = YES
|
|
|
|
FLATCC_DEPENDENCIES = host-flatcc
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2018-11-18 17:58:48 +01:00
|
|
|
# compiler is named flatcc or flatcc_d depending on BR2_ENABLE_DEBUG value
|
2018-05-31 19:04:29 +02:00
|
|
|
define FLATCC_TARGET_REMOVE_FLATCC_COMPILER
|
2018-11-18 17:58:48 +01:00
|
|
|
rm $(TARGET_DIR)/usr/bin/flatcc*
|
2018-05-31 19:04:29 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
FLATCC_POST_INSTALL_TARGET_HOOKS += FLATCC_TARGET_REMOVE_FLATCC_COMPILER
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|
|
|
|
$(eval $(host-cmake-package))
|