Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8368 for code/trunk/src


Ignore:
Timestamp:
May 1, 2011, 3:09:28 AM (13 years ago)
Author:
rgrieder
Message:

Added CMake configuration type "RelForDevs", which replaces "RelWithDebInfo". That latter is now equivalent to "Release", but with symbols.
Also, I removed debug symbol generation for Release and MinSizeRel when compiling with MSVC.

The new configuration should be used as standard Release mode when developing. The other three release configurations are for actual installed binaries (and behave again as the name suggests).

Location:
code/trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/OrxonoxConfig.cmake

    r8363 r8368  
    7575# about the active one we have to define the macro for each configuration
    7676ADD_COMPILER_FLAGS("-DCMAKE_Debug_BUILD"          Debug)
     77ADD_COMPILER_FLAGS("-DCMAKE_RelForDevs_BUILD"     RelForDevs)
    7778ADD_COMPILER_FLAGS("-DCMAKE_Release_BUILD"        Release)
    7879ADD_COMPILER_FLAGS("-DCMAKE_RelWithDebInfo_BUILD" RelWithDebInfo)
  • code/trunk/src/OrxonoxConfig.h.in

    r8363 r8368  
    179179*/
    180180
    181 // Configurations Release and MinSizeRel are designed for redistribution while
    182 // RelWithDebInfo is more for development
     181// Configurations Release, RelWithDebInfo and MinSizeRel are designed for
     182// redistribution while RelForDevs is for development purposes
    183183// ORXONOX_RELEASE simplifies this a little bit
    184 #if defined(CMAKE_Release_BUILD) || defined(CMAKE_MinSizeRel_BUILD)
     184#if defined(CMAKE_Release_BUILD) || defined(CMAKE_MinSizeRel_BUILD) \
     185    || defined(CMAKE_RelWithDebInfo_BUILD)
    185186#  define ORXONOX_RELEASE
    186187#endif
  • code/trunk/src/orxonox-main.vcproj.user.in

    r7420 r8368  
    88                <Configuration
    99                        Name="Debug|${MSVC_PLATFORM}"
     10                        >
     11                        <DebugSettings
     12                                WorkingDirectory="${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(OutDir)"
     13                                Environment="PATH=${RUNTIME_LIBRARY_DIRECTORY};%PATH%"
     14                                EnvironmentMerge="true"
     15                        />
     16                </Configuration>
     17                <Configuration
     18                        Name="RelForDevs|${MSVC_PLATFORM}"
    1019                        >
    1120                        <DebugSettings
  • code/trunk/src/orxonox-main.vcxproj.user.in

    r8351 r8368  
    22<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    33  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|${MSVC_PLATFORM}'">
     4    <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
     5    <LocalDebuggerEnvironment>PATH=${RUNTIME_LIBRARY_DIRECTORY};%PATH%</LocalDebuggerEnvironment>
     6    <LocalDebuggerWorkingDirectory>$(Outdir)</LocalDebuggerWorkingDirectory>
     7  </PropertyGroup>
     8  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='RelForDevs|${MSVC_PLATFORM}'">
    49    <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
    510    <LocalDebuggerEnvironment>PATH=${RUNTIME_LIBRARY_DIRECTORY};%PATH%</LocalDebuggerEnvironment>
Note: See TracChangeset for help on using the changeset viewer.