Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 12, 2009, 9:40:33 AM (16 years ago)
Author:
rgrieder
Message:
  • Default config values for OGRE plugins, the plugins folder and the media directory are now configured in OrxonoxConfig.h
  • You should not need a preconfigured orxonox.ini anymore after installation
  • Small bugfixes in compiler flags and visual studio project generation
  • probable bugfix in FlagUtilities.cmake
Location:
code/branches/buildsystem2/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem2/src/OrxonoxConfig.h.in

    r2639 r2643  
    2727 *   Original code: OgrePlatform.h, licensed under the LGPL. The code
    2828 *   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.
    2932 *
    3033 */
     
    139142 * Includes
    140143 *-------------------------------*/
    141 /* Set whether we must suffix "ceguilua/" for the CEGUILua.h include */
    142 #cmakedefine CEGUILUA_USE_INTERNAL_LIBRARY
    143 
    144144/* Define the english written operators like and, or, xor
    145145 * This is C++ standard, but the Microsoft compiler doesn't define them. */
     
    174174#endif
    175175
     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 */
     188namespace 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
    176210#endif /* _OrxonoxConfig_H__ */
  • code/branches/buildsystem2/src/orxonox/CMakeLists.txt

    r2640 r2643  
    8686    SET(MSVC_PLATFORM "Win32")
    8787  ENDIF()
     88  STRING(REGEX REPLACE "^Visual Studio ([0-9][0-9]?) .*$" "\\1"
     89         VISUAL_STUDIO_VERSION_SIMPLE "${CMAKE_GENERATOR}")
    8890  CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/orxonox.vcproj.user" "${CMAKE_CURRENT_BINARY_DIR}/orxonox.vcproj.user")
    8991ENDIF(MSVC)
  • code/branches/buildsystem2/src/orxonox/Settings.cc

    r2509 r2643  
    6363    void Settings::setConfigValues()
    6464    {
    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);
    6666    }
    6767
  • code/branches/buildsystem2/src/orxonox/gamestates/GSGraphics.cc

    r2639 r2643  
    100100        SetConfigValue(ogreConfigFile_,  "ogre.cfg")
    101101            .description("Location of the Ogre config file");
    102         SetConfigValue(ogrePluginsFolder_, ".")
     102        SetConfigValue(ogrePluginsFolder_, ORXONOX_OGRE_PLUGINS_FOLDER)
    103103            .description("Folder where the Ogre plugins are located.");
    104         SetConfigValue(ogrePlugins_, "RenderSystem_GL, Plugin_ParticleFX")
     104        SetConfigValue(ogrePlugins_, ORXONOX_OGRE_PLUGINS)
    105105            .description("Comma separated list of all plugins to load.");
    106106        SetConfigValue(ogreLogFile_,     "ogre.log")
  • code/branches/buildsystem2/src/orxonox/orxonox.vcproj.user

    r2621 r2643  
    22<VisualStudioUserFile
    33        ProjectType="Visual C++"
    4         Version="8.00"
     4        Version="${VISUAL_STUDIO_VERSION_SIMPLE}.00"
    55        ShowAllFiles="false"
    66        >
Note: See TracChangeset for help on using the changeset viewer.