MSVC Builds: Speed Up Release Builds
authorChun-wei Fan <fanchunwei@src.gnome.org>
Thu, 5 Mar 2015 09:40:58 +0000 (17:40 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Thu, 5 Mar 2015 09:40:58 +0000 (17:40 +0800)
Use the multi-processor compilation option for the compiler, which can cut
down build times of release builds by quite a bit.  This would emit a brief
warning for debug builds as they use /Gm, but otherwise the build would
continue normally.

build/win32/vs10/atk-build-defines.props
build/win32/vs9/atk-build-defines.vsprops

index a0bec90..ff3ab78 100644 (file)
@@ -16,6 +16,7 @@
       <AdditionalIncludeDirectories>..\..\..;..\..\..\atk;$(GLibEtcInstallRoot)\include;$(GLibEtcInstallRoot)\include\glib-2.0;$(GLibEtcInstallRoot)\lib\glib-2.0\include\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
       <PreprocessorDefinitions>HAVE_CONFIG_H;G_DISABLE_SINGLE_INCLUDES;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <ForcedIncludeFiles>msvc_recommended_pragmas.h;%(ForcedIncludeFiles)</ForcedIncludeFiles>
+      <MultiProcessorCompilation>true</MultiProcessorCompilation>
     </ClCompile>
     <Link>
       <AdditionalDependencies>glib-2.0.lib;gobject-2.0.lib;gmodule-2.0.lib;intl.lib;%(AdditionalDependencies)</AdditionalDependencies>
index 351d19e..76665ce 100644 (file)
@@ -12,6 +12,7 @@
                AdditionalIncludeDirectories="..\..\..;..\..\..\atk;$(GLibEtcInstallRoot)\include;$(GLibEtcInstallRoot)\include\glib-2.0;$(GLibEtcInstallRoot)\lib\glib-2.0\include\"
                PreprocessorDefinitions="HAVE_CONFIG_H;G_DISABLE_SINGLE_INCLUDES"
                ForcedIncludeFiles="msvc_recommended_pragmas.h"
+               AdditionalOptions="/MP"
        />
        <Tool
                Name="VCLinkerTool"