From a24c80dbc8632ce7c38f32f991c9998381c5de54 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Tue, 21 Jan 2014 15:26:50 +0800 Subject: Rework The Visual Studio 2010 Build Process This patch makes the build of G-I on Visual Studio 2010 into a two-step process, as it would make it clearer and easier to the one building G-I by: -Splitting up the property sheets into multiple parts, where pre-configured code (which is currently shipped with the tarball) is copied using custom build steps, so that they can be re-copied when they are updated. This also removes the need for setting environment variables before launching the Visual Studio Project to build the G-I DLL, the tools written in C and the _giscanner Python2 module. The Python2 paths (set to Python 2.7.x) are now set in a property sheet, which can be updated quite easily, if needed. -Directing people to use the set of NMake Makefiles to build the introspection files for GLib, and also the .gir's that are shipped with G-I, which was added in a previous commit, as it would make it clearer what are needed to build the introspection files. --- build/win32/vs10/gi-install.propsin | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 build/win32/vs10/gi-install.propsin (limited to 'build/win32/vs10/gi-install.propsin') diff --git a/build/win32/vs10/gi-install.propsin b/build/win32/vs10/gi-install.propsin new file mode 100644 index 00000000..b576c3b6 --- /dev/null +++ b/build/win32/vs10/gi-install.propsin @@ -0,0 +1,42 @@ + + + + + + + +mkdir $(CopyDir) +mkdir $(CopyDir)\bin + +copy $(SolutionDir)$(Configuration)\$(Platform)\bin\$(LibGIDllPrefix)girepository$(LibGIDllSuffix).dll $(CopyDir)\bin +copy $(SolutionDir)$(Configuration)\$(Platform)\bin\g-ir-compiler.exe $(CopyDir)\bin +copy $(SolutionDir)$(Configuration)\$(Platform)\bin\g-ir-generate.exe $(CopyDir)\bin +copy ..\..\..\tools\g-ir-annotation-tool $(CopyDir)\bin +copy ..\..\..\tools\g-ir-doc-tool $(CopyDir)\bin +copy ..\..\..\tools\g-ir-scanner $(CopyDir)\bin + +#include "gir.vs10.install" + +copy $(SolutionDir)$(Configuration)\$(Platform)\bin\_giscanner.pyd $(CopyDir)\lib\gobject-introspection\giscanner + +mkdir $(CopyDir)\share\gir-$(ApiVersion) +mkdir $(CopyDir)\share\gobject-introspection-$(ApiVersion) +copy ..\..\..\girepository\gdump.c $(CopyDir)\share\gobject-introspection-$(ApiVersion) + +mkdir $(CopyDir)\lib\girepository-$(ApiVersion) +copy $(SolutionDir)$(Configuration)\$(Platform)\bin\girepository-$(ApiVersion).lib $(CopyDir)\lib + +echo Please note that building GObject-Introspection with Visual Studio is now a 2-step process +echo Please open the appropriate Visual Studio (or Windows SDK) command prompt and use the NMake Makefile +echo in SRC_ROOT\build\gi-introspection-msvc.mak to build the introspection files + + + + <_PropertySheetDisplayName>giinstallprops + + + + $(GIDoInstall) + + + -- cgit v1.2.1