Advertisement
Guest User

CEGUI.lua

a guest
Apr 9th, 2011
531
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.12 KB | None | 0 0
  1. --
  2. -- CEGUI premake configuration script
  3. --
  4.  
  5. --- These control whether certain build configurations will be available in the
  6. --- generated solutions.  You can set to false (or comment) any build configs
  7. --- you will not be using.
  8. WANT_RELEASE_WITH_SYMBOLS_BUILD = true
  9. WANT_STATIC_BUILD = true
  10.  
  11. --- This controls which version of the C/C++ runtime and which version of the
  12. --- dependencies are used when linking the static build configurations.
  13. ---
  14. --- false: use the static c/c++ runtime option and the 'static' dependencies.
  15. --- true: use the DLL c/c++ runtime option and the 'dynamic' dependencies.
  16. STATIC_BUILD_WITH_DYNAMIC_DEPS = false
  17.  
  18. -- comment this to disable debug suffixes for dynamic module dlls
  19. -- if you want to use another suffix, just change the string :)
  20. -- all the debug cegui libraries are built with this suffix
  21. DEBUG_DLL_SUFFIX = "_d"
  22.  
  23. -- Iterator debugging setting
  24. --
  25. -- This controls the level of debugging and other checks done for STL iterators
  26. -- in the debug build for the MSVC++ compilers.
  27. -- Setting this to false can improve performance of debug builds at the expense
  28. -- of safety / debug checks on iterators.
  29. FULLY_CHECKED_DEBUG_ITERATORS = true
  30.  
  31. -- SDK / dependency paths
  32. -- { base, include_suffix, library_suffix }
  33. -- base can be absolute or relative to the root cegui_mk2 dir
  34. IRRLICHT_PATHS = { "irrlicht-1.7.1", "include", "lib/Win32-visualstudio" }
  35. OGRE_PATHS = { "C:/OgreSDK", "include", "lib" }
  36. OIS_PATHS = { "C:/OgreSDK", "include/OIS", "lib" }
  37. DIRECT3D10_PATHS = { "C:/DXSDK" , "include" , "lib/x86" }
  38. -- Set this to where your RapidXML package headers are to be found
  39. RAPIDXML_PATHS = { "rapidxml-1.13", "", "" }
  40.  
  41. -- Python / boost::python (required to build python extension modules)
  42. PYTHON_PATHS = { "C:/Python26", "include", "libs" }
  43. BOOST_PYTHON_PATHS = { "C:/Program Files/boost/boost_1_44", "", "lib" }
  44.  
  45.  
  46. -- Extra SDK / dependency paths.
  47. --
  48. -- Here you can set up any additional paths you require for the various projects
  49. -- in CEGUI.  This is useful if, for example, you are using some SDK that has
  50. -- additional external dependencies of it's own (for example, boost used with
  51. -- Ogre).  All you need to do is add an entry in the following table to indicate
  52. -- the base directory, include sub-directory, library-subdirectory, and optionally
  53. -- the name of the CEGUI project to add the paths to (if no project is given, the
  54. -- paths are added to /all/ projects).
  55. --
  56. -- NB: Each entry should be surrounded by curly braces, with each entry
  57. -- separated with a comma and appearing within the existing braces.
  58. --
  59. -- For example, to add the OgreSDK boost paths to build for the Ogre renderer
  60. -- module and sample helper with Ogre support, you might have:
  61. --
  62. -- CEGUI_EXTRA_PATHS = {
  63. --     { "../OgreSDK/boost_1_42", "", "lib", "CEGUIOgreRenderer" },
  64. --     { "../OgreSDK/boost_1_42", "", "lib", "CEGUISampleHelper" }
  65. -- }
  66. --
  67. CEGUI_EXTRA_PATHS = {
  68. }
  69.  
  70. --- Irrlicht SDK Version
  71. --- 14 is means 1.4 or 1.5.x and 16 means 1.6 or 1.7.x (and above?)
  72. CEGUI_IRR_SDK_VERSION = 16
  73.  
  74. --- OIS API version to be used in the Ogre samples base app.
  75. --- true: use older numKeyboards / numMice
  76. --- false: use getNumberOfDevices
  77. CEGUI_OLD_OIS_API = false
  78.  
  79. --- Lua version
  80. --- 51 is 5.1 (and above?) From 0.7.0 onwards, lua 5.0 is no longer supported.
  81. CEGUI_LUA_VER = 51
  82.  
  83. --- Freetype library
  84. --- CEGUI uses the freetype library for some of it's font support.  To disable
  85. --- the use of freetype, set this to false.
  86. CEGUI_USE_FREETYPE = true
  87.  
  88. --- PCRE library
  89. --- CEGUI uses the pcre library for it's regular expression based string
  90. --- validation as used in the Editbox (and derived classes, such as Spinner).
  91. --- To disable the use of PCRE (and therefore the validation factilities), set
  92. --- this to false.  (Attempts to set validation string will throw).
  93. CEGUI_USE_PCRE_REGEX = true
  94.  
  95. --- CEGUI::DefaultLogger
  96. --- To disable compilation and use of the CEGUI::DefaultLogger, set this to
  97. --- false.
  98. ---
  99. --- Note: If you disable this, you MUST provide an alternative CEGUI::Logger
  100. --- based class and instantiate it before creating the main CEGUI::System object.
  101. CEGUI_USE_DEFAULT_LOGGER = true
  102.  
  103. --- BiDirectional text support.
  104. --- To enable support for bi-directional text in CEGUI, set CEGUI_BIDI_SUPPORT
  105. --- to true.
  106. --- With bidirectional support enabled, CEGUI_USE_MINIBIDI then controls whether
  107. --- that support is provided viaan embedded copy of minibidi (true) or an
  108. --- external copy of the fribidi library (false).
  109. CEGUI_BIDI_SUPPORT = false;
  110. CEGUI_USE_MINIBIDI = true;
  111.  
  112. --- MinizipResourceProvider
  113. --- To enable compilation and inclusion into CEGUIBase of the MinizipResourceProvider
  114. --- set the following to true.
  115. ---
  116. --- The MinizipResourceProvider enables resources to be loaded from a zip compressed
  117. --- archive.
  118. MINIZIP_RESOURCE_PROVIDER = true
  119.  
  120. -------------
  121. -- Renderers
  122. -- this controls which renderer modules are built
  123. OPENGL_RENDERER = true
  124. DIRECT3D9_RENDERER = true
  125. DIRECT3D10_RENDERER = true
  126. DIRECT3D11_RENDERER = true
  127. IRRLICHT_RENDERER = true
  128. OGRE_RENDERER = true
  129. NULL_RENDERER = true
  130.  
  131. ----------------
  132. -- Image Codecs
  133. -- this controls which image codecs are built
  134. TGA_IMAGE_CODEC = true
  135. SILLY_IMAGE_CODEC = true
  136. DEVIL_IMAGE_CODEC = true
  137. FREEIMAGE_IMAGE_CODEC = true
  138. CORONA_IMAGE_CODEC = true
  139. STB_IMAGE_CODEC = true
  140.  
  141. -- this setting selects the default image codec module
  142. -- can be either "tga", "silly", "devil", "freeimage", "stb" or "corona"
  143. -- SILLY was written for CEGUI
  144. DEFAULT_IMAGE_CODEC = "silly"
  145.  
  146. ---------------
  147. -- Window Renderers
  148. -- controls window renderers built
  149. FALAGARD_WR = true
  150.  
  151. -- default WR
  152. -- available: falagard
  153. DEFAULT_WINDOW_RENDERER = "falagard"
  154.  
  155.  
  156.  
  157.  
  158. ---------------
  159. -- XML parsers
  160. -- this controls which xml parser modules are built
  161. EXPAT_PARSER = true
  162. XERCES_PARSER = false
  163. TINYXML_PARSER = false
  164. RAPIDXML_PARSER = false
  165. LIBXML_PARSER = false
  166.  
  167. -- this selects the default XML parser module
  168. -- can be either "expat", "xerces", "tinyxml", "rapidxml" or "libxml"
  169. DEFAULT_XML_PARSER = "expat"
  170.  
  171.  
  172. -------
  173. -- Lua
  174. -- this controls whether CEGUILua is enabled
  175. LUA_SCRIPT_MODULE = true
  176.  
  177. -- disable this for a smaller and faster, but less safe Lua module
  178. -- only affects Release builds. Debug and ReleaseWithSymbols always
  179. -- enable this
  180. LUA_SCRIPT_MODULE_SAFE = false
  181.  
  182. -- enable this to build the bundled tolua++ as a static library
  183. TOLUA_STATIC = false
  184.  
  185.  
  186. -------
  187. -- Python
  188. -- this controls whether building the Python extension modules is enabled
  189. PYTHON_EXTENSION_MODULE = false
  190.  
  191.  
  192. -----------
  193. -- Samples
  194. -- remember you have to edit CEGUISamplesConfig.h as well this just controls
  195. -- dependencies etc. if the renderer is disabled this has no effect
  196. SAMPLES_GL = true
  197. SAMPLES_DX9 = true
  198. SAMPLES_DX10 = true
  199. SAMPLES_IRRLICHT = true
  200. SAMPLES_OGRE = true
  201.  
  202. -- this setting controls if the samples should be included in the same
  203. -- solution as the core libraries. If this setting is disabled you can
  204. -- still generate a seperate solution for the samples
  205. --
  206. -- due to a missing feature in premake enabling this will cause the
  207. -- output files to be placed in cegui_mk2/bin and not cegui_mk2/Samples/bin
  208. --
  209. SAMPLES_INCLUDED = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement