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/media/CMakeLists.txt

    r2673 r2685  
    2626# Specify media directory
    2727GET_FILENAME_COMPONENT(_search_path_1 ${CMAKE_SOURCE_DIR}/../media ABSOLUTE)
    28 FIND_PATH(ORXONOX_MEDIA_DIRECTORY resources.cfg
     28FIND_PATH(ORXONOX_MEDIA_DEV_PATH resources.cfg
    2929  PATHS
    3030    ${CMAKE_CURRENT_SOURCE_DIR}
    3131    ${_search_path_1}
    32     $ENV{ORXONOX_MEDIA_DIR}
    3332)
    34 IF(NOT ORXONOX_MEDIA_DIRECTORY)
     33IF(NOT ORXONOX_MEDIA_DEV_PATH)
    3534  MESSAGE(STATUS "Warning: Media directory not found. If you want to compile while downloading the media files, you must specify the directory by Hand BEFORE compiling! Default location is orxonox_root/media")
    3635  # Temporary override to the default location.
    37   SET(ORXONOX_MEDIA_DIRECTORY ${CMAKE_SOURCE_DIR}/media)
    38   SET(ORXONOX_MEDIA_DIRECTORY ${CMAKE_SOURCE_DIR}/media PARENT_SCOPE)
     36  SET(ORXONOX_MEDIA_DEV_PATH ${CMAKE_SOURCE_DIR}/media)
     37  SET(ORXONOX_MEDIA_DEV_PATH ${CMAKE_SOURCE_DIR}/media PARENT_SCOPE)
    3938ENDIF()
    4039
     
    5049
    5150INSTALL(
    52   DIRECTORY ${ORXONOX_MEDIA_DIRECTORY}/
     51  DIRECTORY ${ORXONOX_MEDIA_DEV_PATH}/
    5352  DESTINATION ${ORXONOX_MEDIA_INSTALL_PATH}
    5453  REGEX "\\.svn$|_svn$|backToPNG|${TCL_EXCLUDE_PATTERN}" EXCLUDE
Note: See TracChangeset for help on using the changeset viewer.