[json-glib] MSVC Builds: Speed Up Release Builds



commit c642f6644f82b555b348d3c364efd9961155528d
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Fri Mar 6 16:11:44 2015 +0800

    MSVC Builds: Speed Up Release Builds
    
    Use the multiprocessor compilation (/MP) option, which can cut down release
    build times by quite a bit.  This will emit a brief warning on debug
    builds, but otherwise the build will proceed as normal.
    
    Also use the /d2Zi+ option for MSVC 2010 (and later) builds so that more
    useful information can be logged to the .pdb files for the release builds.

 build/win32/vs10/json-glib-build-defines.props  |    2 ++
 build/win32/vs9/json-glib-build-defines.vsprops |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/build/win32/vs10/json-glib-build-defines.props b/build/win32/vs10/json-glib-build-defines.props
index fc92a8b..b6267cc 100644
--- a/build/win32/vs10/json-glib-build-defines.props
+++ b/build/win32/vs10/json-glib-build-defines.props
@@ -16,6 +16,8 @@
       
<AdditionalIncludeDirectories>..\..\..;..\..\..\json-glib;$(GlibEtcInstallRoot)\include;$(GlibEtcInstallRoot)\include\glib-2.0;$(GlibEtcInstallRoot)\lib\glib-2.0\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
       <PreprocessorDefinitions>HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <ForcedIncludeFiles>msvc_recommended_pragmas.h;%(ForcedIncludeFiles)</ForcedIncludeFiles>
+      <MultiProcessorCompilation>true</MultiProcessorCompilation>
+      <AdditionalOptions>/d2Zi+ %(AdditionalOptions)</AdditionalOptions>
     </ClCompile>
     <Link>
       
<AdditionalDependencies>glib-2.0.lib;gobject-2.0.lib;gio-2.0.lib;%(AdditionalDependencies)</AdditionalDependencies>
diff --git a/build/win32/vs9/json-glib-build-defines.vsprops b/build/win32/vs9/json-glib-build-defines.vsprops
index 3d2dbc0..33c9afb 100644
--- a/build/win32/vs9/json-glib-build-defines.vsprops
+++ b/build/win32/vs9/json-glib-build-defines.vsprops
@@ -12,6 +12,7 @@
                
AdditionalIncludeDirectories="..\..\..;..\..\..\json-glib;$(GlibEtcInstallRoot)\include;$(GlibEtcInstallRoot)\include\glib-2.0;$(GlibEtcInstallRoot)\lib\glib-2.0\include"
                PreprocessorDefinitions="HAVE_CONFIG_H"
                ForcedIncludeFiles="msvc_recommended_pragmas.h"
+               AdditionalOptions="/MP"
        />
        <Tool
                Name="VCLinkerTool"


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