diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2014-01-21 15:26:50 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2014-01-21 15:26:50 +0800 |
commit | a24c80dbc8632ce7c38f32f991c9998381c5de54 (patch) | |
tree | 40fc52a7edfb5599abb52c82f8a581049f46ea9f /build/win32/vs10/gi-gen-srcs.props | |
parent | c2876dfc7c395c51226f98501832951856e984ff (diff) | |
download | gobject-introspection-a24c80dbc8632ce7c38f32f991c9998381c5de54.tar.gz |
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.
Diffstat (limited to 'build/win32/vs10/gi-gen-srcs.props')
-rw-r--r-- | build/win32/vs10/gi-gen-srcs.props | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/build/win32/vs10/gi-gen-srcs.props b/build/win32/vs10/gi-gen-srcs.props new file mode 100644 index 00000000..0cda3d54 --- /dev/null +++ b/build/win32/vs10/gi-gen-srcs.props @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ImportGroup Label="PropertySheets"> + <Import Project="gi-build-defines.props" /> + </ImportGroup> + <PropertyGroup Label="UserMacros"> + <CopyConfigH>copy ..\..\..\config.h.win32 ..\..\..\config.h</CopyConfigH> + <CopyGIRScanner>copy ..\..\..\tools\g-ir-scanner.in ..\..\..\tools\g-ir-scanner</CopyGIRScanner> + <CopyGIRDocTool>copy ..\..\..\tools\g-ir-doc-tool.in ..\..\..\tools\g-ir-doc-tool</CopyGIRDocTool> + <CopyGIRAnnotationTool>copy ..\..\..\tools\g-ir-annotation-tool.in ..\..\..\tools\g-ir-annotation-tool</CopyGIRAnnotationTool> + <GenerateGIRDef> +echo EXPORTS > $(DefDir)\girepository.def +cl -EP ..\..\..\girepository\girepository.symbols >> $(DefDir)\girepository.def + </GenerateGIRDef> + </PropertyGroup> + <PropertyGroup> + <_PropertySheetDisplayName>gigensrcsprops</_PropertySheetDisplayName> + </PropertyGroup> + <ItemGroup> + <BuildMacro Include="CopyConfigH"> + <Value>$(CopyConfigH)</Value> + </BuildMacro> + <BuildMacro Include="CopyGIRScanner"> + <Value>$(CopyGIRScanner)</Value> + </BuildMacro> + <BuildMacro Include="CopyGIRDocTool"> + <Value>$(CopyGIRDocTool)</Value> + </BuildMacro> + <BuildMacro Include="CopyGIRAnnotationTool"> + <Value>$(CopyGIRAnnotationTool)</Value> + </BuildMacro> + <BuildMacro Include="GenerateGIRDef"> + <Value>$(GenerateGIRDef)</Value> + </BuildMacro> + </ItemGroup> +</Project> |