[Orxonox-commit 918] r5641 - in code/branches/resource2: . bin cmake doc/api media src src/core src/orxonox
rgrieder at orxonox.net
rgrieder at orxonox.net
Thu Aug 13 21:12:24 CEST 2009
Author: rgrieder
Date: 2009-08-13 21:12:24 +0200 (Thu, 13 Aug 2009)
New Revision: 5641
Added:
code/branches/resource2/media/CMakeLists.txt
code/branches/resource2/media/MediaInstallScript.cmake
Removed:
code/branches/resource2/cmake/Media.cmake
Modified:
code/branches/resource2/CMakeLists.txt
code/branches/resource2/bin/CMakeLists.txt
code/branches/resource2/bin/client1.bat.in
code/branches/resource2/bin/client2.bat.in
code/branches/resource2/bin/dedicated.bat.in
code/branches/resource2/bin/run.bat.in
code/branches/resource2/bin/server.bat.in
code/branches/resource2/bin/standalone.bat.in
code/branches/resource2/cmake/BuildConfig.cmake
code/branches/resource2/cmake/GenerateToluaBindings.cmake
code/branches/resource2/cmake/PackageConfig.cmake
code/branches/resource2/cmake/PackageConfigMSVC.cmake
code/branches/resource2/cmake/PackageConfigMinGW.cmake
code/branches/resource2/cmake/TargetUtilities.cmake
code/branches/resource2/doc/api/CMakeLists.txt
code/branches/resource2/src/SpecialConfig.h.in
code/branches/resource2/src/core/Core.cc
code/branches/resource2/src/core/Core.h
code/branches/resource2/src/core/GraphicsManager.cc
code/branches/resource2/src/core/GraphicsManager.h
code/branches/resource2/src/core/TclBind.cc
code/branches/resource2/src/orxonox/orxonox.vcproj.user.in
Log:
Prepared build system for an external media directory.
This revision only runs in console mode! (tcl files working again)
Modified: code/branches/resource2/CMakeLists.txt
===================================================================
--- code/branches/resource2/CMakeLists.txt 2009-08-12 23:01:47 UTC (rev 5640)
+++ code/branches/resource2/CMakeLists.txt 2009-08-13 19:12:24 UTC (rev 5641)
@@ -46,7 +46,7 @@
INCLUDE(BuildConfig)
# Configure media directory location and installation
-INCLUDE(Media)
+ADD_SUBDIRECTORY(media)
# Create the actual project
ADD_SUBDIRECTORY(src)
Modified: code/branches/resource2/bin/CMakeLists.txt
===================================================================
--- code/branches/resource2/bin/CMakeLists.txt 2009-08-12 23:01:47 UTC (rev 5640)
+++ code/branches/resource2/bin/CMakeLists.txt 2009-08-13 19:12:24 UTC (rev 5641)
@@ -44,7 +44,7 @@
SET(_subdirs ${CMAKE_CONFIGURATION_TYPES})
SEt(_default_subdir) # No default subdir
ENDIF()
-STRING(REPLACE "/" "\\" ORXONOX_RUNTIME_LIBRARY_DIRECTORY_WINDOWS ${ORXONOX_RUNTIME_LIBRARY_DIRECTORY})
+STRING(REPLACE "/" "\\" RUNTIME_LIBRARY_DIRECTORY_WINDOWS ${RUNTIME_LIBRARY_DIRECTORY})
FOREACH(_subdir ${_subdirs})
GET_FILENAME_COMPONENT(CURRENT_RUNTIME_DIR ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${_subdir} ABSOLUTE)
@@ -68,5 +68,5 @@
# Make a symlink to be able to run from the root directory when installing copyable on Unix
IF(UNIX AND INSTALL_COPYABLE)
- INSTAll(CODE "EXECUTE_PROCESS(COMMAND ln -sf ${ORXONOX_RUNTIME_INSTALL_PATH}/${ORXONOX_EXECUTABLE_NAME} ${CMAKE_INSTALL_PREFIX}/orxonox)")
+ INSTAll(CODE "EXECUTE_PROCESS(COMMAND ln -sf ${RUNTIME_INSTALL_DIRECTORY}/${ORXONOX_EXECUTABLE_NAME} ${CMAKE_INSTALL_PREFIX}/orxonox)")
ENDIF()
Modified: code/branches/resource2/bin/client1.bat.in
===================================================================
--- code/branches/resource2/bin/client1.bat.in 2009-08-12 23:01:47 UTC (rev 5640)
+++ code/branches/resource2/bin/client1.bat.in 2009-08-13 19:12:24 UTC (rev 5641)
@@ -1,4 +1,4 @@
title @PROJECT_NAME@
-path @ORXONOX_RUNTIME_LIBRARY_DIRECTORY_WINDOWS@;%path%
+path @RUNTIME_LIBRARY_DIRECTORY_WINDOWS@;%path%
@CURRENT_RUNTIME_DIR_WINDOWS@\@ORXONOX_EXECUTABLE_NAME@ --client --writingPathSuffix client1
pause
Modified: code/branches/resource2/bin/client2.bat.in
===================================================================
--- code/branches/resource2/bin/client2.bat.in 2009-08-12 23:01:47 UTC (rev 5640)
+++ code/branches/resource2/bin/client2.bat.in 2009-08-13 19:12:24 UTC (rev 5641)
@@ -1,4 +1,4 @@
title @PROJECT_NAME@
-path @ORXONOX_RUNTIME_LIBRARY_DIRECTORY_WINDOWS@;%path%
+path @RUNTIME_LIBRARY_DIRECTORY_WINDOWS@;%path%
@CURRENT_RUNTIME_DIR_WINDOWS@\@ORXONOX_EXECUTABLE_NAME@ --client --writingPathSuffix client2
pause
Modified: code/branches/resource2/bin/dedicated.bat.in
===================================================================
--- code/branches/resource2/bin/dedicated.bat.in 2009-08-12 23:01:47 UTC (rev 5640)
+++ code/branches/resource2/bin/dedicated.bat.in 2009-08-13 19:12:24 UTC (rev 5641)
@@ -1,4 +1,4 @@
title @PROJECT_NAME@
-path @ORXONOX_RUNTIME_LIBRARY_DIRECTORY_WINDOWS@;%path%
+path @RUNTIME_LIBRARY_DIRECTORY_WINDOWS@;%path%
@CURRENT_RUNTIME_DIR_WINDOWS@\@ORXONOX_EXECUTABLE_NAME@ --dedicated --writingPathSuffix dedicated
pause
Modified: code/branches/resource2/bin/run.bat.in
===================================================================
--- code/branches/resource2/bin/run.bat.in 2009-08-12 23:01:47 UTC (rev 5640)
+++ code/branches/resource2/bin/run.bat.in 2009-08-13 19:12:24 UTC (rev 5641)
@@ -1,4 +1,4 @@
title @PROJECT_NAME@
-path @ORXONOX_RUNTIME_LIBRARY_DIRECTORY_WINDOWS@;%path%
+path @RUNTIME_LIBRARY_DIRECTORY_WINDOWS@;%path%
@CURRENT_RUNTIME_DIR_WINDOWS@\@ORXONOX_EXECUTABLE_NAME@
pause
Modified: code/branches/resource2/bin/server.bat.in
===================================================================
--- code/branches/resource2/bin/server.bat.in 2009-08-12 23:01:47 UTC (rev 5640)
+++ code/branches/resource2/bin/server.bat.in 2009-08-13 19:12:24 UTC (rev 5641)
@@ -1,4 +1,4 @@
title @PROJECT_NAME@
-path @ORXONOX_RUNTIME_LIBRARY_DIRECTORY_WINDOWS@;%path%
+path @RUNTIME_LIBRARY_DIRECTORY_WINDOWS@;%path%
@CURRENT_RUNTIME_DIR_WINDOWS@\@ORXONOX_EXECUTABLE_NAME@ --server --writingPathSuffix server
pause
Modified: code/branches/resource2/bin/standalone.bat.in
===================================================================
--- code/branches/resource2/bin/standalone.bat.in 2009-08-12 23:01:47 UTC (rev 5640)
+++ code/branches/resource2/bin/standalone.bat.in 2009-08-13 19:12:24 UTC (rev 5641)
@@ -1,4 +1,4 @@
title @PROJECT_NAME@
-path @ORXONOX_RUNTIME_LIBRARY_DIRECTORY_WINDOWS@;%path%
+path @RUNTIME_LIBRARY_DIRECTORY_WINDOWS@;%path%
@CURRENT_RUNTIME_DIR_WINDOWS@\@ORXONOX_EXECUTABLE_NAME@ --standalone --writingPathSuffix standalone
pause
Modified: code/branches/resource2/cmake/BuildConfig.cmake
===================================================================
--- code/branches/resource2/cmake/BuildConfig.cmake 2009-08-12 23:01:47 UTC (rev 5640)
+++ code/branches/resource2/cmake/BuildConfig.cmake 2009-08-13 19:12:24 UTC (rev 5641)
@@ -39,8 +39,8 @@
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${DEFAULT_RUNTIME_PATH})
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${DEFAULT_LIBRARY_PATH})
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${DEFAULT_ARCHIVE_PATH})
-# Do not set doc and media, rather check in the two subdirectories
-# whether they concur with the DEFAULT_..._PATH
+SET(CMAKE_DOC_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${DEFAULT_DOC_PATH})
+# Media directories are only inputs
SET(CMAKE_CONFIG_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${DEFAULT_CONFIG_PATH})
SET(CMAKE_LOG_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${DEFAULT_LOG_PATH})
@@ -49,8 +49,8 @@
# Sets where to find the external libraries like OgreMain.dll at runtime
# On Unix you should not have to change this at all.
-IF(NOT ORXONOX_RUNTIME_LIBRARY_DIRECTORY)
- SET(ORXONOX_RUNTIME_LIBRARY_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
+IF(NOT RUNTIME_LIBRARY_DIRECTORY)
+ SET(RUNTIME_LIBRARY_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
ENDIF()
# Set Debug build to default when not having multi-config generator like msvc
@@ -125,37 +125,28 @@
OPTION(INSTALL_COPYABLE "${_info_text}" TRUE)
ENDIF()
-IF(INSTALL_COPYABLE)
- # Note the relative paths. They will be resolved at runtime.
- # For CMake operations CMAKE_INSTALL_PREFIX is always appended.
- SET(ORXONOX_RUNTIME_INSTALL_PATH ${DEFAULT_RUNTIME_PATH})
- SET(ORXONOX_LIBRARY_INSTALL_PATH ${DEFAULT_LIBRARY_PATH})
- SET(ORXONOX_ARCHIVE_INSTALL_PATH ${DEFAULT_ARCHIVE_PATH})
- SET(ORXONOX_DOC_INSTALL_PATH ${DEFAULT_DOC_PATH})
- SET(ORXONOX_MEDIA_INSTALL_PATH ${DEFAULT_MEDIA_PATH})
- SET(ORXONOX_CONFIG_INSTALL_PATH ${DEFAULT_CONFIG_PATH})
- SET(ORXONOX_LOG_INSTALL_PATH ${DEFAULT_LOG_PATH})
+# Default installation paths
+SET(RUNTIME_INSTALL_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${DEFAULT_RUNTIME_PATH})
+SET(LIBRARY_INSTALL_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${DEFAULT_LIBRARY_PATH})
+SET(ARCHIVE_INSTALL_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${DEFAULT_ARCHIVE_PATH})
+SET(DOC_INSTALL_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${DEFAULT_DOC_PATH})
+SET(MEDIA_INSTALL_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${DEFAULT_MEDIA_PATH})
+SET(CONFIG_INSTALL_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${DEFAULT_CONFIG_PATH})
+SET(LOG_INSTALL_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${DEFAULT_LOG_PATH})
-ELSEIF(UNIX) # Apple too?
- # Using absolute paths
- SET(ORXONOX_RUNTIME_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/bin)
- SET(ORXONOX_LIBRARY_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/lib/orxonox)
- SET(ORXONOX_ARCHIVE_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/lib/orxonox/static)
- SET(ORXONOX_DOC_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/share/doc/orxonox)
- SET(ORXONOX_MEDIA_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/share/orxonox)
- # These two paths are user and therefore runtime dependent --> only set relatively
- SET(ORXONOX_CONFIG_INSTALL_PATH ${DEFAULT_CONFIG_PATH})
- SET(ORXONOX_LOG_INSTALL_PATH ${DEFAULT_LOG_PATH})
+IF(NOT INSTALL_COPYABLE)
+ IF(UNIX) # Apple too?
+ # Using absolute paths
+ SET(RUNTIME_INSTALL_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin)
+ SET(LIBRARY_INSTALL_DIRECTORY ${CMAKE_INSTALL_PREFIX}/lib/orxonox)
+ SET(ARCHIVE_INSTALL_DIRECTORY ${CMAKE_INSTALL_PREFIX}/lib/orxonox/static)
+ SET(DOC_INSTALL_DIRECTORY ${CMAKE_INSTALL_PREFIX}/share/doc/orxonox)
+ SET(MEDIA_INSTALL_DIRECTORY ${CMAKE_INSTALL_PREFIX}/share/orxonox)
+ ENDIF()
-ELSEIF(WIN32)
- SET(ORXONOX_RUNTIME_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/${DEFAULT_RUNTIME_PATH})
- SET(ORXONOX_LIBRARY_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/${DEFAULT_LIBRARY_PATH})
- SET(ORXONOX_ARCHIVE_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/${DEFAULT_ARCHIVE_PATH})
- SET(ORXONOX_DOC_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/${DEFAULT_DOC_PATH})
- SET(ORXONOX_MEDIA_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/${DEFAULT_MEDIA_PATH})
# Leave empty because it is user and therefore runtime dependent
- SET(ORXONOX_CONFIG_INSTALL_PATH ${DEFAULT_CONFIG_PATH})
- SET(ORXONOX_LOG_INSTALL_PATH ${DEFAULT_LOG_PATH})
+ SET(CONFIG_INSTALL_DIRECTORY)
+ SET(LOG_INSTALL_DIRECTORY)
ENDIF()
@@ -169,7 +160,11 @@
SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
# the RPATH to be used when installing
-SET(CMAKE_INSTALL_RPATH ${ORXONOX_LIBRARY_INSTALL_PATH})
+IF(INSTALL_COPYABLE)
+ SET(CMAKE_INSTALL_RPATH ${DEFAULT_LIBRARY_PATH})
+ELSE()
+ SET(CMAKE_INSTALL_RPATH ${LIBRARY_INSTALL_DIRECTORY})
+ENDIF()
# add the automatically determined parts of the RPATH
# which point to directories outside the build tree to the install RPATH
Modified: code/branches/resource2/cmake/GenerateToluaBindings.cmake
===================================================================
--- code/branches/resource2/cmake/GenerateToluaBindings.cmake 2009-08-12 23:01:47 UTC (rev 5640)
+++ code/branches/resource2/cmake/GenerateToluaBindings.cmake 2009-08-13 19:12:24 UTC (rev 5641)
@@ -29,7 +29,7 @@
# Global Variables: (need to be set before)
# TOLUA_PARSER_SOURCE - Lua file with the parser source code
# TOLUA_PARSER_DEPENDENCIES - All the dependent lua files
- # ORXONOX_RUNTIME_LIBRARY_DIRECTORY - Working directory
+ # RUNTIME_LIBRARY_DIRECTORY - Working directory
#
FUNCTION(GENERATE_TOLUA_BINDINGS _tolua_package _target_source_files)
@@ -73,7 +73,7 @@
${_tolua_pkgfile}
DEPENDS ${TOLUA_PARSER_DEPENDENCIES}
IMPLICIT_DEPENDS ${_implicit_dependencies}
- WORKING_DIRECTORY ${ORXONOX_RUNTIME_LIBRARY_DIRECTORY}
+ WORKING_DIRECTORY ${RUNTIME_LIBRARY_DIRECTORY}
COMMENT "Generating tolua bind files for package ${_tolua_package}"
)
ENDFUNCTION(GENERATE_TOLUA_BINDINGS)
Deleted: code/branches/resource2/cmake/Media.cmake
===================================================================
--- code/branches/resource2/cmake/Media.cmake 2009-08-12 23:01:47 UTC (rev 5640)
+++ code/branches/resource2/cmake/Media.cmake 2009-08-13 19:12:24 UTC (rev 5641)
@@ -1,51 +0,0 @@
- #
- # ORXONOX - the hottest 3D action shooter ever to exist
- # > www.orxonox.net <
- #
- # This program is free software; you can redistribute it and/or
- # modify it under the terms of the GNU General Public License
- # as published by the Free Software Foundation; either version 2
- # of the License, or (at your option) any later version.
- #
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License along
- # with this program; if not, write to the Free Software Foundation,
- # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- #
- #
- # Author:
- # Reto Grieder
- # Description:
- # Finds the media directory and configures it's installation.
- #
-
-# Specify media directory
-GET_FILENAME_COMPONENT(_search_path_1 ${CMAKE_SOURCE_DIR}/../${DEFAULT_MEDIA_PATH} ABSOLUTE)
-FIND_PATH(MEDIA_PATH resources.cfg
- PATHS
- ${CMAKE_SOURCE_DIR}/${DEFAULT_MEDIA_PATH}
- ${_search_path_1}
- NO_CMAKE_PATH NO_CMAKE_ENVIRONMENT_PATH NO_SYSTEM_ENVIRONMENT_PATH NO_CMAKE_SYSTEM_PATH
-)
-
-# For consistency with other variables for config, log, bin, etc.
-SET(CMAKE_MEDIA_OUTPUT_DIRECTORY ${MEDIA_PATH})
-
-IF(NOT CMAKE_MEDIA_OUTPUT_DIRECTORY)
- MESSAGE(STATUS "Warning: Media directory not found. If you want to compile while downloading the media files, you will have to recompile about four files afterwards and relink everything. Default location is orxonox_root/media")
- # Temporary override to the default location.
- SET(CMAKE_MEDIA_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/media)
-ENDIF()
-
-
-################ Installation #################
-
-INSTALL(
- DIRECTORY ${CMAKE_MEDIA_OUTPUT_DIRECTORY}/
- DESTINATION ${ORXONOX_MEDIA_INSTALL_PATH}
- REGEX "\\.svn$|_svn$|backToPNG" EXCLUDE
-)
Modified: code/branches/resource2/cmake/PackageConfig.cmake
===================================================================
--- code/branches/resource2/cmake/PackageConfig.cmake 2009-08-12 23:01:47 UTC (rev 5640)
+++ code/branches/resource2/cmake/PackageConfig.cmake 2009-08-13 19:12:24 UTC (rev 5641)
@@ -1,5 +1,28 @@
-# General package configuration. Merely sets the include paths.
-# Library files are treated separately.
+ #
+ # ORXONOX - the hottest 3D action shooter ever to exist
+ # > www.orxonox.net <
+ #
+ # This program is free software; you can redistribute it and/or
+ # modify it under the terms of the GNU General Public License
+ # as published by the Free Software Foundation; either version 2
+ # of the License, or (at your option) any later version.
+ #
+ # This program is distributed in the hope that it will be useful,
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ # GNU General Public License for more details.
+ #
+ # You should have received a copy of the GNU General Public License along
+ # with this program; if not, write to the Free Software Foundation,
+ # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ #
+ #
+ # Author:
+ # Reto Grieder
+ # Description:
+ # General package configuration. Merely sets the include paths.
+ # Library files are treated separately.
+ #
# Check package version info
# MAJOR: Interface breaking change somewhere (library version changed, etc.)
Modified: code/branches/resource2/cmake/PackageConfigMSVC.cmake
===================================================================
--- code/branches/resource2/cmake/PackageConfigMSVC.cmake 2009-08-12 23:01:47 UTC (rev 5640)
+++ code/branches/resource2/cmake/PackageConfigMSVC.cmake 2009-08-13 19:12:24 UTC (rev 5641)
@@ -46,7 +46,7 @@
ENDIF()
# Also the directory with the runtime libraries
- SET(ORXONOX_RUNTIME_LIBRARY_DIRECTORY ${DEP_BINARY_DIR})
+ SET(RUNTIME_LIBRARY_DIRECTORY ${DEP_BINARY_DIR})
# Sets the library path for the FIND_LIBRARY
SET(CMAKE_LIBRARY_PATH ${DEP_LIBRARY_DIR})
Modified: code/branches/resource2/cmake/PackageConfigMinGW.cmake
===================================================================
--- code/branches/resource2/cmake/PackageConfigMinGW.cmake 2009-08-12 23:01:47 UTC (rev 5640)
+++ code/branches/resource2/cmake/PackageConfigMinGW.cmake 2009-08-13 19:12:24 UTC (rev 5641)
@@ -39,7 +39,7 @@
SET(DEP_BINARY_DIR ${DEPENDENCY_PACKAGE_DIR}/bin/mingw-${BINARY_POSTFIX})
# Also the directory with the runtime libraries
- SET(ORXONOX_RUNTIME_LIBRARY_DIRECTORY ${DEP_BINARY_DIR})
+ SET(RUNTIME_LIBRARY_DIRECTORY ${DEP_BINARY_DIR})
# Sets the library path for the FIND_LIBRARY
SET(CMAKE_LIBRARY_PATH ${DEP_LIBRARY_DIR} ${DEP_BINARY_DIR})
Modified: code/branches/resource2/cmake/TargetUtilities.cmake
===================================================================
--- code/branches/resource2/cmake/TargetUtilities.cmake 2009-08-12 23:01:47 UTC (rev 5640)
+++ code/branches/resource2/cmake/TargetUtilities.cmake 2009-08-13 19:12:24 UTC (rev 5641)
@@ -174,9 +174,9 @@
IF(NOT _arg_STATIC AND NOT _arg_NO_INSTALL)
INSTALL(TARGETS ${_target_name}
- RUNTIME DESTINATION ${ORXONOX_RUNTIME_INSTALL_PATH}
- LIBRARY DESTINATION ${ORXONOX_LIBRARY_INSTALL_PATH}
- #ARCHIVE DESTINATION ${ORXONOX_ARCHIVE_INSTALL_PATH}
+ RUNTIME DESTINATION ${RUNTIME_INSTALL_DIRECTORY}
+ LIBRARY DESTINATION ${LIBRARY_INSTALL_DIRECTORY}
+ #ARCHIVE DESTINATION ${ARCHIVE_INSTALL_DIRECTORY}
)
ENDIF()
Modified: code/branches/resource2/doc/api/CMakeLists.txt
===================================================================
--- code/branches/resource2/doc/api/CMakeLists.txt 2009-08-12 23:01:47 UTC (rev 5640)
+++ code/branches/resource2/doc/api/CMakeLists.txt 2009-08-13 19:12:24 UTC (rev 5641)
@@ -75,8 +75,7 @@
# Installation
INSTALL(
FILES ${DOXY_CONFIG} ${CMAKE_CURRENT_BINARY_DIR}/doxy.log
- DESTINATION ${ORXONOX_DOC_INSTALL_PATH}/api
- OPTIONAL
+ DESTINATION ${DOC_INSTALL_DIRECTORY}/api OPTIONAL
)
# Install command always needs the directory
IF(NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/html)
@@ -84,6 +83,6 @@
ENDIF()
INSTALL(
DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html
- DESTINATION ${ORXONOX_DOC_INSTALL_PATH}/api
+ DESTINATION ${DOC_INSTALL_DIRECTORY}/api
)
ENDIF(DOXYGEN_FOUND)
Added: code/branches/resource2/media/CMakeLists.txt
===================================================================
--- code/branches/resource2/media/CMakeLists.txt (rev 0)
+++ code/branches/resource2/media/CMakeLists.txt 2009-08-13 19:12:24 UTC (rev 5641)
@@ -0,0 +1,65 @@
+ #
+ # ORXONOX - the hottest 3D action shooter ever to exist
+ # > www.orxonox.net <
+ #
+ # This program is free software; you can redistribute it and/or
+ # modify it under the terms of the GNU General Public License
+ # as published by the Free Software Foundation; either version 2
+ # of the License, or (at your option) any later version.
+ #
+ # This program is distributed in the hope that it will be useful,
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ # GNU General Public License for more details.
+ #
+ # You should have received a copy of the GNU General Public License along
+ # with this program; if not, write to the Free Software Foundation,
+ # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ #
+ #
+ # Author:
+ # Reto Grieder
+ # Description:
+ # Finds the external media directory and configures the media installation.
+ # Default search paths are: ../../media and ../media_extern
+ #
+
+# For dev runs we've got two media directory. The one from the other repository root folder
+# is called EXTERNAL_MEDIA
+SET(MEDIA_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
+SET(MEDIA_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PARENT_SCOPE)
+
+# Specify media directory
+GET_FILENAME_COMPONENT(_search_path_1 ${CMAKE_SOURCE_DIR}/../${DEFAULT_MEDIA_PATH} ABSOLUTE)
+FIND_PATH(EXTERNAL_MEDIA_DIRECTORY resources.oxr
+ PATHS
+ ${CMAKE_SOURCE_DIR}/media_extern
+ ${_search_path_1}
+ NO_CMAKE_PATH NO_CMAKE_ENVIRONMENT_PATH NO_SYSTEM_ENVIRONMENT_PATH NO_CMAKE_SYSTEM_PATH
+)
+
+IF(NOT EXTERNAL_MEDIA_DIRECTORY)
+ MESSAGE(STATUS "Warning: External media directory not found. If you want to compile while downloading the media files, you will have to recompile about four files afterwards and relink everything. \\n You can specify your own folder with the MEDIA_DIRECTORY variable. Default location for the path is orxonox_root/media_extern")
+ # Temporary override to the default location.
+ SET(EXTERNAL_MEDIA_DIRECTORY ${CMAKE_SOURCE_DIR}/media_extern)
+ENDIF()
+
+
+################ Installation #################
+
+# Internal directory
+INSTALL(
+ DIRECTORY ${MEDIA_DIRECTORY}/
+ DESTINATION ${MEDIA_INSTALL_DIRECTORY}
+ REGEX "\\.svn$|_svn$|CMakeLists.txt|InstallScript.cmake" EXCLUDE
+)
+# External directory
+INSTALL(
+ DIRECTORY ${EXTERNAL_MEDIA_DIRECTORY}/
+ DESTINATION ${MEDIA_INSTALL_DIRECTORY}
+ REGEX "\\.svn$|_svn$|resources\\.oxr" EXCLUDE
+)
+# Configure the install scripts (variables not available during installation)
+CONFIGURE_FILE(MediaInstallScript.cmake ${CMAKE_CURRENT_BINARY_DIR}/MediaInstallScript.cmake @ONLY)
+# Join both resources.oxr files
+INSTALL(SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/MediaInstallScript.cmake)
Added: code/branches/resource2/media/MediaInstallScript.cmake
===================================================================
--- code/branches/resource2/media/MediaInstallScript.cmake (rev 0)
+++ code/branches/resource2/media/MediaInstallScript.cmake 2009-08-13 19:12:24 UTC (rev 5641)
@@ -0,0 +1,37 @@
+ #
+ # ORXONOX - the hottest 3D action shooter ever to exist
+ # > www.orxonox.net <
+ #
+ # This program is free software; you can redistribute it and/or
+ # modify it under the terms of the GNU General Public License
+ # as published by the Free Software Foundation; either version 2
+ # of the License, or (at your option) any later version.
+ #
+ # This program is distributed in the hope that it will be useful,
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ # GNU General Public License for more details.
+ #
+ # You should have received a copy of the GNU General Public License along
+ # with this program; if not, write to the Free Software Foundation,
+ # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ #
+ #
+ # Author:
+ # Reto Grieder
+ # Description:
+ # Joins both resources.oxr files together
+ # Caution:
+ # Variables are declared with @...@ because they don't exist anymore
+ # during the installation. But we still require variables (_external_file)
+ # so we can only replace @...@ but not ${...}
+ #
+
+# Write some comment
+FILE(APPEND @MEDIA_INSTALL_DIRECTORY@/resources.oxr "\n\n\n <!-- ----------------------------------------- -->")
+FILE(APPEND @MEDIA_INSTALL_DIRECTORY@/resources.oxr "\n <!-- Content from the external media directory -->")
+FILE(APPEND @MEDIA_INSTALL_DIRECTORY@/resources.oxr "\n <!-- ----------------------------------------- -->\n\n")
+
+# Append the external file
+FILE(READ @EXTERNAL_MEDIA_DIRECTORY@/resources.oxr _external_file)
+FILE(APPEND @MEDIA_INSTALL_DIRECTORY@/resources.oxr ${_external_file})
Property changes on: code/branches/resource2/media/MediaInstallScript.cmake
___________________________________________________________________
Added: svn:eol-style
+ native
Modified: code/branches/resource2/src/SpecialConfig.h.in
===================================================================
--- code/branches/resource2/src/SpecialConfig.h.in 2009-08-12 23:01:47 UTC (rev 5640)
+++ code/branches/resource2/src/SpecialConfig.h.in 2009-08-13 19:12:24 UTC (rev 5641)
@@ -69,45 +69,55 @@
#cmakedefine CMAKE_CONFIGURATION_TYPES
// Handle default ConfigValues
-namespace orxonox
+namespace orxonox { namespace specialConfig
{
+ // DEFAULT RELATIVE PATHS (might not be used at all)
+ const char defaultRuntimePath[] = "@DEFAULT_RUNTIME_PATH@";
+ const char defaultLibraryPath[] = "@DEFAULT_LIBRARY_PATH@";
+ const char defaultArchivePath[] = "@DEFAULT_ARCHIVE_PATH@";
+ const char defaultDocPath[] = "@DEFAULT_DOC_PATH@";
+ const char defaultMediaPath[] = "@DEFAULT_MEDIA_PATH@";
+ const char defaultConfigPath[] = "@DEFAULT_CONFIG_PATH@";
+ const char defaultLogPath[] = "@DEFAULT_LOG_PATH@";
+
// INSTALLATION PATHS
- const char ORXONOX_RUNTIME_INSTALL_PATH[] = "@ORXONOX_RUNTIME_INSTALL_PATH@";
- const char ORXONOX_MEDIA_INSTALL_PATH[] = "@ORXONOX_MEDIA_INSTALL_PATH@";
- /* Config and Log path might be relative because they could be user and therefore runtime dependent */
- const char ORXONOX_CONFIG_INSTALL_PATH[] = "@ORXONOX_CONFIG_INSTALL_PATH@";
- const char ORXONOX_LOG_INSTALL_PATH[] = "@ORXONOX_LOG_INSTALL_PATH@";
+ const char runtimeInstallDirectory[] = "@RUNTIME_INSTALL_DIRECTORY@";
+ const char mediaInstallDirectory[] = "@MEDIA_INSTALL_DIRECTORY@";
+ const char configInstallDirectory[] = "@CONFIG_INSTALL_DIRECTORY@";
+ const char logInstallDirectory[] = "@LOG_INSTALL_DIRECTORY@";
// DEVELOPMENT RUN PATHS
- const char ORXONOX_MEDIA_DEV_PATH[] = "@CMAKE_MEDIA_OUTPUT_DIRECTORY@";
+ const char mediaDevDirectory[] = "@MEDIA_DIRECTORY@";
+ const char externalMediaDevDirectory[] = "@EXTERNAL_MEDIA_DIRECTORY@";
#ifdef CMAKE_CONFIGURATION_TYPES
- const char ORXONOX_CONFIG_DEV_PATH[] = "@CMAKE_CONFIG_OUTPUT_DIRECTORY@/" BOOST_PP_STRINGIZE(CMAKE_BUILD_TYPE);
- const char ORXONOX_LOG_DEV_PATH[] = "@CMAKE_LOG_OUTPUT_DIRECTORY@/" BOOST_PP_STRINGIZE(CMAKE_BUILD_TYPE);
+ const char configDevDirectory[] = "@CMAKE_CONFIG_OUTPUT_DIRECTORY@/" BOOST_PP_STRINGIZE(CMAKE_BUILD_TYPE);
+ const char logDevDirectory[] = "@CMAKE_LOG_OUTPUT_DIRECTORY@/" BOOST_PP_STRINGIZE(CMAKE_BUILD_TYPE);
#else
- const char ORXONOX_CONFIG_DEV_PATH[] = "@CMAKE_CONFIG_OUTPUT_DIRECTORY@";
- const char ORXONOX_LOG_DEV_PATH[] = "@CMAKE_LOG_OUTPUT_DIRECTORY@";
+ const char configDevDirectory[] = "@CMAKE_CONFIG_OUTPUT_DIRECTORY@";
+ const char logDevDirectory[] = "@CMAKE_LOG_OUTPUT_DIRECTORY@";
#endif
+
#ifdef DEPENDENCY_PACKAGE_ENABLE
- const char ORXONOX_DEP_LIB_PATH[] = "@DEP_LIBRARY_DIR@";
+ const char dependencyLibraryDirectory[] = "@DEP_LIBRARY_DIR@";
#endif
// OGRE PLUGINS
#ifdef NDEBUG
- const char ORXONOX_OGRE_PLUGINS[] = "@OGRE_PLUGINS_RELEASE@";
+ const char ogrePlugins[] = "@OGRE_PLUGINS_RELEASE@";
# ifdef DEPENDENCY_PACKAGE_ENABLE
- const char ORXONOX_OGRE_PLUGINS_FOLDER[] = ".";
+ const char ogrePluginsDirectory[] = ".";
# else
- const char ORXONOX_OGRE_PLUGINS_FOLDER[] = "@OGRE_PLUGINS_FOLDER_RELEASE@";
+ const char ogrePluginsDirectory[] = "@OGRE_PLUGINS_FOLDER_RELEASE@";
# endif
#else
- const char ORXONOX_OGRE_PLUGINS[] = "@OGRE_PLUGINS_DEBUG@";
+ const char ogrePlugins[] = "@OGRE_PLUGINS_DEBUG@";
# ifdef DEPENDENCY_PACKAGE_ENABLE
- const char ORXONOX_OGRE_PLUGINS_FOLDER[] = ".";
+ const char ogrePluginsDirectory[] = ".";
# else
- const char ORXONOX_OGRE_PLUGINS_FOLDER[] = "@OGRE_PLUGINS_FOLDER_DEBUG@";
+ const char ogrePluginsDirectory[] = "@OGRE_PLUGINS_FOLDER_DEBUG@";
# endif
#endif
-}
+} }
/**
@def ORXONOX_USE_WINMAIN
Modified: code/branches/resource2/src/core/Core.cc
===================================================================
--- code/branches/resource2/src/core/Core.cc 2009-08-12 23:01:47 UTC (rev 5640)
+++ code/branches/resource2/src/core/Core.cc 2009-08-13 19:12:24 UTC (rev 5641)
@@ -84,7 +84,7 @@
//! Static pointer to the singleton
Core* Core::singletonPtr_s = 0;
- SetCommandLineArgument(mediaPath, "").information("Path to the media/data files");
+ SetCommandLineArgument(externalMediaPath, "").information("Path to the external media files");
SetCommandLineOnlyArgument(writingPathSuffix, "").information("Additional subfolder for config and log files");
SetCommandLineArgument(settingsFile, "orxonox.ini").information("THE configuration file");
#ifdef ORXONOX_PLATFORM_WINDOWS
@@ -109,9 +109,13 @@
RegisterRootObject(CoreConfiguration);
this->setConfigValues();
- // Possible media path override by the command line
- if (!CommandLine::getArgument("mediaPath")->hasDefaultValue())
- tsetMediaPath(CommandLine::getValue("mediaPath"));
+ // External media directory only exists for dev runs
+ if (Core::isDevelopmentRun())
+ {
+ // Possible media path override by the command line
+ if (!CommandLine::getArgument("externalMediaPath")->hasDefaultValue())
+ tsetExternalMediaPath(CommandLine::getValue("externalMediaPath"));
+ }
}
/**
@@ -144,14 +148,6 @@
SetConfigValue(bInitializeRandomNumberGenerator_, true)
.description("If true, all random actions are different each time you start the game")
.callback(this, &CoreConfiguration::initializeRandomNumberGenerator);
-
- // Only show this config value for development builds
- if (Core::isDevelopmentRun())
- {
- SetConfigValue(mediaPathString_, mediaPath_.string())
- .description("Relative path to the game data.")
- .callback(this, &CoreConfiguration::mediaPathChanged);
- }
}
/**
@@ -182,15 +178,6 @@
}
/**
- @brief
- Callback function if the media path has changed.
- */
- void mediaPathChanged()
- {
- mediaPath_ = boost::filesystem::path(this->mediaPathString_);
- }
-
- /**
@brief Sets the language in the config-file back to the default.
*/
void resetLanguage()
@@ -204,18 +191,9 @@
@param path
The new media path
*/
- void tsetMediaPath(const std::string& path)
+ void tsetExternalMediaPath(const std::string& path)
{
- if (Core::isDevelopmentRun())
- {
- ModifyConfigValue(mediaPathString_, tset, path);
- }
- else
- {
- // Manual 'config' value without the file entry
- mediaPathString_ = path;
- this->mediaPathChanged();
- }
+ mediaPath_ = boost::filesystem::path(path);
}
void initializeRandomNumberGenerator()
@@ -235,12 +213,12 @@
int softDebugLevelShell_; //!< The debug level for the ingame shell
std::string language_; //!< The language
bool bInitializeRandomNumberGenerator_; //!< If true, srand(time(0)) is called
- std::string mediaPathString_; //!< Path to the data/media file folder as string
//! Path to the parent directory of the ones above if program was installed with relativ pahts
boost::filesystem::path rootPath_;
boost::filesystem::path executablePath_; //!< Path to the executable
boost::filesystem::path mediaPath_; //!< Path to the media file folder
+ boost::filesystem::path externalMediaPath_; //!< Path to the media file folder
boost::filesystem::path configPath_; //!< Path to the config file folder
boost::filesystem::path logPath_; //!< Path to the log file folder
};
@@ -422,9 +400,9 @@
Core::getInstance().configuration_->resetLanguage();
}
- /*static*/ void Core::tsetMediaPath(const std::string& path)
+ /*static*/ void Core::tsetExternalMediaPath(const std::string& path)
{
- getInstance().configuration_->tsetMediaPath(path);
+ getInstance().configuration_->tsetExternalMediaPath(path);
}
/*static*/ const boost::filesystem::path& Core::getMediaPath()
@@ -436,6 +414,15 @@
return getInstance().configuration_->mediaPath_.string() + '/';
}
+ /*static*/ const boost::filesystem::path& Core::getExternalMediaPath()
+ {
+ return getInstance().configuration_->externalMediaPath_;
+ }
+ /*static*/ std::string Core::getExternalMediaPathString()
+ {
+ return getInstance().configuration_->externalMediaPath_.string() + '/';
+ }
+
/*static*/ const boost::filesystem::path& Core::getConfigPath()
{
return getInstance().configuration_->configPath_;
@@ -573,15 +560,16 @@
{
COUT(1) << "Running from the build tree." << std::endl;
Core::bDevRun_ = true;
- configuration_->mediaPath_ = ORXONOX_MEDIA_DEV_PATH;
- configuration_->configPath_ = ORXONOX_CONFIG_DEV_PATH;
- configuration_->logPath_ = ORXONOX_LOG_DEV_PATH;
+ configuration_->mediaPath_ = specialConfig::mediaDevDirectory;
+ configuration_->externalMediaPath_ = specialConfig::externalMediaDevDirectory;
+ configuration_->configPath_ = specialConfig::configDevDirectory;
+ configuration_->logPath_ = specialConfig::logDevDirectory;
}
else
{
#ifdef INSTALL_COPYABLE // --> relative paths
// Also set the root path
- boost::filesystem::path relativeExecutablePath(ORXONOX_RUNTIME_INSTALL_PATH);
+ boost::filesystem::path relativeExecutablePath(specialConfig::defaultRuntimePath);
configuration_->rootPath_ = configuration_->executablePath_;
while (!boost::filesystem::equivalent(configuration_->rootPath_ / relativeExecutablePath, configuration_->executablePath_)
&& !configuration_->rootPath_.empty())
@@ -590,13 +578,13 @@
ThrowException(General, "Could not derive a root directory. Might the binary installation directory contain '..' when taken relative to the installation prefix path?");
// Using paths relative to the install prefix, complete them
- configuration_->mediaPath_ = configuration_->rootPath_ / ORXONOX_MEDIA_INSTALL_PATH;
- configuration_->configPath_ = configuration_->rootPath_ / ORXONOX_CONFIG_INSTALL_PATH;
- configuration_->logPath_ = configuration_->rootPath_ / ORXONOX_LOG_INSTALL_PATH;
+ configuration_->mediaPath_ = configuration_->rootPath_ / specialConfig::defaultMediaPath;
+ configuration_->configPath_ = configuration_->rootPath_ / specialConfig::defaultConfigPath;
+ configuration_->logPath_ = configuration_->rootPath_ / specialConfig::defaultLogPath;
#else
// There is no root path, so don't set it at all
- configuration_->mediaPath_ = ORXONOX_MEDIA_INSTALL_PATH;
+ configuration_->mediaPath_ = specialConfig::mediaInstallDirectory;
// Get user directory
# ifdef ORXONOX_PLATFORM_UNIX /* Apple? */
@@ -609,8 +597,8 @@
boost::filesystem::path userDataPath(userDataPathPtr);
userDataPath /= ".orxonox";
- configuration_->configPath_ = userDataPath / ORXONOX_CONFIG_INSTALL_PATH;
- configuration_->logPath_ = userDataPath / ORXONOX_LOG_INSTALL_PATH;
+ configuration_->configPath_ = userDataPath / specialConfig::defaultConfigPath;
+ configuration_->logPath_ = userDataPath / specialConfig::defaultLogPath;
#endif
}
Modified: code/branches/resource2/src/core/Core.h
===================================================================
--- code/branches/resource2/src/core/Core.h 2009-08-12 23:01:47 UTC (rev 5640)
+++ code/branches/resource2/src/core/Core.h 2009-08-13 19:12:24 UTC (rev 5641)
@@ -90,17 +90,21 @@
static const std::string& getLanguage();
static void resetLanguage();
- static void tsetMediaPath(const std::string& path);
- //! Returns the path to the config files as boost::filesystem::path
+ static void tsetExternalMediaPath(const std::string& path);
+ //! Returns the path to the data files as boost::filesystem::path
static const boost::filesystem::path& getMediaPath();
+ //! Returns the path to the external data files as boost::filesystem::path
+ static const boost::filesystem::path& getExternalMediaPath();
//! Returns the path to the config files as boost::filesystem::path
static const boost::filesystem::path& getConfigPath();
//! Returns the path to the log files as boost::filesystem::path
static const boost::filesystem::path& getLogPath();
+ //! Returns the path to the data files as std::string
//! Returns the path to the root folder as boost::filesystem::path
static const boost::filesystem::path& getRootPath();
- //! Returns the path to the data files as std::string
static std::string getMediaPathString();
+ //! Returns the path to the external data files as std::string
+ static std::string getExternalMediaPathString();
//! Returns the path to the config files as std::string
static std::string getConfigPathString();
//! Returns the path to the log files as std::string
Modified: code/branches/resource2/src/core/GraphicsManager.cc
===================================================================
--- code/branches/resource2/src/core/GraphicsManager.cc 2009-08-12 23:01:47 UTC (rev 5640)
+++ code/branches/resource2/src/core/GraphicsManager.cc 2009-08-13 19:12:24 UTC (rev 5641)
@@ -114,9 +114,9 @@
{
SetConfigValue(ogreConfigFile_, "ogre.cfg")
.description("Location of the Ogre config file");
- SetConfigValue(ogrePluginsFolder_, ORXONOX_OGRE_PLUGINS_FOLDER)
+ SetConfigValue(ogrePluginsDirectory_, specialConfig::ogrePluginsDirectory)
.description("Folder where the Ogre plugins are located.");
- SetConfigValue(ogrePlugins_, ORXONOX_OGRE_PLUGINS)
+ SetConfigValue(ogrePlugins_, specialConfig::ogrePlugins)
.description("Comma separated list of all plugins to load.");
SetConfigValue(ogreLogFile_, "ogre.log")
.description("Logfile for messages from Ogre. Use \"\" to suppress log file creation.");
@@ -197,10 +197,10 @@
void GraphicsManager::loadOgrePlugins()
{
// just to make sure the next statement doesn't segfault
- if (ogrePluginsFolder_ == "")
- ogrePluginsFolder_ = ".";
+ if (ogrePluginsDirectory_ == "")
+ ogrePluginsDirectory_ = ".";
- boost::filesystem::path folder(ogrePluginsFolder_);
+ boost::filesystem::path folder(ogrePluginsDirectory_);
// Do some SubString magic to get the comma separated list of plugins
SubString plugins(ogrePlugins_, ",", " ", false, '\\', false, '"', false, '(', ')', false, '\0');
// Use backslash paths on Windows! file_string() already does that though.
Modified: code/branches/resource2/src/core/GraphicsManager.h
===================================================================
--- code/branches/resource2/src/core/GraphicsManager.h 2009-08-12 23:01:47 UTC (rev 5640)
+++ code/branches/resource2/src/core/GraphicsManager.h 2009-08-13 19:12:24 UTC (rev 5641)
@@ -97,7 +97,7 @@
// config values
std::string ogreConfigFile_; //!< ogre config file name
- std::string ogrePluginsFolder_; //!< Folder where the Ogre plugins are located
+ std::string ogrePluginsDirectory_; //!< Directory where the Ogre plugins are located
std::string ogrePlugins_; //!< Comma separated list of all plugins to load
std::string ogreLogFile_; //!< log file name for Ogre log messages
int ogreLogLevelTrivial_; //!< Corresponding Orxonx debug level for LL_TRIVIAL
Modified: code/branches/resource2/src/core/TclBind.cc
===================================================================
--- code/branches/resource2/src/core/TclBind.cc 2009-08-12 23:01:47 UTC (rev 5640)
+++ code/branches/resource2/src/core/TclBind.cc 2009-08-13 19:12:24 UTC (rev 5641)
@@ -126,7 +126,7 @@
{
#ifdef DEPENDENCY_PACKAGE_ENABLE
if (Core::isDevelopmentRun())
- return (std::string(ORXONOX_DEP_LIB_PATH) + "/tcl");
+ return (std::string(specialConfig::dependencyLibraryDirectory) + "/tcl");
else
return (Core::getRootPathString() + "lib/tcl");
#else
Modified: code/branches/resource2/src/orxonox/orxonox.vcproj.user.in
===================================================================
--- code/branches/resource2/src/orxonox/orxonox.vcproj.user.in 2009-08-12 23:01:47 UTC (rev 5640)
+++ code/branches/resource2/src/orxonox/orxonox.vcproj.user.in 2009-08-13 19:12:24 UTC (rev 5641)
@@ -10,7 +10,7 @@
>
<DebugSettings
WorkingDirectory="${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(OutDir)"
- Environment="Path=${ORXONOX_RUNTIME_LIBRARY_DIRECTORY}"
+ Environment="Path=${RUNTIME_LIBRARY_DIRECTORY}"
EnvironmentMerge="true"
/>
</Configuration>
@@ -19,7 +19,7 @@
>
<DebugSettings
WorkingDirectory="${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(OutDir)"
- Environment="Path=${ORXONOX_RUNTIME_LIBRARY_DIRECTORY}"
+ Environment="Path=${RUNTIME_LIBRARY_DIRECTORY}"
EnvironmentMerge="true"
/>
</Configuration>
@@ -28,7 +28,7 @@
>
<DebugSettings
WorkingDirectory="${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(OutDir)"
- Environment="Path=${ORXONOX_RUNTIME_LIBRARY_DIRECTORY}"
+ Environment="Path=${RUNTIME_LIBRARY_DIRECTORY}"
EnvironmentMerge="true"
/>
</Configuration>
@@ -37,7 +37,7 @@
>
<DebugSettings
WorkingDirectory="${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(OutDir)"
- Environment="Path=${ORXONOX_RUNTIME_LIBRARY_DIRECTORY}"
+ Environment="Path=${RUNTIME_LIBRARY_DIRECTORY}"
EnvironmentMerge="true"
/>
</Configuration>
More information about the Orxonox-commit
mailing list