flatcc.mk 1001 B

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