Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 20, 2009, 5:32:04 PM (15 years ago)
Author:
rgrieder
Message:

Fixed install target:

  • log and config file go a to separate folder each
  • The SignalHandler crash log is now "orxonox_crash.log" to avoid opening the file twice which might result in problems
  • moved tcl scripts to media/tcl8.#/ as a temporary solution. I've also created a ticket to fix this.
  • UPDATE YOUR MEDIA REPOSITORY
  • orxonox.log pre-main gets written to either %TEMP% (windows) or /tmp (Unix) and when the path was set, the content is copied.
  • removed Settings class and moved media path to Core
  • media, log and config path are now all in Core where only the media path can be configured via ini file or command line
  • Core::isDevBuild() tells whether we are running in the build or the installation directory (determined by the presence of "orxonox_dev_build.kepp_me" in the binary dir)
  • renamed Settings::getDataPath to Core::getMediaPath
File:
1 edited

Legend:

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

    r2673 r2685  
    164164
    165165#cmakedefine HAVE_STDDEF_H
     166/* Quite large, do not include unless necessary
    166167#ifdef HAVE_STDDEF_H
    167168#  include <stddef.h>
    168169#endif
     170*/
    169171
    170172/* Visual Leak Detector looks for memory leaks */
     
    185187#cmakedefine USE_DEPENDENCY_PACKAGE
    186188
     189/* Using MSVC or XCode IDE */
     190#cmakedefine CMAKE_CONFIGURATION_TYPES
     191
     192/* Macros used in the next section */
     193#define MACRO_CONCATENATE(str1, str2) str1##str2
     194#define MACRO_QUOTEME_AUX(x) #x
     195#define MACRO_QUOTEME(x) MACRO_QUOTEME_AUX(x)
     196
    187197/* Handle default ConfigValues */
    188198namespace orxonox
    189199{
    190 #ifdef ORXONOX_PLATFORM_WINDOWS
    191     const char* const ORXONOX_MEDIA_PATH("../media");
    192 #elif defined(ORXONOX_PLATFORM_LINUX)
    193     const char* const ORXONOX_MEDIA_PATH("../../share/orxonox");
    194 #else
    195     /* TODO: Apple? */
    196     const char* const ORXONOX_MEDIA_PATH("../../share/orxonox");
     200    const char* const ORXONOX_MEDIA_INSTALL_PATH ("@ORXONOX_MEDIA_INSTALL_PATH@/");
     201    const char* const ORXONOX_CONFIG_INSTALL_PATH("@ORXONOX_CONFIG_INSTALL_PATH@/");
     202    const char* const ORXONOX_LOG_INSTALL_PATH   ("@ORXONOX_LOG_INSTALL_PATH@/");
     203
     204    const char* const ORXONOX_MEDIA_DEV_PATH     ("@ORXONOX_MEDIA_DEV_PATH@/");
     205#ifdef CMAKE_CONFIGURATION_TYPES
     206    const char* const ORXONOX_CONFIG_DEV_PATH    ("@ORXONOX_CONFIG_DEV_PATH@/" MACRO_QUOTEME(CMAKE_BUILD_TYPE) "/");
     207    const char* const ORXONOX_LOG_DEV_PATH       ("@ORXONOX_LOG_DEV_PATH@/"    MACRO_QUOTEME(CMAKE_BUILD_TYPE) "/");
     208#else
     209    const char* const ORXONOX_CONFIG_DEV_PATH    ("@ORXONOX_CONFIG_DEV_PATH@/");
     210    const char* const ORXONOX_LOG_DEV_PATH       ("@ORXONOX_LOG_DEV_PATH@/");
    197211#endif
    198212   
     213    /* OGRE Plugins */
    199214#ifdef NDEBUG
    200215    const char* const ORXONOX_OGRE_PLUGINS("@OGRE_PLUGINS_RELEASE@");
     
    214229}
    215230
    216 
    217231#endif /* _OrxonoxConfig_H__ */
Note: See TracChangeset for help on using the changeset viewer.