From: Chun-wei Fan Date: Mon, 9 Jun 2014 02:27:36 +0000 (+0800) Subject: MSVC 2010+ Projects: Update "Installation" Process X-Git-Tag: 2.41.1~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=91b9aef0c9988fcab6adb7be3af46953c1c558c9;p=platform%2Fupstream%2Fglib.git 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. --- diff --git a/build/win32/vs10/glib-install.props b/build/win32/vs10/glib-install.props index 0a55052..37b4c46 100644 --- a/build/win32/vs10/glib-install.props +++ b/build/win32/vs10/glib-install.props @@ -4,28 +4,33 @@ + $(SolutionDir)$(Configuration)\$(Platform)\bin + $(BinDir)\$(GlibDllPrefix)glib(GlibDllSuffix).dll;$(BinDir)\$(GlibDllPrefix)gthread(GlibDllSuffix).dll;$(BinDir)\$(GlibDllPrefix)gmodule(GlibDllSuffix).dll;$(BinDir)\$(GlibDllPrefix)gobject(GlibDllSuffix).dll;$(BinDir)\$(GlibDllPrefix)gio(GlibDllSuffix).dll + $(BinDir)\glib-genmarshal.exe;$(BinDir)\glib-compile-schemas.exe;$(BinDir)\gsettings.exe;$(BinDir)\glib-compile-resources.exe;$(BinDir)\gresource.exe;$(BinDir)\gio-querymodules.exe;$(BinDir)\gdbus.exe + $(BinDir)\gspawn-win32-helper.exe;$(BinDir)\gspawn-win32-helper-console.exe + $(BinDir)\gspawn-win64-helper.exe;$(BinDir)\gspawn-win64-helper-console.exe mkdir $(CopyDir) mkdir $(CopyDir)\bin -copy $(SolutionDir)$(Configuration)\$(Platform)\bin\*.dll $(CopyDir)\bin +copy $(BinDir)\*.dll $(CopyDir)\bin -copy $(SolutionDir)$(Configuration)\$(Platform)\bin\glib-genmarshal.exe $(CopyDir)\bin +copy $(BinDir)\glib-genmarshal.exe $(CopyDir)\bin -copy $(SolutionDir)$(Configuration)\$(Platform)\bin\gspawn-win*-helper*.exe $(CopyDir)\bin +copy $(BinDir)\gspawn-win*-helper*.exe $(CopyDir)\bin -copy $(SolutionDir)$(Configuration)\$(Platform)\bin\glib-compile-schemas.exe $(CopyDir)\bin +copy $(BinDir)\glib-compile-schemas.exe $(CopyDir)\bin -copy $(SolutionDir)$(Configuration)\$(Platform)\bin\gsettings.exe $(CopyDir)\bin +copy $(BinDir)\gsettings.exe $(CopyDir)\bin -copy $(SolutionDir)$(Configuration)\$(Platform)\bin\glib-compile-resources.exe $(CopyDir)\bin +copy $(BinDir)\glib-compile-resources.exe $(CopyDir)\bin -copy $(SolutionDir)$(Configuration)\$(Platform)\bin\gresource.exe $(CopyDir)\bin +copy $(BinDir)\gresource.exe $(CopyDir)\bin -copy $(SolutionDir)$(Configuration)\$(Platform)\bin\gio-querymodules.exe $(CopyDir)\bin +copy $(BinDir)\gio-querymodules.exe $(CopyDir)\bin -copy $(SolutionDir)$(Configuration)\$(Platform)\bin\gdbus.exe $(CopyDir)\bin +copy $(BinDir)\gdbus.exe $(CopyDir)\bin copy ..\..\..\gio\gdbus-2.0\codegen\gdbus-codegen.in $(CopyDir)\bin\gdbus-codegen @@ -533,7 +538,7 @@ mkdir $(CopyDir)\lib\glib-$(ApiVersion)\include copy ..\..\..\glib\glibconfig.h $(CopyDir)\lib\glib-$(ApiVersion)\include -copy $(SolutionDir)$(Configuration)\$(Platform)\bin\*-$(ApiVersion).lib $(CopyDir)\lib +copy $(BinDir)\*-$(ApiVersion).lib $(CopyDir)\lib mkdir $(CopyDir)\share\glib-$(ApiVersion)\schemas @@ -551,6 +556,21 @@ copy ..\..\..\gio\gdbus-2.0\codegen\*.py $(CopyDir)\share\glib-$(ApiVersion)\cod <_PropertySheetDisplayName>glibinstallprops + + $(BinDir) + + + $(InstalledDlls) + + + $(InstalledBins) + + + $(InstalledWin32Bins) + + + $(InstalledX64Bins) + $(GlibDoInstall) diff --git a/build/win32/vs10/install.vcxproj b/build/win32/vs10/install.vcxproj index 0663334..219ac40 100644 --- a/build/win32/vs10/install.vcxproj +++ b/build/win32/vs10/install.vcxproj @@ -77,26 +77,30 @@ - - $(GlibDoInstall) - - - $(GlibDoInstall) - - - $(GlibDoInstall) - - - $(GlibDoInstall) - + + Installing Build Results... + $(GlibDoInstall) + $(InstalledDlls);$(InstalledBins);$(InstalledWin32Bins);%(Outputs) + Installing Build Results... + $(GlibDoInstall) + $(InstalledDlls);$(InstalledBins);$(InstalledX64Bins);%(Outputs) + Installing Build Results... + $(GlibDoInstall) + $(InstalledDlls);$(InstalledBins);$(InstalledWin32Bins);%(Outputs) + Installing Build Results... + $(GlibDoInstall) + $(InstalledDlls);$(InstalledBins);$(InstalledX64Bins);%(Outputs) + + + {f3d1583c-5613-4809-bd98-7cc1c1276f92} false