From db570d20c4e9950e3d81c9c721118d24a613d142 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Mon, 9 Jun 2014 11:11:45 +0800 Subject: [PATCH] MSVC 2010+ Projects: Update "Installation" Process Currently, due to the way that Visual Studio 2010+ projects are handled, the "install" project does not re-build upon changes to the sources, as it does not believe that its dependencies have changed, although the changed sources are automatically recompiled. This means that if a part or more of the solution does not build, or if the sources need some other fixes or enhancements, the up-to-date build is not copied automatically, which can be misleading. Improve on the situation by forcing the "install" project to trigger its rebuild, so that the updated binaries can be copied. This does trigger an MSBuild warning, but having that warning is way better than not having an up-to-date build, especially during testing and development. --- build/win32/vs10/atk-install.propsin | 12 ++++++++++-- build/win32/vs10/install.vcxproj | 31 ++++++++++++++++--------------- 2 files changed, 26 insertions(+), 17 deletions(-) diff --git a/build/win32/vs10/atk-install.propsin b/build/win32/vs10/atk-install.propsin index f952345..d7df041 100644 --- a/build/win32/vs10/atk-install.propsin +++ b/build/win32/vs10/atk-install.propsin @@ -4,15 +4,17 @@ + $(SolutionDir)$(Configuration)\$(Platform)\bin + $(BinDir)\$(AtkDllPrefix)atk(AtkDllSuffix).dll mkdir $(CopyDir)\bin -copy $(SolutionDir)$(Configuration)\$(Platform)\bin\*.dll $(CopyDir)\bin +copy $(BinDir)\*.dll $(CopyDir)\bin mkdir $(CopyDir)\lib -copy $(SolutionDir)$(Configuration)\$(Platform)\bin\*-$(ApiVersion).lib $(CopyDir)\lib +copy $(BinDir)\*-$(ApiVersion).lib $(CopyDir)\lib mkdir $(CopyDir)\include\atk-$(ApiVersion)\atk @@ -21,6 +23,12 @@ mkdir $(CopyDir)\include\atk-$(ApiVersion)\atk + + $(BinDir) + + + $(InstalledDlls) + $(AtkDoInstall) diff --git a/build/win32/vs10/install.vcxproj b/build/win32/vs10/install.vcxproj index f2b4c39..8068ddb 100644 --- a/build/win32/vs10/install.vcxproj +++ b/build/win32/vs10/install.vcxproj @@ -77,29 +77,30 @@ - - $(AtkDoInstall) - - - $(AtkDoInstall) - - - $(AtkDoInstall) - - - $(AtkDoInstall) - - - $(AtkDoInstall) - + + Installing Build Results... + $(AtkDoInstall) + $(InstalledDlls);%(Outputs) + Installing Build Results... + $(AtkDoInstall) + $(InstalledDlls);%(Outputs) + Installing Build Results... + $(AtkDoInstall) + $(InstalledDlls);%(Outputs) + Installing Build Results... + $(AtkDoInstall) + $(InstalledDlls);%(Outputs) + + + {86eacd59-f69f-4aad-854b-aa03d5447360} false -- 2.11.4.GIT