e6ea02deea
Disable support for minizip since cegui is not compatible with the existing buildroot's version due to lack of necessary header. It will be restored when upstream will switch to the new version. Fixes: - http://autobuild.buildroot.net/results/65fa719e8b2466409a12eb103a8938e1488efc0c - http://autobuild.buildroot.net/results/ef37a0cc16daacb7206d736c86b511c7d90eefe0 and many more. Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
106 lines
2.8 KiB
Makefile
106 lines
2.8 KiB
Makefile
################################################################################
|
|
#
|
|
# cegui
|
|
#
|
|
################################################################################
|
|
|
|
CEGUI_VERSION = 0-8-7
|
|
CEGUI_SITE = $(call github,cegui,cegui,v$(CEGUI_VERSION))
|
|
CEGUI_LICENSE = MIT
|
|
CEGUI_LICENSE_FILES = COPYING
|
|
CEGUI_INSTALL_STAGING = YES
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_XMLPARSER_XERCES=OFF \
|
|
-DCEGUI_HAS_MINIZIP_RESOURCE_PROVIDER=OFF
|
|
CEGUI_DEPENDENCIES = glm \
|
|
$(if $(BR2_PACKAGE_LIBGLFW),libglfw) \
|
|
$(if $(BR2_PACKAGE_HAS_LIBGL),libgl) \
|
|
$(if $(BR2_PACKAGE_HAS_LIBGLES),libgles) \
|
|
$(if $(BR2_PACKAGE_LIBGLEW),libglew) \
|
|
$(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEPOXY),y)
|
|
CEGUI_DEPENDENCIES += libepoxy
|
|
CEGUI_CONF_OPTS += -DCEGUI_USE_EPOXY=ON
|
|
else
|
|
CEGUI_CONF_OPTS += -DCEGUI_USE_EPOXY=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_OGRE),y)
|
|
CEGUI_DEPENDENCIES += ogre
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_RENDERER_OGRE=ON
|
|
else
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_RENDERER_OGRE=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_EXPAT),y)
|
|
CEGUI_DEPENDENCIES += expat
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_XMLPARSER_EXPAT=ON
|
|
else
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_XMLPARSER_EXPAT=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_IRRLICHT),y)
|
|
CEGUI_DEPENDENCIES += irrlicht
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_RENDERER_IRRLICHT=ON
|
|
else
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_RENDERER_IRRLICHT=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_SDL2)$(BR2_PACKAGE_SDL2_IMAGE),yy)
|
|
CEGUI_DEPENDENCIES += sdl2 sdl2_image
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_IMAGECODEC_SDL2=ON
|
|
else
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_IMAGECODEC_SDL2=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_PCRE),y)
|
|
CEGUI_DEPENDENCIES += pcre
|
|
CEGUI_CONF_OPTS += -DCEGUI_HAS_PCRE_REGEX=ON
|
|
else
|
|
CEGUI_CONF_OPTS += -DCEGUI_HAS_PCRE_REGEX=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_FREETYPE),y)
|
|
CEGUI_DEPENDENCIES += freetype
|
|
CEGUI_CONF_OPTS += -DCEGUI_HAS_FREETYPE=ON
|
|
else
|
|
CEGUI_CONF_OPTS += -DCEGUI_HAS_FREETYPE=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBXML2),y)
|
|
CEGUI_DEPENDENCIES += libxml2
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_XMLPARSER_LIBXML2=ON
|
|
else
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_XMLPARSER_LIBXML2=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_RAPIDXML),y)
|
|
CEGUI_DEPENDENCIES += rapidxml
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_XMLPARSER_RAPIDXML=ON
|
|
else
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_XMLPARSER_RAPIDXML=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_TINYXML),y)
|
|
CEGUI_DEPENDENCIES += tinyxml
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_XMLPARSER_TINYXML=ON
|
|
else
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_XMLPARSER_TINYXML=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_TINYXML2),y)
|
|
CEGUI_DEPENDENCIES += tinyxml2
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_XMLPARSER_TINYXML2=ON
|
|
else
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_XMLPARSER_TINYXML2=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBFREEIMAGE),y)
|
|
CEGUI_DEPENDENCIES += libfreeimage
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_IMAGECODEC_FREEIMAGE=ON
|
|
else
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_IMAGECODEC_FREEIMAGE=OFF
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|