From 7c40f060cced8fa790768526135638dde6e0d3c7 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Fri, 6 Mar 2015 17:42:20 +0800 Subject: [PATCH] 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(+) diff --git a/build/win32/vs10/cogl-build-defines.props b/build/win32/vs10/cogl-build-defines.props index eefe1a6b9..a5cd30a5c 100644 --- a/build/win32/vs10/cogl-build-defines.props +++ b/build/win32/vs10/cogl-build-defines.props @@ -24,6 +24,8 @@ G_DISABLE_SINGLE_INCLUDES;%(PreprocessorDefinitions) msvc_recommended_pragmas.h;%(ForcedIncludeFiles) %(DisableSpecificWarnings) + true + /d2Zi+ %(AdditionalOptions) glib-2.0.lib;gobject-2.0.lib;%(AdditionalDependencies) diff --git a/build/win32/vs9/cogl-build-defines.vsprops b/build/win32/vs9/cogl-build-defines.vsprops index 5fc6282c7..4f554df3a 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" />