xref: /OK3568_Linux_fs/buildroot/package/flatcc/flatcc.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# FLATCC
4#
5################################################################################
6
7FLATCC_VERSION = 0.6.0
8FLATCC_SITE = $(call github,dvidelabs,flatcc,v$(FLATCC_VERSION))
9FLATCC_LICENSE = Apache-2.0
10FLATCC_LICENSE_FILES = LICENSE
11FLATCC_INSTALL_STAGING = YES
12FLATCC_DEPENDENCIES = host-flatcc
13FLATCC_CONF_OPTS = -DFLATCC_ALLOW_WERROR=OFF
14HOST_FLATCC_CONF_OPTS = -DFLATCC_ALLOW_WERROR=OFF
15
16# Disable build of tests and samples
17FLATCC_CONF_OPTS += -DFLATCC_TEST=OFF
18HOST_FLATCC_CONF_OPTS += -DFLATCC_TEST=OFF
19
20# Enable install targets
21FLATCC_CONF_OPTS += -DFLATCC_INSTALL=ON
22HOST_FLATCC_CONF_OPTS += -DFLATCC_INSTALL=ON
23
24# compiler is named flatcc or flatcc_d depending on BR2_ENABLE_DEBUG value
25define FLATCC_TARGET_REMOVE_FLATCC_COMPILER
26	rm $(TARGET_DIR)/usr/bin/flatcc*
27endef
28
29FLATCC_POST_INSTALL_TARGET_HOOKS += FLATCC_TARGET_REMOVE_FLATCC_COMPILER
30
31$(eval $(cmake-package))
32$(eval $(host-cmake-package))
33