summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2015-03-06 17:42:20 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2015-03-06 17:42:20 +0800
commit7c40f060cced8fa790768526135638dde6e0d3c7 (patch)
tree217ac9eb702c54f980f77beef779abea894867b4
parent4b1b912b452ac972b414d9b91980fda8c2349cc3 (diff)
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.
-rw-r--r--build/win32/vs10/cogl-build-defines.props2
-rw-r--r--build/win32/vs9/cogl-build-defines.vsprops1
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 eefe1a6b..a5cd30a5 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 5fc6282c..4f554df3 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"