Changeset 9670 for code/branches/libs
- Timestamp:
- Sep 8, 2013, 5:34:34 PM (11 years ago)
- Location:
- code/branches/libs
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/libs/cmake/tools/FindCEGUI.cmake
r9163 r9670 31 31 INCLUDE(HandleLibraryTypes) 32 32 33 # Find CEGUI headers34 FIND_ PATH(CEGUI_INCLUDE_DIR CEGUI.h33 # Determine CEGUI's version 34 FIND_FILE(CEGUI_VERSION_FILE CEGUIVersion.h Version.h 35 35 PATHS $ENV{CEGUIDIR} 36 36 PATH_SUFFIXES include include/CEGUI 37 37 ) 38 DETERMINE_VERSION(CEGUI ${CEGUI_VERSION_FILE}) 38 39 39 # Inspect CEGUIVersion.h for the version number 40 DETERMINE_VERSION(CEGUI ${CEGUI_INCLUDE_DIR}/CEGUIVersion.h) 40 # Find CEGUI headers 41 COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.8" _version_0_8_compare TRUE) 42 # Version 0.8 introduced a new directory and file naming convention 43 IF(_version_0_8_compare GREATER -1) 44 # 0.8 and newer 45 FIND_PATH(CEGUI_INCLUDE_DIR CEGUI/CEGUI.h 46 PATHS $ENV{CEGUIDIR} 47 PATH_SUFFIXES include 48 ) 49 ELSE() 50 # 0.8 and older 51 FIND_PATH(CEGUI_INCLUDE_DIR CEGUI.h 52 PATHS $ENV{CEGUIDIR} 53 PATH_SUFFIXES include include/CEGUI 54 ) 55 ENDIF() 41 56 42 57 # Find CEGUI library 43 58 FIND_LIBRARY(CEGUI_LIBRARY_OPTIMIZED 44 NAMES CEGUIBase CEGUI 59 NAMES CEGUIBase CEGUI CEGUIBase-0 45 60 PATHS $ENV{CEGUIDIR} 46 61 PATH_SUFFIXES lib bin … … 55 70 56 71 # Find CEGUILua headers 57 FIND_PATH(CEGUILUA_INCLUDE_DIR CEGUILua.h 72 FIND_PATH(CEGUILUA_INCLUDE_DIR CEGUILua.h Functor.h 58 73 PATHS 59 74 $ENV{CEGUIDIR} 60 75 $ENV{CEGUILUADIR} 61 76 ${CEGUI_INCLUDE_DIR}/ScriptingModules/LuaScriptModule 77 ${CEGUI_INCLUDE_DIR}/CEGUI/ScriptModules/Lua 62 78 PATH_SUFFIXES include include/CEGUI 63 79 ) 64 80 # Find CEGUILua libraries 65 81 FIND_LIBRARY(CEGUILUA_LIBRARY_OPTIMIZED 66 NAMES CEGUILua CEGUILuaScriptModule 82 NAMES CEGUILua CEGUILuaScriptModule CEGUILuaScriptModule-0 67 83 PATHS $ENV{CEGUIDIR} $ENV{CEGUILUADIR} 68 84 PATH_SUFFIXES lib bin … … 82 98 # For newer CEGUI versions >= 0.7 83 99 ${CEGUILUA_INCLUDE_DIR}/support/tolua++ 100 ${DEP_INCLUDE_DIR}/tolua++/include 84 101 # For Mac OS X, tolua++ is a separate framework in the dependency package 85 102 ${DEP_FRAMEWORK_DIR} … … 99 116 100 117 # Newer versions of CEGUI have the renderer for OGRE shipped with them 101 COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.7" _version_ compare TRUE)102 IF(_version_ compare GREATER -1)118 COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.7" _version_0_7_compare TRUE) 119 IF(_version_0_7_compare GREATER -1) 103 120 # Find CEGUI OGRE Renderer headers 104 FIND_PATH(CEGUI_OGRE_RENDERER_INCLUDE_DIR CEGUIOgreRenderer.h 121 FIND_PATH(CEGUI_OGRE_RENDERER_INCLUDE_DIR CEGUIOgreRenderer.h Renderer.h 105 122 PATHS 106 123 $ENV{CEGUIDIR} … … 111 128 # Find CEGUI OGRE Renderer libraries 112 129 FIND_LIBRARY(CEGUI_OGRE_RENDERER_LIBRARY_OPTIMIZED 113 NAMES CEGUIOgreRenderer 130 NAMES CEGUIOgreRenderer CEGUIOgreRenderer-0 114 131 PATHS $ENV{CEGUIDIR} $ENV{CEGUIOGRERENDERERDIR} 115 132 PATH_SUFFIXES lib bin -
code/branches/libs/src/OrxonoxConfig.h.in
r8858 r9670 246 246 #endif 247 247 248 // CEGUI changed its file naming convention in version 0.8 thus we cannot even include CEGUI's Version.h file before knowing its version 249 #include <@CEGUI_VERSION_FILE@> 250 #define CEGUI_VERSION ((CEGUI_VERSION_MAJOR << 16) | (CEGUI_VERSION_MINOR << 8) | CEGUI_VERSION_PATCH) 251 248 252 #endif /* _OrxonoxConfig_H__ */ -
code/branches/libs/src/libraries/core/CorePrereqs.h
r9667 r9670 38 38 #include "OrxonoxConfig.h" 39 39 #include <boost/version.hpp> 40 #include <CEGUIVersion.h>41 40 42 41 //----------------------------------------------------------------------- -
code/branches/libs/src/libraries/core/GUIManager.cc
r9667 r9670 36 36 #include <OgreRenderWindow.h> 37 37 38 #include <CEGUIDefaultLogger.h> 39 #include <CEGUIExceptions.h> 40 #include <CEGUIFontManager.h> 41 #include <CEGUIInputEvent.h> 42 #include <CEGUIMouseCursor.h> 43 #include <CEGUIResourceProvider.h> 44 #include <CEGUISystem.h> 45 #include <CEGUIWindow.h> 46 #include <CEGUIWindowManager.h> 47 #include <CEGUIXMLAttributes.h> 48 #include <elements/CEGUIListbox.h> 49 #include <elements/CEGUIListboxItem.h> 38 #if CEGUI_VERSION >= 0x000800 39 # include <CEGUI/DefaultLogger.h> 40 # include <CEGUI/Exceptions.h> 41 # include <CEGUI/FontManager.h> 42 # include <CEGUI/InputEvent.h> 43 # include <CEGUI/MouseCursor.h> 44 # include <CEGUI/ResourceProvider.h> 45 # include <CEGUI/System.h> 46 # include <CEGUI/Window.h> 47 # include <CEGUI/WindowManager.h> 48 # include <CEGUI/XMLAttributes.h> 49 # include <CEGUI/widgets/Listbox.h> 50 # include <CEGUI/widgets/ListboxItem.h> 51 #else 52 # include <CEGUIDefaultLogger.h> 53 # include <CEGUIExceptions.h> 54 # include <CEGUIFontManager.h> 55 # include <CEGUIInputEvent.h> 56 # include <CEGUIMouseCursor.h> 57 # include <CEGUIResourceProvider.h> 58 # include <CEGUISystem.h> 59 # include <CEGUIWindow.h> 60 # include <CEGUIWindowManager.h> 61 # include <CEGUIXMLAttributes.h> 62 # include <elements/CEGUIListbox.h> 63 # include <elements/CEGUIListboxItem.h> 64 #endif 50 65 51 66 #ifdef ORXONOX_OLD_CEGUI 52 # include <CEGUILua.h>53 # include <ogreceguirenderer/OgreCEGUIRenderer.h>67 # include <CEGUILua.h> 68 # include <ogreceguirenderer/OgreCEGUIRenderer.h> 54 69 extern "C" { 55 # include <lauxlib.h>70 # include <lauxlib.h> 56 71 } 57 72 #else 58 # include <ScriptingModules/LuaScriptModule/CEGUILua.h> 59 # include <RendererModules/Ogre/CEGUIOgreImageCodec.h> 60 # include <RendererModules/Ogre/CEGUIOgreRenderer.h> 61 # include <RendererModules/Ogre/CEGUIOgreResourceProvider.h> 62 # include <OgreCamera.h> 63 # include <OgreRenderQueueListener.h> 64 # include <OgreRenderSystem.h> 65 # include <OgreRoot.h> 66 # include <OgreSceneManager.h> 73 # if CEGUI_VERSION >= 0x000800 74 # include <CEGUI/ScriptModules/Lua/ScriptModule.h> 75 # include <CEGUI/RendererModules/Ogre/ImageCodec.h> 76 # include <CEGUI/RendererModules/Ogre/Renderer.h> 77 # include <CEGUI/RendererModules/Ogre/ResourceProvider.h> 78 # else 79 # include <ScriptingModules/LuaScriptModule/CEGUILua.h> 80 # include <RendererModules/Ogre/CEGUIOgreImageCodec.h> 81 # include <RendererModules/Ogre/CEGUIOgreRenderer.h> 82 # include <RendererModules/Ogre/CEGUIOgreResourceProvider.h> 83 # endif 84 # include <OgreCamera.h> 85 # include <OgreRenderQueueListener.h> 86 # include <OgreRenderSystem.h> 87 # include <OgreRoot.h> 88 # include <OgreSceneManager.h> 67 89 #endif 68 90 -
code/branches/libs/src/libraries/core/GUIManager.h
r9667 r9670 40 40 #include <map> 41 41 #include <string> 42 #include <CEGUIForwardRefs.h> 43 #include <CEGUIVersion.h> 42 43 #if CEGUI_VERSION >= 0x000800 44 # include <CEGUI/ForwardRefs.h> 45 # include <CEGUI/Version.h> 46 #else 47 # include <CEGUIForwardRefs.h> 48 # include <CEGUIVersion.h> 49 #endif 50 44 51 #include <boost/shared_ptr.hpp> 45 52 -
code/branches/libs/src/libraries/util/Exception.cc
r8858 r9670 36 36 37 37 #include <cstddef> 38 #include <CEGUIExceptions.h> 38 39 #if CEGUI_VERSION >= 0x000800 40 # include <CEGUI/Exceptions.h> 41 #else 42 # include <CEGUIExceptions.h> 43 #endif 44 39 45 #include "Output.h" 40 46
Note: See TracChangeset
for help on using the changeset viewer.