Changeset 7818 for code/trunk/src
- Timestamp:
- Dec 26, 2010, 9:07:43 PM (14 years ago)
- Location:
- code/trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/CMakeLists.txt
r7459 r7818 84 84 ${DIRECTX_INCLUDE_DIR} 85 85 ${ZLIB_INCLUDE_DIR} 86 ${VLD_INCLUDE_DIR}87 86 88 87 # All includes in "externals" should be prefixed with the path … … 123 122 ################## Executable ################### 124 123 124 SET_SOURCE_FILES(ORXONOX_MAIN_SRC_FILES Orxonox.cc) 125 125 126 INCLUDE_DIRECTORIES( 126 127 ${CMAKE_CURRENT_SOURCE_DIR}/libraries … … 139 140 orxonox 140 141 SOURCE_FILES 141 Orxonox.cc142 ${ORXONOX_MAIN_SRC_FILES} 142 143 OUTPUT_NAME orxonox 143 144 ) -
code/trunk/src/OrxonoxConfig.cmake
r7380 r7818 79 79 CHECK_INCLUDE_FILE_CXX(iso646.h HAVE_ISO646_H) 80 80 81 IF(MSVC) 82 # Check whether we can use Visual Leak Detector 83 FIND_FILE(VLD_DLL vld_x86.dll) 84 IF(VLD_DLL) 85 SET(HAVE_VLD TRUE) 86 OPTION(VISUAL_LEAK_DETECTOR_ENABLE "Memory leak detector" off) 87 # Make sure the value is "on" or "off" for vld.ini 88 IF(VISUAL_LEAK_DETECTOR_ENABLE) 89 SET(VISUAL_LEAK_DETECTOR_ENABLE on) 90 ELSE() 91 SET(VISUAL_LEAK_DETECTOR_ENABLE off) 92 ENDIF() 93 ENDIF() 94 MARK_AS_ADVANCED(VLD_DLL) 95 ENDIF() 96 81 97 ############## Configured Headers ############### 82 98 -
code/trunk/src/OrxonoxConfig.h.in
r7401 r7818 179 179 */ 180 180 181 // Always include the memory leak detector for MSVC except for actual releases 182 // Note: Although officially supported, VLD does not work with MSVC 9 183 #if defined(ORXONOX_COMPILER_MSVC) && _MSC_VER < 1500 && !defined(ORXONOX_RELEASE) 181 // Include memory leak detector if available and not building actual release 182 #cmakedefine HAVE_VLD 183 #if defined(HAVE_VLD) && !defined(ORXONOX_RELEASE) 184 typedef uint32_t UINT32; 185 typedef wchar_t WCHAR; 186 struct HINSTANCE__; 187 typedef struct HINSTANCE__* HINSTANCE; 188 typedef HINSTANCE HMODULE; 189 # ifndef NULL 190 # define NULL 0 191 # endif 184 192 # include <vld.h> 185 193 #endif -
code/trunk/src/SpecialConfig.h.in
r7450 r7818 52 52 #cmakedefine DBGHELP_FOUND ///< If DbgHelp was found on windows 53 53 54 #cmakedefine ORXONOX_USE_WINMAIN ///< Using MSVC or XCode IDE54 #cmakedefine ORXONOX_USE_WINMAIN ///< Whether or not the console window is started as well 55 55 56 56 // Handle default ConfigValues
Note: See TracChangeset
for help on using the changeset viewer.