2020-03-23 19:03:30 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# cegui
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-06-12 10:57:40 +02:00
|
|
|
CEGUI_VERSION = 00b4e1fe174da53b7ed726ab5970ba51bd5b5ee0
|
|
|
|
CEGUI_SITE = $(call github,cegui,cegui,$(CEGUI_VERSION))
|
2020-03-23 19:03:30 +01:00
|
|
|
CEGUI_LICENSE = MIT
|
|
|
|
CEGUI_LICENSE_FILES = COPYING
|
|
|
|
CEGUI_INSTALL_STAGING = YES
|
2021-02-18 18:59:05 +01:00
|
|
|
CEGUI_CONF_OPTS = \
|
2020-07-27 17:19:46 +02:00
|
|
|
-DCEGUI_HAS_MINIZIP_RESOURCE_PROVIDER=OFF \
|
2021-06-12 10:57:40 +02:00
|
|
|
-DCEGUI_BUILD_RENDERER_IRRLICHT=OFF \
|
|
|
|
-DCEGUI_BUILD_RENDERER_OGRE=OFF \
|
|
|
|
-DCEGUI_BUILD_XMLPARSER_XERCES=OFF \
|
|
|
|
-DCEGUI_USE_FRIBIDI=OFF \
|
|
|
|
-DCEGUI_SAMPLES_ENABLED=OFF \
|
2021-07-20 20:10:48 +02:00
|
|
|
-DCEGUI_BUILD_APPLICATION_TEMPLATES=OFF \
|
|
|
|
-DCEGUI_BUILD_PYTHON_MODULES_SWIG=OFF
|
2020-03-23 19:03:30 +01:00
|
|
|
CEGUI_DEPENDENCIES = glm \
|
2020-07-27 17:19:46 +02:00
|
|
|
$(if $(BR2_PACKAGE_LIBGLFW),libglfw) \
|
|
|
|
$(if $(BR2_PACKAGE_HAS_LIBGL),libgl) \
|
|
|
|
$(if $(BR2_PACKAGE_HAS_LIBGLES),libgles) \
|
|
|
|
$(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
2020-03-23 19:03:30 +01:00
|
|
|
|
2020-04-28 21:58:43 +02:00
|
|
|
# libepoxy support cannot be enabled together with libglew
|
2020-06-23 21:19:07 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBGLEW)$(BR2_PACKAGE_LIBGLU),yy)
|
|
|
|
CEGUI_DEPENDENCIES += libglew libglu
|
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_USE_GLEW=ON -DCEGUI_USE_EPOXY=OFF \
|
|
|
|
-DCEGUI_BUILD_RENDERER_OPENGL=ON \
|
|
|
|
-DCEGUI_BUILD_RENDERER_OPENGL3=ON
|
|
|
|
else ifeq ($(BR2_PACKAGE_LIBEPOXY),y)
|
2020-03-23 19:03:30 +01:00
|
|
|
CEGUI_DEPENDENCIES += libepoxy
|
2020-06-23 21:19:07 +02:00
|
|
|
# old OpenGL renderer module is only supported using GLEW
|
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_USE_EPOXY=ON -DCEGUI_USE_GLEW=OFF \
|
|
|
|
-DCEGUI_BUILD_RENDERER_OPENGL=OFF \
|
|
|
|
-DCEGUI_BUILD_RENDERER_OPENGL3=ON
|
2020-03-23 19:03:30 +01:00
|
|
|
else
|
2020-06-23 21:19:07 +02:00
|
|
|
CEGUI_CONF_OPTS += -DCEGUI_USE_EPOXY=OFF -DCEGUI_USE_GLEW=OFF \
|
|
|
|
-DCEGUI_BUILD_RENDERER_OPENGL=OFF \
|
|
|
|
-DCEGUI_BUILD_RENDERER_OPENGL3=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_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_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))
|