Changeset 420 for cafu/trunk

Show
Ignore:
Timestamp:
11/12/11 13:01:50 (6 months ago)
Author:
Carsten
Message:

Windows builds:
Under Windows (too), all our code now uses the DLL-specific version of the run-time library,
see  http://msdn.microsoft.com/en-us/library/2kzt1wy3.aspx for details.

The change was done to finally get rid of the "DLL Boundary" as summarized at  http://msdn.microsoft.com/en-us/library/ms235460.aspx

For Subversion users, updating an existing working-copy to or beyond this revision requires running these commands

rd /s ExtLibs\wxWidgets\build\msw\vc10_mswu
rd /s ExtLibs\wxWidgets\build\msw\vc10_mswud
rd /s ExtLibs\wxWidgets\lib\vc10_lib

before scons is run next.

As a consequence of this change, deploying binary releases becomes slightly more complicated than before,
because we also have to ship the proper run-time libraries together with our applications.
See  http://msdn.microsoft.com/en-us/library/dd293574.aspx for details.

Location:
cafu/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • cafu/trunk/SConscript

    r413 r420  
    170170            {"vc8": "vs2005", "vc9": "vs2008", "vc10": "vs2010"}[compiler] + "/" + 
    171171            ("x64" if envCaWE["TARGET_ARCH"] in ["x86_64", "amd64", "emt64"] else "x86")]) 
    172         envCaWE.Append(LIBS=["fbxsdk-2012.1-mtd" if buildMode=="dbg" else "fbxsdk-2012.1-mt", "wininet"]) 
     172        envCaWE.Append(LIBS=["fbxsdk-2012.1-mdd" if buildMode=="dbg" else "fbxsdk-2012.1-md", "wininet"]) 
    173173 
    174174elif sys.platform=="linux2": 
  • cafu/trunk/SConstruct

    r410 r420  
    6666        # Environment for debug builds: 
    6767        envDebug=envCommon.Clone(); 
    68         envDebug.Append(CCFLAGS=Split("/MTd /Od /Z7 /RTC1")); 
     68        envDebug.Append(CCFLAGS=Split("/MDd /Od /Z7 /RTC1")); 
    6969        envDebug.Append(LINKFLAGS=["/debug"]); 
    7070 
    7171        # Environment for release builds: 
    7272        envRelease=envCommon.Clone(); 
    73         envRelease.Append(CCFLAGS=Split("/MT /O2 /Ob2")); 
     73        envRelease.Append(CCFLAGS=Split("/MD /O2 /Ob2")); 
    7474 
    7575        # Environment for profile builds: 
    7676        envProfile=envCommon.Clone(); 
    77         envProfile.Append(CCFLAGS=Split("/MT /O2 /Ob2 /Z7")); 
     77        envProfile.Append(CCFLAGS=Split("/MD /O2 /Ob2 /Z7")); 
    7878        envProfile.Append(LINKFLAGS=["/fixed:no", "/debug"]); 
    7979 
     
    106106        # Environment for debug builds: 
    107107        envDebug=envCommon.Clone(); 
    108         envDebug.Append(CCFLAGS=Split("/MTd /Od /Z7 /RTC1")); 
     108        envDebug.Append(CCFLAGS=Split("/MDd /Od /Z7 /RTC1")); 
    109109        envDebug.Append(LINKFLAGS=["/debug"]); 
    110110 
    111111        # Environment for release builds: 
    112112        envRelease=envCommon.Clone(); 
    113         envRelease.Append(CCFLAGS=Split("/MT /O2 /Ob2")); 
     113        envRelease.Append(CCFLAGS=Split("/MD /O2 /Ob2")); 
    114114 
    115115        # Environment for profile builds: 
    116116        envProfile=envCommon.Clone(); 
    117         envProfile.Append(CCFLAGS=Split("/MT /O2 /Ob2 /Z7")); 
     117        envProfile.Append(CCFLAGS=Split("/MD /O2 /Ob2 /Z7")); 
    118118        envProfile.Append(LINKFLAGS=["/fixed:no", "/debug"]); 
    119119 
     
    140140        # Environment for debug builds: 
    141141        envDebug=envCommon.Clone(); 
    142         envDebug.Append(CCFLAGS=Split("/MTd /Od /Z7 /RTC1")); 
     142        envDebug.Append(CCFLAGS=Split("/MDd /Od /Z7 /RTC1")); 
    143143        envDebug.Append(LINKFLAGS=["/debug"]); 
    144144 
    145145        # Environment for release builds: 
    146146        envRelease=envCommon.Clone(); 
    147         envRelease.Append(CCFLAGS=Split("/MT /O2 /Ob2")); 
     147        envRelease.Append(CCFLAGS=Split("/MD /O2 /Ob2")); 
    148148 
    149149        # Environment for profile builds: 
    150150        envProfile=envCommon.Clone(); 
    151         envProfile.Append(CCFLAGS=Split("/MT /O2 /Ob2 /Z7")); 
     151        envProfile.Append(CCFLAGS=Split("/MD /O2 /Ob2 /Z7")); 
    152152        envProfile.Append(LINKFLAGS=["/fixed:no", "/debug"]); 
    153153 
     
    279279        else:                                                          target_cpu="" 
    280280 
    281         result=envDebug.  Execute("nmake /nologo /f makefile.vc BUILD=debug   SHARED=0 RUNTIME_LIBS=static COMPILER_PREFIX="+compiler+target_cpu, chdir="ExtLibs/wxWidgets/build/msw"); 
     281        result=envDebug.  Execute("nmake /nologo /f makefile.vc BUILD=debug   SHARED=0 COMPILER_PREFIX="+compiler+target_cpu, chdir="ExtLibs/wxWidgets/build/msw"); 
    282282        if (result!=0): envDebug.  Exit(result); 
    283         result=envRelease.Execute("nmake /nologo /f makefile.vc BUILD=release SHARED=0 RUNTIME_LIBS=static COMPILER_PREFIX="+compiler+target_cpu, chdir="ExtLibs/wxWidgets/build/msw"); 
     283        result=envRelease.Execute("nmake /nologo /f makefile.vc BUILD=release SHARED=0 COMPILER_PREFIX="+compiler+target_cpu, chdir="ExtLibs/wxWidgets/build/msw"); 
    284284        if (result!=0): envRelease.Exit(result); 
    285285        print "";   # Print just another empty line for better visual separation.