Changeset 2643
- Timestamp:
- Feb 12, 2009, 9:40:33 AM (16 years ago)
- Location:
- code/branches/buildsystem2
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem2/cmake/BuildConfigMSVC.cmake
r2639 r2643 116 116 # CMake default flags: -MANIFEST -STACK:10000000 -machine:I386 117 117 # and INCREMENTAL and DEBUG for debug versions 118 ADD_LINKER_FLAGS("-OPT:REF -OPT:ICF -OPT:NOWIN98" Release MinSizeRel CACHE) 118 ADD_LINKER_FLAGS("-OPT:REF -OPT:ICF" Release MinSizeRel CACHE) 119 ADD_LINKER_FLAGS("-OPT:NOWIN98" MSVC80 CACHE) -
code/branches/buildsystem2/cmake/FlagUtilities.cmake
r2626 r2643 50 50 IF(NOT DEFINED _INTERNAL_${_varname} OR "${_INTERNAL_${_varname}}" STREQUAL "${${_varname}}") 51 51 SET(${_varname} "${_value}" CACHE ${_type} "${_docstring}" FORCE) 52 ENDIF()53 SET(_INTERNAL_${_varname} "${_value}" CACHE INTERNAL "Do not edit in any case!")52 SET(_INTERNAL_${_varname} "${_value}" CACHE INTERNAL "Do not edit in any case!") 53 ENDIF() 54 54 ENDMACRO(SET_CACHE) 55 55 -
code/branches/buildsystem2/src/OrxonoxConfig.h.in
r2639 r2643 27 27 * Original code: OgrePlatform.h, licensed under the LGPL. The code 28 28 * has changed almost completely though. 29 * 30 * Caution: Do not configure this file CMake configuration (Debug, Release, etc.) 31 * dependent! XCode and Visual Studio have the same file for all. 29 32 * 30 33 */ … … 139 142 * Includes 140 143 *-------------------------------*/ 141 /* Set whether we must suffix "ceguilua/" for the CEGUILua.h include */142 #cmakedefine CEGUILUA_USE_INTERNAL_LIBRARY143 144 144 /* Define the english written operators like and, or, xor 145 145 * This is C++ standard, but the Microsoft compiler doesn't define them. */ … … 174 174 #endif 175 175 176 177 /*--------------------------------- 178 * Various Settings 179 *-------------------------------*/ 180 /* Set whether we must suffix "ceguilua/" for the CEGUILua.h include */ 181 #cmakedefine CEGUILUA_USE_INTERNAL_LIBRARY 182 183 /* Defined if a precompiled depdency package was used. We then copy all libraries 184 too when installing. */ 185 #cmakedefine USE_DEPENDENCY_PACKAGE 186 187 /* Handle default ConfigValues */ 188 namespace orxonox 189 { 190 const char* const ORXONOX_MEDIA_PATH("@ORXONOX_MEDIA_DIRECTORY@"); 191 192 #ifdef NDEBUG 193 const char* const ORXONOX_OGRE_PLUGINS("@OGRE_PLUGINS_RELEASE@"); 194 # ifdef USE_DEPENDENCY_PACKAGE 195 const char* const ORXONOX_OGRE_PLUGINS_FOLDER("."); 196 # elif 197 const char* const ORXONOX_OGRE_PLUGINS_FOLDER("@OGRE_PLUGINS_FOLDER_RELEASE@"); 198 # endif 199 #else 200 const char* const ORXONOX_OGRE_PLUGINS("@OGRE_PLUGINS_DEBUG@"); 201 # ifdef USE_DEPENDENCY_PACKAGE 202 const char* const ORXONOX_OGRE_PLUGINS_FOLDER("."); 203 # elif 204 const char* const ORXONOX_OGRE_PLUGINS_FOLDER("@OGRE_PLUGINS_FOLDER_DEBUG@"); 205 # endif 206 #endif 207 } 208 209 176 210 #endif /* _OrxonoxConfig_H__ */ -
code/branches/buildsystem2/src/orxonox/CMakeLists.txt
r2640 r2643 86 86 SET(MSVC_PLATFORM "Win32") 87 87 ENDIF() 88 STRING(REGEX REPLACE "^Visual Studio ([0-9][0-9]?) .*$" "\\1" 89 VISUAL_STUDIO_VERSION_SIMPLE "${CMAKE_GENERATOR}") 88 90 CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/orxonox.vcproj.user" "${CMAKE_CURRENT_BINARY_DIR}/orxonox.vcproj.user") 89 91 ENDIF(MSVC) -
code/branches/buildsystem2/src/orxonox/Settings.cc
r2509 r2643 63 63 void Settings::setConfigValues() 64 64 { 65 SetConfigValue(dataPath_, "../../../media/").description("Relative path to the game data.").callback(this, &Settings::dataPathChanged);65 SetConfigValue(dataPath_, ORXONOX_MEDIA_PATH).description("Relative path to the game data.").callback(this, &Settings::dataPathChanged); 66 66 } 67 67 -
code/branches/buildsystem2/src/orxonox/gamestates/GSGraphics.cc
r2639 r2643 100 100 SetConfigValue(ogreConfigFile_, "ogre.cfg") 101 101 .description("Location of the Ogre config file"); 102 SetConfigValue(ogrePluginsFolder_, ".")102 SetConfigValue(ogrePluginsFolder_, ORXONOX_OGRE_PLUGINS_FOLDER) 103 103 .description("Folder where the Ogre plugins are located."); 104 SetConfigValue(ogrePlugins_, "RenderSystem_GL, Plugin_ParticleFX")104 SetConfigValue(ogrePlugins_, ORXONOX_OGRE_PLUGINS) 105 105 .description("Comma separated list of all plugins to load."); 106 106 SetConfigValue(ogreLogFile_, "ogre.log") -
code/branches/buildsystem2/src/orxonox/orxonox.vcproj.user
r2621 r2643 2 2 <VisualStudioUserFile 3 3 ProjectType="Visual C++" 4 Version=" 8.00"4 Version="${VISUAL_STUDIO_VERSION_SIMPLE}.00" 5 5 ShowAllFiles="false" 6 6 >
Note: See TracChangeset
for help on using the changeset viewer.