Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7818 for code/trunk/src


Ignore:
Timestamp:
Dec 26, 2010, 9:07:43 PM (14 years ago)
Author:
rgrieder
Message:

Merged changes related to Visual Leak Detector and source file handling from sandbox QT to trunk.

Location:
code/trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/CMakeLists.txt

    r7459 r7818  
    8484  ${DIRECTX_INCLUDE_DIR}
    8585  ${ZLIB_INCLUDE_DIR}
    86   ${VLD_INCLUDE_DIR}
    8786
    8887  # All includes in "externals" should be prefixed with the path
     
    123122################## Executable ###################
    124123
     124SET_SOURCE_FILES(ORXONOX_MAIN_SRC_FILES Orxonox.cc)
     125
    125126INCLUDE_DIRECTORIES(
    126127  ${CMAKE_CURRENT_SOURCE_DIR}/libraries
     
    139140    orxonox
    140141  SOURCE_FILES
    141     Orxonox.cc
     142    ${ORXONOX_MAIN_SRC_FILES}
    142143  OUTPUT_NAME orxonox
    143144)
  • code/trunk/src/OrxonoxConfig.cmake

    r7380 r7818  
    7979CHECK_INCLUDE_FILE_CXX(iso646.h HAVE_ISO646_H)
    8080
     81IF(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)
     95ENDIF()
     96
    8197############## Configured Headers ###############
    8298
  • code/trunk/src/OrxonoxConfig.h.in

    r7401 r7818  
    179179*/
    180180
    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)
     184typedef uint32_t UINT32;
     185typedef wchar_t WCHAR;
     186struct HINSTANCE__;
     187typedef struct HINSTANCE__* HINSTANCE;
     188typedef HINSTANCE HMODULE;
     189#  ifndef NULL
     190#    define NULL 0
     191#  endif
    184192#  include <vld.h>
    185193#endif
  • code/trunk/src/SpecialConfig.h.in

    r7450 r7818  
    5252#cmakedefine DBGHELP_FOUND                  ///< If DbgHelp was found on windows
    5353
    54 #cmakedefine ORXONOX_USE_WINMAIN            ///< Using MSVC or XCode IDE
     54#cmakedefine ORXONOX_USE_WINMAIN            ///< Whether or not the console window is started as well
    5555
    5656// Handle default ConfigValues
Note: See TracChangeset for help on using the changeset viewer.