Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/pch/src/SpecialConfig.h.in @ 3167

Last change on this file since 3167 was 3167, checked in by rgrieder, 15 years ago

Merged the build system changes from the Gruppenarbeit:

  • More Comments (including Doxygen stuff for the config files)
  • Removed redundancy between PackageConfigMSVC.cmake and PackageConfigMinGW.cmake
  • Option ORXONOX_RELEASE which activates some expensive (build time) optimisations
  • Native Visual Leak Detector support (doesn't work for MSVC9 though)
  • Added CMake option to disable the console on Windows
  • Property svn:eol-style set to native
File size: 3.5 KB
Line 
1/*
2 *   ORXONOX - the hottest 3D action shooter ever to exist
3 *                    > www.orxonox.net <
4 *
5 *
6 *   License notice:
7 *
8 *   This program is free software; you can redistribute it and/or
9 *   modify it under the terms of the GNU General Public License
10 *   as published by the Free Software Foundation; either version 2
11 *   of the License, or (at your option) any later version.
12 *
13 *   This program is distributed in the hope that it will be useful,
14 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
15 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 *   GNU General Public License for more details.
17 *
18 *   You should have received a copy of the GNU General Public License
19 *   along with this program; if not, write to the Free Software
20 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21 *
22 *   Author:
23 *      Reto Grieder
24 *   Co-authors:
25 *      ...
26 *
27 */
28
29/**
30@file
31@brief
32    Various constants and options that only affect very little code.
33@note
34    This is merely to avoid recompiling everything when only a path changes.
35@remarks
36    @GENERATED_FILE_COMMENT@
37*/
38
39#ifndef _SpecialConfig_H__
40#define _SpecialConfig_H__
41
42#include "OrxonoxConfig.h"
43
44/**
45@def CEGUILUA_USE_INTERNAL_LIBRARY
46    Set whether we must suffix "ceguilua/" for the CEGUILua.h include
47*/
48#cmakedefine CEGUILUA_USE_INTERNAL_LIBRARY
49
50/**
51@def DEPENDENCY_PACKAGE_ENABLE
52    Defined if a precompiled depdency package was used. We then copy all libraries
53    too when installing.
54*/
55#cmakedefine DEPENDENCY_PACKAGE_ENABLE
56
57/**
58@def INSTALL_COPYABLE
59    Orxonox either gets installed to the system or just into a folder.
60    The latter uses relative paths.
61*/
62#cmakedefine INSTALL_COPYABLE
63
64/**
65@def CMAKE_CONFIGURATION_TYPES
66    Using MSVC or XCode IDE
67*/
68#cmakedefine CMAKE_CONFIGURATION_TYPES
69
70// Handle default ConfigValues
71namespace orxonox
72{
73    // INSTALLATION PATHS
74    const char ORXONOX_RUNTIME_INSTALL_PATH[] = "@ORXONOX_RUNTIME_INSTALL_PATH@";
75    const char ORXONOX_MEDIA_INSTALL_PATH[]   = "@ORXONOX_MEDIA_INSTALL_PATH@";
76    /* Config and Log path might be relative because they could be user and therefore runtime dependent */
77    const char ORXONOX_CONFIG_INSTALL_PATH[]  = "@ORXONOX_CONFIG_INSTALL_PATH@";
78    const char ORXONOX_LOG_INSTALL_PATH[]     = "@ORXONOX_LOG_INSTALL_PATH@";
79
80    // DEVELOPMENT RUN PATHS
81    const char ORXONOX_MEDIA_DEV_PATH[]       = "@CMAKE_MEDIA_OUTPUT_DIRECTORY@";
82#ifdef CMAKE_CONFIGURATION_TYPES
83    const char ORXONOX_CONFIG_DEV_PATH[]      = "@CMAKE_CONFIG_OUTPUT_DIRECTORY@/" MACRO_QUOTEME(CMAKE_BUILD_TYPE);
84    const char ORXONOX_LOG_DEV_PATH[]         = "@CMAKE_LOG_OUTPUT_DIRECTORY@/"    MACRO_QUOTEME(CMAKE_BUILD_TYPE);
85#else
86    const char ORXONOX_CONFIG_DEV_PATH[]      = "@CMAKE_CONFIG_OUTPUT_DIRECTORY@";
87    const char ORXONOX_LOG_DEV_PATH[]         = "@CMAKE_LOG_OUTPUT_DIRECTORY@";
88#endif
89   
90    /* OGRE Plugins */
91#ifdef NDEBUG
92    const char ORXONOX_OGRE_PLUGINS[] = "@OGRE_PLUGINS_RELEASE@";
93#  ifdef DEPENDENCY_PACKAGE_ENABLE
94    const char ORXONOX_OGRE_PLUGINS_FOLDER[] = ".";
95#  else
96    const char ORXONOX_OGRE_PLUGINS_FOLDER[] = "@OGRE_PLUGINS_FOLDER_RELEASE@";
97#  endif
98#else
99    const char ORXONOX_OGRE_PLUGINS[] = "@OGRE_PLUGINS_DEBUG@";
100#  ifdef DEPENDENCY_PACKAGE_ENABLE
101    const char ORXONOX_OGRE_PLUGINS_FOLDER[] = ".";
102#  else
103    const char ORXONOX_OGRE_PLUGINS_FOLDER[] = "@OGRE_PLUGINS_FOLDER_DEBUG@";
104#  endif
105#endif
106}
107
108/**
109@def ORXONOX_USE_WINMAIN
110    Use main() or WinMain()?
111*/
112#cmakedefine ORXONOX_USE_WINMAIN
113
114#endif /* _SpecialConfig_H__ */
Note: See TracBrowser for help on using the repository browser.