Changeset 3167 for code/branches/pch/src
- Timestamp:
- Jun 14, 2009, 6:11:32 PM (16 years ago)
- Location:
- code/branches/pch/src
- Files:
-
- 7 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pch/src/CMakeLists.txt
r3116 r3167 29 29 ADD_COMPILER_FLAGS("-DOIS_DYNAMIC_LIB") 30 30 # Tolua binding speedup if required 31 ADD_COMPILER_FLAGS("-DTOLUA_RELEASE" Release MinSizeRel TOLUA_PARSER_RELEASE)31 ADD_COMPILER_FLAGS("-DTOLUA_RELEASE" ORXONOX_RELEASE) 32 32 33 33 # Default linking is SHARED … … 77 77 78 78 SET(GENERATED_FILE_COMMENT 79 "DO NOT EDIT THIS FILE! 79 "DO NOT EDIT THIS FILE! <br> 80 80 It has been automatically generated by CMake from OrxonoxConfig.h.in") 81 81 # Copy and configure OrxonoxConfig which gets included in every file … … 108 108 ${DIRECTX_INCLUDE_DIR} 109 109 ${ZLIB_INCLUDE_DIR} 110 ${VLD_INCLUDE_DIR} 110 111 111 112 # All library includes are prefixed with the path to avoid conflicts … … 152 153 ADD_SUBDIRECTORY(network) 153 154 ADD_SUBDIRECTORY(orxonox) 154 155 # Apply version info156 SET_TARGET_PROPERTIES(util core network orxonox157 PROPERTIES VERSION ${ORXONOX_VERSION}) -
code/branches/pch/src/OrxonoxConfig.h.in
r3153 r3167 34 34 35 35 /** 36 37 36 @file 37 @brief 38 38 Various constants for compiler, architecture and platform. 39 39 @remarks 40 40 @GENERATED_FILE_COMMENT@ 41 41 */ 42 42 43 43 #ifndef _OrxonoxConfig_H__ … … 52 52 #cmakedefine ORXONOX_PLATFORM_UNIX /* Apple and Linux */ 53 53 54 / * Determine compiler and set ORXONOX_COMP_VER */54 // Determine compiler and set ORXONOX_COMP_VER 55 55 #if defined( _MSC_VER ) 56 56 # define ORXONOX_COMPILER_MSVC … … 75 75 #endif 76 76 77 / * Endianness */77 // Endianness 78 78 #cmakedefine ORXONOX_BIG_ENDIAN 79 79 #cmakedefine ORXONOX_LITTLE_ENDIAN 80 80 81 / * Architecture */81 // Architecture 82 82 #cmakedefine ORXONOX_ARCH_32 83 83 #cmakedefine ORXONOX_ARCH_64 84 84 85 / * See if we can use __forceinline or if we need to use __inline instead */85 // See if we can use __forceinline or if we need to use __inline instead 86 86 #cmakedefine HAVE_FORCEINLINE 87 87 #ifndef FORCEINLINE … … 93 93 #endif 94 94 95 / * Try to define function information */95 // Try to define function information 96 96 #ifndef __FUNCTIONNAME__ 97 97 # ifdef ORXONOX_COMPILER_BORLAND … … 115 115 #define ORXONOX_VERSION_NAME "@ORXONOX_VERSION_NAME@" 116 116 117 #define ORXONOX_VERSION ((ORXONOX_VERSION_MAJOR << 16) | (ORXONOX_VERSION_MINOR << 8) | ORXONOX_VERSION_PATCH) 117 //! Defines version info encoded as 0xMMIIPP (M: Major version, I: Minor version, P: Patch version, all as hex) 118 #define ORXONOX_VERSION \ 119 ((ORXONOX_VERSION_MAJOR << 16) | (ORXONOX_VERSION_MINOR << 8) | ORXONOX_VERSION_PATCH) 118 120 119 121 … … 123 125 #ifdef ORXONOX_PLATFORM_UNIX 124 126 125 / * TODO: Check what this actually is and whether we need it or not */127 // TODO: Check what this actually is and whether we need it or not 126 128 #if 0 127 129 # ifdef ORXONOX_PLATFORM_APPLE 128 130 # define ORXONOX_PLATFORM_LIB "OrxonoxPlatform.bundle" 129 # else 130 /* ORXONOX_PLATFORM_LINUX */ 131 # else // ORXONOX_PLATFORM_LINUX 131 132 # define ORXONOX_PLATFORM_LIB "libOrxonoxPlatform.so" 132 133 # endif … … 151 152 152 153 /*--------------------------------- 153 * Includes 154 *-------------------------------*/ 155 /* Define the english written operators like and, or, xor 156 * This is C++ standard, but the Microsoft compiler doesn't define them. */ 154 * Options 155 *-------------------------------*/ 156 /** 157 @def ORXONOX_RELEASE 158 Enables expensive (build time) optimisations and disables certain features 159 */ 160 #cmakedefine ORXONOX_RELEASE 161 162 163 /*--------------------------------- 164 * Includes and Declarations 165 *-------------------------------*/ 166 // Define the english written operators like and, or, xor 167 // This is C++ standard, but the Microsoft compiler doesn't define them. 157 168 #cmakedefine HAVE_ISO646_H 158 169 #ifdef HAVE_ISO646_H … … 181 192 */ 182 193 183 /* Forward declare the everywhere used std::string */ 194 // Always include the memory leak detector for MSVC except for actual releases 195 // Note: Although officially supported, VLD does not work with MSVC 9 196 #if defined(ORXONOX_COMPILER_MSVC) && _MSC_VER < 1500 && !defined(ORXONOX_RELEASE) 197 # include <vld.h> 198 #endif 199 200 // Forward declare the everywhere used std::string 184 201 namespace std 185 202 { … … 190 207 } 191 208 192 /* Just in case you don't include a standard header */193 #ifndef NULL194 #define NULL 0195 #endif196 197 /* Visual Leak Detector looks for memory leaks */198 #cmakedefine VISUAL_LEAK_DETECTOR_ENABLE199 #ifdef VISUAL_LEAK_DETECTOR_ENABLE200 # include <vld.h>201 #endif202 203 209 #endif /* _OrxonoxConfig_H__ */ -
code/branches/pch/src/SpecialConfig.h.in
r2946 r3167 28 28 29 29 /** 30 31 30 @file 31 @brief 32 32 Various constants and options that only affect very little code. 33 33 @note 34 34 This is merely to avoid recompiling everything when only a path changes. 35 35 @remarks 36 36 @GENERATED_FILE_COMMENT@ 37 37 */ 38 38 39 39 #ifndef _SpecialConfig_H__ … … 42 42 #include "OrxonoxConfig.h" 43 43 44 /* Set whether we must suffix "ceguilua/" for the CEGUILua.h include */ 44 /** 45 @def CEGUILUA_USE_INTERNAL_LIBRARY 46 Set whether we must suffix "ceguilua/" for the CEGUILua.h include 47 */ 45 48 #cmakedefine CEGUILUA_USE_INTERNAL_LIBRARY 46 49 47 /* Defined if a precompiled depdency package was used. We then copy all libraries 48 too when installing. */ 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 */ 49 55 #cmakedefine DEPENDENCY_PACKAGE_ENABLE 50 56 51 /* Orxonox either gets installed to the system or just into a folder. 52 The latter uses relative paths. */ 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 */ 53 62 #cmakedefine INSTALL_COPYABLE 54 63 55 /* Using MSVC or XCode IDE */ 64 /** 65 @def CMAKE_CONFIGURATION_TYPES 66 Using MSVC or XCode IDE 67 */ 56 68 #cmakedefine CMAKE_CONFIGURATION_TYPES 57 69 58 / * Handle default ConfigValues */70 // Handle default ConfigValues 59 71 namespace orxonox 60 72 { 61 const char* const ORXONOX_RUNTIME_INSTALL_PATH("@ORXONOX_RUNTIME_INSTALL_PATH@"); 62 const char* const ORXONOX_MEDIA_INSTALL_PATH ("@ORXONOX_MEDIA_INSTALL_PATH@"); 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@"; 63 76 /* Config and Log path might be relative because they could be user and therefore runtime dependent */ 64 const char * const ORXONOX_CONFIG_INSTALL_PATH ("@ORXONOX_CONFIG_INSTALL_PATH@");65 const char * const ORXONOX_LOG_INSTALL_PATH ("@ORXONOX_LOG_INSTALL_PATH@");77 const char ORXONOX_CONFIG_INSTALL_PATH[] = "@ORXONOX_CONFIG_INSTALL_PATH@"; 78 const char ORXONOX_LOG_INSTALL_PATH[] = "@ORXONOX_LOG_INSTALL_PATH@"; 66 79 67 const char* const ORXONOX_MEDIA_DEV_PATH ("@CMAKE_MEDIA_OUTPUT_DIRECTORY@"); 80 // DEVELOPMENT RUN PATHS 81 const char ORXONOX_MEDIA_DEV_PATH[] = "@CMAKE_MEDIA_OUTPUT_DIRECTORY@"; 68 82 #ifdef CMAKE_CONFIGURATION_TYPES 69 const char * const ORXONOX_CONFIG_DEV_PATH ("@CMAKE_CONFIG_OUTPUT_DIRECTORY@/" MACRO_QUOTEME(CMAKE_BUILD_TYPE));70 const char * const ORXONOX_LOG_DEV_PATH ("@CMAKE_LOG_OUTPUT_DIRECTORY@/" MACRO_QUOTEME(CMAKE_BUILD_TYPE));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); 71 85 #else 72 const char * const ORXONOX_CONFIG_DEV_PATH ("@CMAKE_CONFIG_OUTPUT_DIRECTORY@");73 const char * const ORXONOX_LOG_DEV_PATH ("@CMAKE_LOG_OUTPUT_DIRECTORY@");86 const char ORXONOX_CONFIG_DEV_PATH[] = "@CMAKE_CONFIG_OUTPUT_DIRECTORY@"; 87 const char ORXONOX_LOG_DEV_PATH[] = "@CMAKE_LOG_OUTPUT_DIRECTORY@"; 74 88 #endif 75 89 76 90 /* OGRE Plugins */ 77 91 #ifdef NDEBUG 78 const char * const ORXONOX_OGRE_PLUGINS("@OGRE_PLUGINS_RELEASE@");92 const char ORXONOX_OGRE_PLUGINS[] = "@OGRE_PLUGINS_RELEASE@"; 79 93 # ifdef DEPENDENCY_PACKAGE_ENABLE 80 const char * const ORXONOX_OGRE_PLUGINS_FOLDER(".");94 const char ORXONOX_OGRE_PLUGINS_FOLDER[] = "."; 81 95 # else 82 const char * const ORXONOX_OGRE_PLUGINS_FOLDER("@OGRE_PLUGINS_FOLDER_RELEASE@");96 const char ORXONOX_OGRE_PLUGINS_FOLDER[] = "@OGRE_PLUGINS_FOLDER_RELEASE@"; 83 97 # endif 84 98 #else 85 const char * const ORXONOX_OGRE_PLUGINS("@OGRE_PLUGINS_DEBUG@");99 const char ORXONOX_OGRE_PLUGINS[] = "@OGRE_PLUGINS_DEBUG@"; 86 100 # ifdef DEPENDENCY_PACKAGE_ENABLE 87 const char * const ORXONOX_OGRE_PLUGINS_FOLDER(".");101 const char ORXONOX_OGRE_PLUGINS_FOLDER[] = "."; 88 102 # else 89 const char * const ORXONOX_OGRE_PLUGINS_FOLDER("@OGRE_PLUGINS_FOLDER_DEBUG@");103 const char ORXONOX_OGRE_PLUGINS_FOLDER[] = "@OGRE_PLUGINS_FOLDER_DEBUG@"; 90 104 # endif 91 105 #endif 92 106 } 93 107 108 /** 109 @def ORXONOX_USE_WINMAIN 110 Use main() or WinMain()? 111 */ 112 #cmakedefine ORXONOX_USE_WINMAIN 113 94 114 #endif /* _SpecialConfig_H__ */ -
code/branches/pch/src/orxonox/CMakeLists.txt
r3117 r3167 33 33 ADD_SUBDIRECTORY(tools) 34 34 35 # Translate argument 36 IF(ORXONOX_USE_WINMAIN) 37 SET(ORXONOX_WIN32 WIN32) 38 ENDIF() 39 35 40 ORXONOX_ADD_EXECUTABLE(orxonox 36 41 FIND_HEADER_FILES … … 44 49 OrxonoxPrecompiledHeaders.h 45 50 PCH_NO_DEFAULT 51 # When defined as WIN32 this removes the console window on Windows 52 ${ORXONOX_WIN32} 46 53 LINK_LIBRARIES 47 54 ${OGRE_LIBRARY} … … 85 92 STRING(REGEX REPLACE "^Visual Studio ([0-9][0-9]?) .*$" "\\1" 86 93 VISUAL_STUDIO_VERSION_SIMPLE "${CMAKE_GENERATOR}") 87 CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/orxonox.vcproj.user " "${CMAKE_CURRENT_BINARY_DIR}/orxonox.vcproj.user")94 CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/orxonox.vcproj.user.in" "${CMAKE_CURRENT_BINARY_DIR}/orxonox.vcproj.user") 88 95 ENDIF(MSVC) -
code/branches/pch/src/orxonox/Main.cc
r3110 r3167 28 28 */ 29 29 30 /** 31 @mainpage Orxonox Documentation 32 */ 33 34 /** 35 @file 36 @brief Entry point of the program. 37 */ 30 /** 31 @file 32 @brief 33 Entry point of the program. 34 */ 38 35 39 36 #include "OrxonoxConfig.h" … … 47 44 Main method. Game starts here (except for static initialisations). 48 45 */ 46 #ifdef ORXONOX_USE_WINMAIN 47 INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT) 48 #else 49 49 int main(int argc, char** argv) 50 #endif 50 51 { 51 52 { -
code/branches/pch/src/orxonox/sound/SoundBase.h
r3157 r3167 30 30 31 31 #include "OrxonoxPrereqs.h" 32 #include <cstring> // define NULL 32 33 33 34 namespace orxonox -
code/branches/pch/src/tolua/CMakeLists.txt
r3138 r3167 61 61 ) 62 62 63 OPTION(TOLUA_PARSER_RELEASE "Disable all debug messages from tolua bind files for Release and MinSizeRel build types." FALSE)64 65 63 # Set some variables to the cache in order to use them in the TOLUA macro 66 64 SET(TOLUA_PARSER_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/all-${LUA_VERSION}.lua" CACHE INTERNAL "")
Note: See TracChangeset
for help on using the changeset viewer.