From ba83ce982d0d4900e92fd80fa43cbaf56c49d4fb Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 14 Apr 2011 06:17:06 +0000 Subject: Switch from solution dependencies to project-to-project dependencies. Convert pre-build event to a custom build step. Store intermediates for each project in their own subdirectory for tidyness, to avoid overwriting, and to fix parallel builds. Use automatic library dependencies from required projects. These changes eliminate unnecessary rebuilds in MSVC 2010. --- infrastructure/msvc/2010/bbackupctl.vcxproj | 2 +- infrastructure/msvc/2010/bbackupd.vcxproj | 18 +++++++++++++++--- infrastructure/msvc/2010/bbstoreaccounts.vcxproj | 14 +++++++++++--- infrastructure/msvc/2010/bbstored.vcxproj | 12 ++++++++++-- infrastructure/msvc/2010/boxbackup.sln | 8 -------- infrastructure/msvc/2010/boxquery.vcxproj | 2 +- infrastructure/msvc/2010/common.vcxproj | 17 ++++++++++++----- infrastructure/msvc/2010/libbackupstore.vcxproj | 2 +- infrastructure/msvc/2010/qdbm.vcxproj | 2 +- infrastructure/msvc/2010/win32test.vcxproj | 2 +- 10 files changed, 53 insertions(+), 26 deletions(-) (limited to 'infrastructure') diff --git a/infrastructure/msvc/2010/bbackupctl.vcxproj b/infrastructure/msvc/2010/bbackupctl.vcxproj index 294e33aa..0b6f76f3 100644 --- a/infrastructure/msvc/2010/bbackupctl.vcxproj +++ b/infrastructure/msvc/2010/bbackupctl.vcxproj @@ -40,7 +40,7 @@ <_ProjectFileVersion>10.0.30319.1 $(ProjectDir)..\..\..\$(Configuration)\ - $(ProjectDir)..\..\..\$(Configuration)\ + $(ProjectDir)..\..\..\$(Configuration)\$(ProjectName)\ true ..\..\..\Release\ ..\..\..\Release\ diff --git a/infrastructure/msvc/2010/bbackupd.vcxproj b/infrastructure/msvc/2010/bbackupd.vcxproj index 395923ff..1a181be2 100644 --- a/infrastructure/msvc/2010/bbackupd.vcxproj +++ b/infrastructure/msvc/2010/bbackupd.vcxproj @@ -40,8 +40,8 @@ <_ProjectFileVersion>10.0.30319.1 - ..\..\..\$(Configuration)\ - ..\..\..\$(Configuration)\ + $(ProjectDir)..\..\..\$(Configuration)\ + $(ProjectDir)..\..\..\$(Configuration)\$(ProjectName)\ true ..\..\..\Release\ ..\..\..\Release\ @@ -61,7 +61,7 @@ EditAndContinue - VssApi.lib;Ws2_32.lib;Advapi32.lib;User32.lib;$(ProjectDir)..\..\..\..\zlib\lib\zdll.lib;$(ProjectDir)..\..\..\..\openssl\lib\libeay32.lib;$(ProjectDir)..\..\..\..\openssl\lib\ssleay32.lib;$(ProjectDir)..\..\..\$(Configuration)\common.lib;$(ProjectDir)..\..\..\$(Configuration)\qdbm.lib;$(ProjectDir)..\..\..\..\pcre\build\vc2008\debug\pcreposix78.lib;$(ProjectDir)..\..\..\..\pcre\build\vc2008\debug\pcre78.lib;%(AdditionalDependencies) + VssApi.lib;Ws2_32.lib;Advapi32.lib;User32.lib;$(ProjectDir)..\..\..\..\zlib\lib\zdll.lib;$(ProjectDir)..\..\..\..\openssl\lib\libeay32.lib;$(ProjectDir)..\..\..\..\openssl\lib\ssleay32.lib;$(ProjectDir)..\..\..\..\pcre\build\vc2008\debug\pcreposix78.lib;$(ProjectDir)..\..\..\..\pcre\build\vc2008\debug\pcre78.lib;%(AdditionalDependencies) $(OutDir)bbackupd.exe false true @@ -121,6 +121,18 @@ {a089cee6-ebf0-4232-a0c0-74850a8127a6} false + true + false + true + false + + + {72af22a7-b339-4fdf-b6ae-ca6522d4bb8d} + true + false + false + true + false diff --git a/infrastructure/msvc/2010/bbstoreaccounts.vcxproj b/infrastructure/msvc/2010/bbstoreaccounts.vcxproj index fa628a2d..feb3e350 100644 --- a/infrastructure/msvc/2010/bbstoreaccounts.vcxproj +++ b/infrastructure/msvc/2010/bbstoreaccounts.vcxproj @@ -37,10 +37,10 @@ - ..\..\..\$(Configuration)\ + $(ProjectDir)..\..\..\$(Configuration)\ - ..\..\..\$(Configuration)\ + $(ProjectDir)..\..\..\$(Configuration)\$(ProjectName)\ @@ -52,7 +52,7 @@ true - Ws2_32.lib;Advapi32.lib;User32.lib;$(ProjectDir)..\..\..\..\zlib\lib\zdll.lib;$(ProjectDir)..\..\..\..\openssl\lib\libeay32.lib;$(ProjectDir)..\..\..\..\openssl\lib\ssleay32.lib;$(ProjectDir)..\..\..\$(Configuration)\libbackupstore.lib;$(ProjectDir)..\..\..\$(Configuration)\common.lib;$(ProjectDir)..\..\..\..\pcre\build\vc2008\debug\pcreposix78.lib;$(ProjectDir)..\..\..\..\pcre\build\vc2008\debug\pcre78.lib;%(AdditionalDependencies) + Ws2_32.lib;Advapi32.lib;User32.lib;$(ProjectDir)..\..\..\..\zlib\lib\zdll.lib;$(ProjectDir)..\..\..\..\openssl\lib\libeay32.lib;$(ProjectDir)..\..\..\..\openssl\lib\ssleay32.lib;$(ProjectDir)..\..\..\..\pcre\build\vc2008\debug\pcreposix78.lib;$(ProjectDir)..\..\..\..\pcre\build\vc2008\debug\pcre78.lib;%(AdditionalDependencies) @@ -71,6 +71,14 @@ + + + {a089cee6-ebf0-4232-a0c0-74850a8127a6} + + + {97d89aef-2be4-4e34-8703-03ba67bf4494} + + diff --git a/infrastructure/msvc/2010/bbstored.vcxproj b/infrastructure/msvc/2010/bbstored.vcxproj index bedb19e7..6837e82e 100644 --- a/infrastructure/msvc/2010/bbstored.vcxproj +++ b/infrastructure/msvc/2010/bbstored.vcxproj @@ -37,10 +37,10 @@ - ..\..\..\$(Configuration)\ + $(ProjectDir)..\..\..\$(Configuration)\ - ..\..\..\$(Configuration)\ + $(ProjectDir)..\..\..\$(Configuration)\$(ProjectName)\ @@ -84,6 +84,14 @@ + + + {a089cee6-ebf0-4232-a0c0-74850a8127a6} + + + {97d89aef-2be4-4e34-8703-03ba67bf4494} + + diff --git a/infrastructure/msvc/2010/boxbackup.sln b/infrastructure/msvc/2010/boxbackup.sln index a58742bd..643ae345 100644 --- a/infrastructure/msvc/2010/boxbackup.sln +++ b/infrastructure/msvc/2010/boxbackup.sln @@ -16,18 +16,10 @@ EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "qdbm", "qdbm.vcxproj", "{72AF22A7-B339-4FDF-B6AE-CA6522D4BB8D}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "bbstored", "bbstored.vcxproj", "{D8404314-73DD-4270-8205-BE677F8FDAC7}" - ProjectSection(ProjectDependencies) = postProject - {A089CEE6-EBF0-4232-A0C0-74850A8127A6} = {A089CEE6-EBF0-4232-A0C0-74850A8127A6} - {97D89AEF-2BE4-4E34-8703-03BA67BF4494} = {97D89AEF-2BE4-4E34-8703-03BA67BF4494} - EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libbackupstore", "libbackupstore.vcxproj", "{97D89AEF-2BE4-4E34-8703-03BA67BF4494}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "bbstoreaccounts", "bbstoreaccounts.vcxproj", "{C8A1509C-F91B-4140-BD51-B87FF24FB95F}" - ProjectSection(ProjectDependencies) = postProject - {A089CEE6-EBF0-4232-A0C0-74850A8127A6} = {A089CEE6-EBF0-4232-A0C0-74850A8127A6} - {97D89AEF-2BE4-4E34-8703-03BA67BF4494} = {97D89AEF-2BE4-4E34-8703-03BA67BF4494} - EndProjectSection EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/infrastructure/msvc/2010/boxquery.vcxproj b/infrastructure/msvc/2010/boxquery.vcxproj index 6db68c2e..fbe8b8d8 100644 --- a/infrastructure/msvc/2010/boxquery.vcxproj +++ b/infrastructure/msvc/2010/boxquery.vcxproj @@ -41,7 +41,7 @@ <_ProjectFileVersion>10.0.30319.1 $(ProjectDir)..\..\..\$(Configuration)\ - $(ProjectDir)..\..\..\$(Configuration)\ + $(ProjectDir)..\..\..\$(Configuration)\$(ProjectName)\ true ..\..\..\Release\ ..\..\..\Release\ diff --git a/infrastructure/msvc/2010/common.vcxproj b/infrastructure/msvc/2010/common.vcxproj index 19adf4ce..5856391b 100644 --- a/infrastructure/msvc/2010/common.vcxproj +++ b/infrastructure/msvc/2010/common.vcxproj @@ -40,16 +40,14 @@ <_ProjectFileVersion>10.0.30319.1 $(ProjectDir)..\..\..\$(Configuration)\ - $(ProjectDir)..\..\..\$(Configuration)\ + $(ProjectDir)..\..\..\$(Configuration)\$(ProjectName)\ ..\..\..\Release\ ..\..\..\Release\ $(IncludePath) + Compile - - Determining Version Number - perl $(ProjectDir)..\getversion.pl - + Disabled $(ProjectDir)..\..\..\lib\backupclient;$(ProjectDir)..\..\..\lib\common;$(ProjectDir)..\..\..\lib\compress;$(ProjectDir)..\..\..\lib\crypto;$(ProjectDir)..\..\..\lib\server;$(ProjectDir)..\..\..\lib\raidfile;$(ProjectDir)..\..\..\lib\win32;$(ProjectDir)..\..\..\..\openssl\include;$(ProjectDir)..\..\..\..\zlib\include;$(ProjectDir)..\..\..\..\pcre @@ -66,6 +64,15 @@ $(OutDir)common.lib + + perl $(ProjectDir)..\getversion.pl + + + Determining Version Number + + + $(ProjectDir)..\..\..\lib\common\BoxVersion.h;%(Outputs) + diff --git a/infrastructure/msvc/2010/libbackupstore.vcxproj b/infrastructure/msvc/2010/libbackupstore.vcxproj index 4ee8242e..c009db83 100644 --- a/infrastructure/msvc/2010/libbackupstore.vcxproj +++ b/infrastructure/msvc/2010/libbackupstore.vcxproj @@ -41,7 +41,7 @@ .lib - $(ProjectDir)..\..\..\$(Configuration)\ + $(ProjectDir)..\..\..\$(Configuration)\$(ProjectName)\ diff --git a/infrastructure/msvc/2010/qdbm.vcxproj b/infrastructure/msvc/2010/qdbm.vcxproj index 21dc04c3..0bfb4f91 100644 --- a/infrastructure/msvc/2010/qdbm.vcxproj +++ b/infrastructure/msvc/2010/qdbm.vcxproj @@ -39,7 +39,7 @@ .lib $(ProjectDir)..\..\..\$(Configuration)\ - $(ProjectDir)..\..\..\$(Configuration)\ + $(ProjectDir)..\..\..\$(Configuration)\$(ProjectName)\ diff --git a/infrastructure/msvc/2010/win32test.vcxproj b/infrastructure/msvc/2010/win32test.vcxproj index b605805b..02f196d2 100644 --- a/infrastructure/msvc/2010/win32test.vcxproj +++ b/infrastructure/msvc/2010/win32test.vcxproj @@ -40,7 +40,7 @@ <_ProjectFileVersion>10.0.30319.1 $(ProjectDir)..\..\..\$(Configuration)\ - $(ProjectDir)..\..\..\$(Configuration)\ + $(ProjectDir)..\..\..\$(Configuration)\$(ProjectName)\ true ..\..\..\Release\ ..\..\..\Release\ -- cgit v1.2.3