[cogl/cogl-1.20] Visual Studio Builds: Speed Up Release Builds



commit 7c40f060cced8fa790768526135638dde6e0d3c7
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Fri Mar 6 17:42:20 2015 +0800

    Visual Studio Builds: Speed Up Release Builds
    
    Use the multiprocessor compilation (/MP) option so that release build times
    can be cut down quite a bit.  This will generate a brief warning for debug
    builds as such builds use /Gm, but otherwise the build will proceed
    normally albeit it would be slower.
    
    Also use the /d2Zi+ flag for Visual Studio 2010 (and later) builds to log
    more useful information in the .pdb files that are generated, to aid
    debugging release builds when necessary.

 build/win32/vs10/cogl-build-defines.props  |    2 ++
 build/win32/vs9/cogl-build-defines.vsprops |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/build/win32/vs10/cogl-build-defines.props b/build/win32/vs10/cogl-build-defines.props
index eefe1a6..a5cd30a 100644
--- a/build/win32/vs10/cogl-build-defines.props
+++ b/build/win32/vs10/cogl-build-defines.props
@@ -24,6 +24,8 @@
       <PreprocessorDefinitions>G_DISABLE_SINGLE_INCLUDES;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <ForcedIncludeFiles>msvc_recommended_pragmas.h;%(ForcedIncludeFiles)</ForcedIncludeFiles>
       <DisableSpecificWarnings>%(DisableSpecificWarnings)</DisableSpecificWarnings>
+      <MultiProcessorCompilation>true</MultiProcessorCompilation>
+      <AdditionalOptions>/d2Zi+ %(AdditionalOptions)</AdditionalOptions>
     </ClCompile>
     <Link>
       <AdditionalDependencies>glib-2.0.lib;gobject-2.0.lib;%(AdditionalDependencies)</AdditionalDependencies>
diff --git a/build/win32/vs9/cogl-build-defines.vsprops b/build/win32/vs9/cogl-build-defines.vsprops
index 5fc6282..4f554df 100644
--- a/build/win32/vs9/cogl-build-defines.vsprops
+++ b/build/win32/vs9/cogl-build-defines.vsprops
@@ -12,6 +12,7 @@
                
AdditionalIncludeDirectories="..\..\..;..\..\..\cogl;..\..\..\cogl\winsys;$(GlibEtcInstallRoot)\include;$(GlibEtcInstallRoot)\include\glib-2.0;$(GlibEtcInstallRoot)\include\cairo;$(GlibEtcInstallRoot)\include\pango-1.0;$(GlibEtcInstallRoot)\include\gdk-pixbuf-2.0;$(GlibEtcInstallRoot)\lib\glib-2.0\include"
                PreprocessorDefinitions="G_DISABLE_SINGLE_INCLUDES"
                ForcedIncludeFiles="msvc_recommended_pragmas.h"
+               AdditionalOptions="/MP"
        />
        <Tool
                Name="VCLinkerTool"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]