2020-03-23 19:03:30 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# 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
|
2020-04-07 17:15:16 +02:00
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_XMLPARSER_XERCES=OFF \
|
2020-04-27 22:09:09 +02:00
|
|
|
-DCEGUI_HAS_MINIZIP_RESOURCE_PROVIDER=OFF \
|
|
|
|
-DCEGUI_BUILD_RENDERER_OGRE=OFF
|
2020-03-23 19:03:30 +01:00
|
|
|
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)
|
|
|
|
|
2020-04-28 21:58:43 +02:00
|
|
|
# libepoxy support cannot be enabled together with libglew
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBEPOXY):$(BR2_PACKAGE_LIBGLEW),y:)
|
2020-03-23 19:03:30 +01:00
|
|
|
CEGUI_DEPENDENCIES += libepoxy
|
2020-04-04 18:51:00 +02:00
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_USE_EPOXY=ON
|
2020-03-23 19:03:30 +01:00
|
|
|
else
|
2020-04-04 18:51:00 +02:00
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_USE_EPOXY=OFF
|
2020-03-23 19:03:30 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_EXPAT),y)
|
|
|
|
CEGUI_DEPENDENCIES += expat
|
2020-04-04 18:51:00 +02:00
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_XMLPARSER_EXPAT=ON
|
2020-03-23 19:03:30 +01:00
|
|
|
else
|
2020-04-04 18:51:00 +02:00
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_XMLPARSER_EXPAT=OFF
|
2020-03-23 19:03:30 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_IRRLICHT),y)
|
|
|
|
CEGUI_DEPENDENCIES += irrlicht
|
2020-04-04 18:51:00 +02:00
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_RENDERER_IRRLICHT=ON
|
2020-03-23 19:03:30 +01:00
|
|
|
else
|
2020-04-04 18:51:00 +02:00
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_RENDERER_IRRLICHT=OFF
|
2020-03-23 19:03:30 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SDL2)$(BR2_PACKAGE_SDL2_IMAGE),yy)
|
|
|
|
CEGUI_DEPENDENCIES += sdl2 sdl2_image
|
2020-04-04 18:51:00 +02:00
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_IMAGECODEC_SDL2=ON
|
2020-03-23 19:03:30 +01:00
|
|
|
else
|
2020-04-04 18:51:00 +02:00
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_IMAGECODEC_SDL2=OFF
|
2020-03-23 19:03:30 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_PCRE),y)
|
|
|
|
CEGUI_DEPENDENCIES += pcre
|
2020-04-04 18:51:00 +02:00
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_HAS_PCRE_REGEX=ON
|
2020-03-23 19:03:30 +01:00
|
|
|
else
|
2020-04-04 18:51:00 +02:00
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_HAS_PCRE_REGEX=OFF
|
2020-03-23 19:03:30 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FREETYPE),y)
|
|
|
|
CEGUI_DEPENDENCIES += freetype
|
2020-04-04 18:51:00 +02:00
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_HAS_FREETYPE=ON
|
2020-03-23 19:03:30 +01:00
|
|
|
else
|
2020-04-04 18:51:00 +02:00
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_HAS_FREETYPE=OFF
|
2020-03-23 19:03:30 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBXML2),y)
|
|
|
|
CEGUI_DEPENDENCIES += libxml2
|
2020-04-04 18:51:00 +02:00
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_XMLPARSER_LIBXML2=ON
|
2020-03-23 19:03:30 +01:00
|
|
|
else
|
2020-04-04 18:51:00 +02:00
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_XMLPARSER_LIBXML2=OFF
|
2020-03-23 19:03:30 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_RAPIDXML),y)
|
|
|
|
CEGUI_DEPENDENCIES += rapidxml
|
2020-04-04 18:51:00 +02:00
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_XMLPARSER_RAPIDXML=ON
|
2020-03-23 19:03:30 +01:00
|
|
|
else
|
2020-04-04 18:51:00 +02:00
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_XMLPARSER_RAPIDXML=OFF
|
2020-03-23 19:03:30 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_TINYXML),y)
|
|
|
|
CEGUI_DEPENDENCIES += tinyxml
|
2020-04-04 18:51:00 +02:00
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_XMLPARSER_TINYXML=ON
|
2020-03-23 19:03:30 +01:00
|
|
|
else
|
2020-04-04 18:51:00 +02:00
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_XMLPARSER_TINYXML=OFF
|
2020-03-23 19:03:30 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_TINYXML2),y)
|
|
|
|
CEGUI_DEPENDENCIES += tinyxml2
|
2020-04-04 18:51:00 +02:00
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_XMLPARSER_TINYXML2=ON
|
2020-03-23 19:03:30 +01:00
|
|
|
else
|
2020-04-04 18:51:00 +02:00
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_XMLPARSER_TINYXML2=OFF
|
2020-03-23 19:03:30 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBFREEIMAGE),y)
|
|
|
|
CEGUI_DEPENDENCIES += libfreeimage
|
2020-04-04 18:51:00 +02:00
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_IMAGECODEC_FREEIMAGE=ON
|
2020-03-23 19:03:30 +01:00
|
|
|
else
|
2020-04-04 18:51:00 +02:00
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_BUILD_IMAGECODEC_FREEIMAGE=OFF
|
2020-03-23 19:03:30 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|