flare-engine.mk 922 B

1234567891011121314151617181920212223242526
  1. ################################################################################
  2. #
  3. # flare-engine
  4. #
  5. ################################################################################
  6. FLARE_ENGINE_VERSION = 1.14
  7. FLARE_ENGINE_SITE = $(call github,flareteam,flare-engine,v$(FLARE_ENGINE_VERSION))
  8. FLARE_ENGINE_LICENSE = GPL-3.0+
  9. FLARE_ENGINE_LICENSE_FILES = COPYING
  10. FLARE_ENGINE_DEPENDENCIES += sdl2 sdl2_image sdl2_mixer sdl2_ttf tremor
  11. # Don't use /usr/games and /usr/share/games
  12. FLARE_ENGINE_CONF_OPTS += -DBINDIR=bin -DDATADIR=share/flare
  13. # CMAKE_BUILD_TYPE is only used to set optimization and debug flags, all of
  14. # which we want Buildroot to steer explicitly. Explicitly set a fake build type
  15. # to get this control.
  16. FLARE_ENGINE_CONF_OPTS += -DCMAKE_BUILD_TYPE=Buildroot
  17. ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
  18. FLARE_ENGINE_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -O0"
  19. endif
  20. $(eval $(cmake-package))