Last change
on this file since 2721 was
2702,
checked in by rgrieder, 16 years ago
|
Completed work on installation:
- The CMake switch INSTALL_COPYABLE tells whether you will be able to move the installed directory or not. If TRUE then all folders, including log and config directory, will be put into the CMAKE_INSTALL_PREFIX. Furthermore, relative paths are used, which get resolved at run time.
- If INSTALL_COPYABLE is set to FALSE, the standard operating system directories will be used. That also means on Windows files get written to the Application Data/.orxonox folder instead of Program Files/Orxonox
- Default configuration is INSTALL_COPYABLE=TRUE for Windows and FALSE for Unix
- Split OrxonoxConfig.h.in in two to avoid complete recompiles when changing only a path or INSTALL_COPYABLE
- Added a global constant character: CP_SLASH which stands for cross platform slash, meaning '/' on Unix and '
' on Windows
- Core class now has methods getFooPath(), getFooPathString() and getFooPathPOSIXString() where Foo can be Media, Log or Config
- getFooPathPOSIXString() will always return a directory formatted with slashes, even on Windows
- getFooPath() returns a reference to the boost::filesystem::path
- boost/filesystem.hpp does not get included to Core.h because it has a very large rat tail
- The platform specific directory stuff gets done in Core::postMainInitialisation()
- Adjusted all classes using the media path
|
-
Property svn:eol-style set to
native
|
File size:
1.2 KB
|
Line | |
---|
1 | # |
---|
2 | # ORXONOX - the hottest 3D action shooter ever to exist |
---|
3 | # > www.orxonox.net < |
---|
4 | # |
---|
5 | # This program is free software; you can redistribute it and/or |
---|
6 | # modify it under the terms of the GNU General Public License |
---|
7 | # as published by the Free Software Foundation; either version 2 |
---|
8 | # of the License, or (at your option) any later version. |
---|
9 | # |
---|
10 | # This program is distributed in the hope that it will be useful, |
---|
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
13 | # GNU General Public License for more details. |
---|
14 | # |
---|
15 | # You should have received a copy of the GNU General Public License along |
---|
16 | # with this program; if not, write to the Free Software Foundation, |
---|
17 | # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
18 | # |
---|
19 | |
---|
20 | IF(TARDIS) |
---|
21 | # OGRE can't find fonts to display config screen on Tardis, |
---|
22 | # so providing default config file here (bug). |
---|
23 | # Cause: Ogre 1.4.5 was compiled for an older debian version |
---|
24 | IF(NOT EXISTS ${CMAKE_CONFIG_OUTPUT_DIRECTORY}/ogre.cfg) |
---|
25 | CONFIGURE_FILE(ogre.cfg ${CMAKE_CONFIG_OUTPUT_DIRECTORY}/ogre.cfg COPYONLY) |
---|
26 | ENDIF() |
---|
27 | ENDIF(TARDIS) |
---|
Note: See
TracBrowser
for help on using the repository browser.