Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8363


Ignore:
Timestamp:
Apr 30, 2011, 4:36:04 AM (14 years ago)
Author:
rgrieder
Message:

To avoid further confusion, I linked ORXONOX_RELEASE to the 'Release' and 'MinSizeRel' configurations. The variable is therefore not anymore available in CMake.
That means defining what these configurations actually mean in the context of Orxonox:

Debug: No optimisations and additional debug information. NOT distributable.
RelWithDebInfo: Optimisations enabled, but also generates debug information. Should be the default mode for development.
Release: With optimisations, but no debug symbols. Use this configuration to make a release binary.
MinSizeRel: Like Release, but optimised for size instead of speed. Not really useful for us.

Location:
code/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/CMakeLists.txt

    r8351 r8363  
    111111INSTALL(SCRIPT cmake/InstallCheck.cmake)
    112112
    113 # Enable expensive optimisations: use this for a binary release build
    114 OPTION(ORXONOX_RELEASE "Enable when building restributable releases" FALSE)
    115 
    116113IF(APPLE)
    117114  # Set 10.5 as the base SDK by default
  • code/trunk/cmake/tools/GenerateToluaBindings.cmake

    r8351 r8363  
    6363  ENDIF()
    6464
    65   # Tolua binding speedup if required
    66   IF(ORXONOX_RELEASE)
    67     SET_SOURCE_FILES_PROPERTIES(${_tolua_cxxfile} PROPERTIES COMPILE_FLAGS "-DTOLUA_RELEASE")
    68   ENDIF()
    69 
    7065  # Create temporary package file and implicit dependencies
    7166  FILE(REMOVE ${_tolua_pkgfile})
  • code/trunk/src/OrxonoxConfig.cmake

    r8351 r8363  
    7272SET(ORX_HAVE_STDINT_H ${HAVE_STDINT_H})
    7373
     74# XCode and Visual Studio support multiple configurations. In order to tell
     75# about the active one we have to define the macro for each configuration
     76ADD_COMPILER_FLAGS("-DCMAKE_Debug_BUILD"          Debug)
     77ADD_COMPILER_FLAGS("-DCMAKE_Release_BUILD"        Release)
     78ADD_COMPILER_FLAGS("-DCMAKE_RelWithDebInfo_BUILD" RelWithDebInfo)
     79ADD_COMPILER_FLAGS("-DCMAKE_MinSizeRel_BUILD"     MinSizeRel)
     80
    7481IF(MSVC)
    7582  # Check whether we can use Visual Leak Detector
  • code/trunk/src/OrxonoxConfig.h.in

    r8351 r8363  
    143143 * Apple Settings
    144144 *-------------------------------*/
    145 
    146 
    147 /*---------------------------------
    148  * Options
    149  *-------------------------------*/
    150 #cmakedefine ORXONOX_RELEASE  ///< Enables expensive (build time) optimisations and disables certain features
    151145
    152146
     
    185179*/
    186180
     181// Configurations Release and MinSizeRel are designed for redistribution while
     182// RelWithDebInfo is more for development
     183// ORXONOX_RELEASE simplifies this a little bit
     184#if defined(CMAKE_Release_BUILD) || defined(CMAKE_MinSizeRel_BUILD)
     185#  define ORXONOX_RELEASE
     186#endif
     187
    187188// Include memory leak detector if available and not building actual release
    188189#cmakedefine HAVE_VLD
    189 #if defined(HAVE_VLD) && !defined(ORXONOX_RELEASE)
     190#if defined(HAVE_VLD) && !defined(NDEBUG)
    190191typedef uint32_t UINT32;
    191192typedef wchar_t WCHAR;
  • code/trunk/src/external/tolua/lua/package.lua

    r8351 r8363  
    135135        i = i+1
    136136    end
     137
     138    output('\n')
     139    output('#ifdef ORXONOX_RELEASE\n')
     140    output('#  define TOLUA_RELEASE\n')
     141    output('#endif\n')
    137142
    138143    if self:requirecollection(_collect) then
Note: See TracChangeset for help on using the changeset viewer.