Crazy Eddie's GUI System  0.8.7
Build Options for Crazy Eddie's GUI System

Table of Contents

Author
Paul D Turner

Overview

The following describes the available options when building CEGUI and what they do. Please note that until you are more familiar with CEGUI and the build, the general advice is to leave things alone – that is, build or install the dependencies required for the choices you made regarding what functionality you intend to use and then let cmake configure things based on those.

General Options

CEGUI_HAS_FREETYPE

Specifies whether to include Freetype2 font support

CEGUI_HAS_PCRE_REGEX

Specifies whether to include PCRE regexp matching for editbox string validation

CEGUI_HAS_MINIZIP_RESOURCE_PROVIDER

Specifies whether to build the minizip based resource provider

CEGUI_HAS_DEFAULT_LOGGER

Specifies whether to build the DefaultLogger implementation

CEGUI_USE_FRIBIDI

Specifies whether bi-directional text will be supported via the fribidi library.

Note
You may not enable both CEGUI_USE_FRIBIDI and CEGUI_USE_MINIBIDI. Please choose only one of these options.

CEGUI_USE_MINIBIDI

Specifies whether bi-directional text will be supported via the embedded minibidi.

Note
You may not enable both CEGUI_USE_FRIBIDI and CEGUI_USE_MINIBIDI. Please choose only one of these options.

CEGUI_USE_GLEW

Specifies whether to use GLEW as an OpenGL loading library.

Note
You may not enable both "CEGUI_USE_GLEW" and "CEGUI_USE_EPOXY". Please choose only one of these options.

CEGUI_USE_EPOXY

Specifies whether to use Epoxy as an OpenGL loading library.

Note
You may not enable both "CEGUI_USE_GLEW" and "CEGUI_USE_EPOXY". Please choose only one of these options.

CEGUI_GLFW_VER

Specifies which major version of GLFW to use for the samples (2 or 3). The default is to look for both, giving priority to version 2.

Note
For desktop OpenGL rendering, either version 2 or 3 is required. For OpenGL ES 2.0 renderering, version 3 is required. To use OpenGL ES 2.0 with EGL, GLFW 3 must be used, and GLFW 3 must be built configured with "-DGLFW_USE_EGL=ON -DGLFW_CLIENT_LIBRARY=glesv2".

CEGUI_STRING_CLASS

Which string class should CEGUI use:

  • 1 - utf8 and utf32 aware inbuilt string,
  • 2 - std::string without custom allocation,
  • 3 - std::basic_string allocated according to allocator config" )

CEGUI_CUSTOM_ALLOCATORS

If checked, CEGUI can use custom allocation. (for experienced developers only!)

CEGUI_CUSTOM_ALLOCATORS_DEBUG

If checked, CEGUI allocations will pass debug info to allocators. (only used if CEGUI_CUSTOM_ALLOCATORS is checked)

CEGUI_CUSTOM_ALLOCATORS_INCLUDE

Which include file contains memory allocators and allocation configuration. (only used if CEGUI_CUSTOM_ALLOCATORS is checked) We have bundled 2 allocators, mostly for demonstration purposes.

CEGUI_BUILD_STATIC_CONFIGURATION

Specifies whether the static configs will be built. (NB: Shared configs are always built)

CEGUI_BUILD_STATIC_FACTORY_MODULE

For static CEGUI builds, specifies whether to include the getWindoFactoryModule method. When false, the developer must provide a custom implementation of the method.

CEGUI_BUILD_SHARED_LIBS_WITH_STATIC_DEPENDENCIES

For WIN32 and APPLE where the dependency pack is used, prefer the static dependency libs over the shared/dynamic ones.

Note
On Windows you also need to be mindful of which C/C++ runtime setting has been used to compile the various components - they must all match or you will get crashes, heap corruption and/or other issues.

CEGUI_BUILD_SUFFIX

String holding a suffix appended to the name of output binaries (under CMake build, only used for debug, defaults to "_d" on Windows and Apple, defaults to no suffix elsewhere).

CEGUI_BUILD_TESTS

Specifies whether to build the regression and performance tests.

Renderer Modules

CEGUI_BUILD_RENDERER_OPENGL

Specifies whether to include OpenGLRenderer (supports older fixed function pipeline desktop OpenGL 1.2) in the OpenGL renderer module

CEGUI_BUILD_RENDERER_OPENGL3

Specifies whether to include OpenGL3Renderer (supports desktop OpenGL 3.2 (core profile) and OpenGL ES 2.0) in the OpenGL renderer module

CEGUI_BUILD_RENDERER_OGRE

Specifies whether to build the Ogre renderer module

CEGUI_BUILD_RENDERER_IRRLICHT

Specifies whether to build the Irrlicht renderer module

CEGUI_BUILD_RENDERER_DIRECTFB

Specifies whether to build the DirectFB renderer module

CEGUI_BUILD_RENDERER_DIRECT3D9

Specifies whether to build the Direct3D 9 renderer module

CEGUI_BUILD_RENDERER_DIRECT3D10

Specifies whether to build the Direct3D 10 renderer module

CEGUI_BUILD_RENDERER_DIRECT3D11

Specifies whether to build the Direct3D 11 renderer module

CEGUI_BUILD_RENDERER_NULL

Specifies whether to build the null renderer module

CEGUI_BUILD_RENDERER_OPENGLES

Specifies whether to build the OpenGLES renderer module

XMLParser Modules

CEGUI_BUILD_XMLPARSER_EXPAT

Specifies whether to build the Expat based XMLParser module

CEGUI_BUILD_XMLPARSER_XERCES

Specifies whether to build the Xerces-C++ based XMLParser module

CEGUI_BUILD_XMLPARSER_LIBXML2

Specifies whether to build the libxml2 based XMLParser module

CEGUI_BUILD_XMLPARSER_RAPIDXML

Specifies whether to build the RapidXML based XMLParser module

CEGUI_BUILD_XMLPARSER_TINYXML

Specifies whether to build the TinyXML based XMLParser module

CEGUI_OPTION_DEFAULT_XMLPARSER

Specifies the XMLParser module to use as the default, usually one of:

  • "ExpatParser"
  • "XercesParser"
  • "LibXMLParser"
  • "RapidXMLParser"
  • "TinyXMLParser"

CEGUI_STATIC_XMLPARSER_MODULE

Specifies xml parser library to link to samples in static builds.

ImageCodec Modules

CEGUI_BUILD_IMAGECODEC_SILLY

Specifies whether to build the SILLY based ImageCodec module

CEGUI_BUILD_IMAGECODEC_DEVIL

Specifies whether to build the DevIL based ImageCodec module

CEGUI_BUILD_IMAGECODEC_FREEIMAGE

Specifies whether to build the FreeImage based ImageCodec module

CEGUI_BUILD_IMAGECODEC_CORONA

Specifies whether to build the Corona based ImageCodec module

CEGUI_BUILD_IMAGECODEC_STB

Specifies whether to build the STB based ImageCodec module

CEGUI_BUILD_IMAGECODEC_TGA

Specifies whether to build the based TGA only ImageCodec module

CEGUI_BUILD_IMAGECODEC_PVR

Specifies whether to build the PVR only ImageCodec module

CEGUI_OPTION_DEFAULT_IMAGECODEC

Specifies the ImageCodec module to use as the default, usually one of:

  • "SILLYImageCodec"
  • "DevILImageCodec"
  • "FreeImageImageCodec"
  • "STBImageCodec"
  • "CoronaImageCodec"
  • "TGAImageCodec"

CEGUI_STATIC_IMAGECODEC_MODULE

Specifies image codec library to link to samples in static builds.

Script Modules

CEGUI_BUILD_LUA_MODULE

Specifies whether to build the Lua based script module

CEGUI_BUILD_LUA_GENERATOR

Specifies whether to build the custom tolua binding generator 'toluappcegui'

CEGUI_OPTION_SAFE_LUA_MODULE

Specifies whether to enable extra validation in the Lua script module in non-debug builds

CEGUI_BUILD_PYTHON_MODULES

Specifies whether to build the Python extension module(s)

Sample Framework and Samples

CEGUI_SAMPLES_ENABLED

CEGUI_SAMPLES_USE_GTK2

Specifies whether the sample applications will make use of the GTK2 UI for renderer selection.

GNU/Linux Specific

CEGUI_INSTALL_WITH_RPATH

Specifies whether to install with RPATH set to the install location (TRUE) or with no RPATH set (FALSE).

Apple Specific

CEGUI_APPLE_DYLIB_INSTALL_PATH

Specifies the install rpath for dylibs and frameworks. Default: "@executable_path/../Frameworks"

CEGUI_APPLE_SYMLINK_DEPENDENCIES_TO_SAMPLE_APPS

Specifies how to reference the dylibs, frameworks and datafiles in the sample app bundles:

  • TRUE: specifies that the files will be symlinked (saves space, but apps are not truly stand-alone)
  • FALSE: specifies that actual copies of the files will be used

CEGUI_APPLE_DYLIB_SET_VERSION_INFO

Specifies whether to set VERSION and SOVERSION for dylib libraries on OS X

Microsoft MSVC++ Specific

CEGUI_MSVC_STATIC_RUNTIME

Specifies whether to the static runtime (/MT and /MTd) or the DLL runtime (/MD and /MDd).

Note
This will also affect which set of dependency libraries are linked with.