[gtksourceview/gnome-3-24] build: Integrate introspection builds in MSVC projects



commit 91ffcb1da577ac4570758af25c271f77d8a73009
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Mon Sep 11 13:27:32 2017 +0800

    build: Integrate introspection builds in MSVC projects
    
    Allow introspection builds to be carried out in the Visual Studio
    projects directly, by using a project which wraps calls to the NMake
    Makefiles that is responsible for building the introspection files.
    
    Note that as in the GTK+ stack, this is not built (nor cleaned or
    rebuilt) by default, so the "gtksourceview-introspect" project must be
    explicitly selected and built (or cleaned or rebuilt) for the
    introspection files to be built and installed to appropriate locations
    under $(GlibEtcInstallRoot) from within the projects.  This will do a
    build of the GtkSourceview DLL and the "install" as usual before
    generating the introspection files.
    
    In order for this to work, one needs to:
    
    -Have GObject-Introspection built and "installed" under
     $(GlibEtcInstallRoot).  Check that PythonDir (or PythonDirX64 for x64
     builds) points to the same Python installation that was used to build
     GObject-Introspection.
    -Have the introspection files for GTK+-3.x under appropriate locations
     under $(GlibEtcInstallRoot)

 win32/vs10/Makefile.am                           |    1 +
 win32/vs10/gtksourceview-build-defines.props     |   10 ++
 win32/vs10/gtksourceview-introspect.vcxproj      |  103 ++++++++++++++++++++++
 win32/vs10/gtksourceview-version-paths.props.in  |    8 ++
 win32/vs10/gtksourceview.sln                     |    6 ++
 win32/vs11/Makefile.am                           |    1 +
 win32/vs12/Makefile.am                           |    3 +-
 win32/vs14/Makefile.am                           |    3 +-
 win32/vs15/Makefile.am                           |    3 +-
 win32/vs9/Makefile.am                            |    1 +
 win32/vs9/gtksourceview-build-defines.vsprops    |    8 ++
 win32/vs9/gtksourceview-introspect.vcproj        |   76 ++++++++++++++++
 win32/vs9/gtksourceview-version-paths.vsprops.in |    8 ++
 win32/vs9/gtksourceview.sln                      |    9 ++
 14 files changed, 237 insertions(+), 3 deletions(-)
---
diff --git a/win32/vs10/Makefile.am b/win32/vs10/Makefile.am
index e7f0040..03da060 100644
--- a/win32/vs10/Makefile.am
+++ b/win32/vs10/Makefile.am
@@ -17,6 +17,7 @@ EXTRA_DIST =                                  \
        gtksourceview.vcxproj.filtersin         \
        gtksourceview-install.vcxproj           \
        gtksourceview-install.vcxproj.filters   \
+       gtksourceview-introspect.vcxproj        \
        $(GENERATED_ITEMS)
 
 gtksourceview-install.props: $(top_srcdir)/win32/vs10/gtksourceview-install.propsin $(MSVC10_HEADERS_LISTS)
diff --git a/win32/vs10/gtksourceview-build-defines.props b/win32/vs10/gtksourceview-build-defines.props
index 8863fba..3d07f9b 100644
--- a/win32/vs10/gtksourceview-build-defines.props
+++ b/win32/vs10/gtksourceview-build-defines.props
@@ -5,6 +5,10 @@
   </ImportGroup>
   <PropertyGroup Label="UserMacros">
        
<GtkSourceBuildDefines>G_LOG_DOMAIN="GtkSourceView";GTK_SOURCE_VERSION_MIN_REQUIRED=GTK_SOURCE_VERSION_3_0;GTK_SOURCE_COMPILATION</GtkSourceBuildDefines>
+    <GtkSourceIntrospectNMakeCmd>cd ..
+set VCInstallDir=$(VCInstallDir)
+nmake -f gtksourceview-introspection-msvc.mak CFG=$(Configuration) 
PREFIX=$(GlibEtcInstallRoot)</GtkSourceIntrospectNMakeCmd>
+    
<GtkSourceIntrospectBuiltFiles>$(SolutionDir)\..\GtkSource-3.0.gir;$(SolutionDir)\..\GtkSource-3.0.typelib</GtkSourceIntrospectBuiltFiles>
   </PropertyGroup>
   <PropertyGroup>
     <_PropertySheetDisplayName>gtksourceviewbuilddefinesprops</_PropertySheetDisplayName>
@@ -28,5 +32,11 @@
     <BuildMacro Include="GtkSourceBuildDefines">
       <Value>$(GtkSourceBuildDefines)</Value>
     </BuildMacro>
+    <BuildMacro Include="GtkSourceIntrospectNMakeCmd">
+      <Value>$(GtkSourceIntrospectNMakeCmd)</Value>
+    </BuildMacro>
+    <BuildMacro Include="GtkSourceIntrospectBuiltFiles">
+      <Value>$(GtkSourceIntrospectBuiltFiles)</Value>
+    </BuildMacro>
   </ItemGroup>
 </Project>
diff --git a/win32/vs10/gtksourceview-introspect.vcxproj b/win32/vs10/gtksourceview-introspect.vcxproj
new file mode 100644
index 0000000..a9c2e7b
--- /dev/null
+++ b/win32/vs10/gtksourceview-introspect.vcxproj
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" 
xmlns="http://schemas.microsoft.com/developer/msbuild/2003";>
+  <ItemGroup Label="ProjectConfigurations">
+    <ProjectConfiguration Include="Debug|Win32">
+      <Configuration>Debug</Configuration>
+      <Platform>Win32</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Release|Win32">
+      <Configuration>Release</Configuration>
+      <Platform>Win32</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Debug|x64">
+      <Configuration>Debug</Configuration>
+      <Platform>x64</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Release|x64">
+      <Configuration>Release</Configuration>
+      <Platform>x64</Platform>
+    </ProjectConfiguration>
+  </ItemGroup>
+  <PropertyGroup Label="Globals">
+    <ProjectGuid>{227C33AD-3F74-4688-A8A7-A86717353455}</ProjectGuid>
+    <RootNamespace>gtksourceviewintrospect</RootNamespace>
+  </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+    <ConfigurationType>Makefile</ConfigurationType>
+    <UseDebugLibraries>true</UseDebugLibraries>
+    <CharacterSet>MultiByte</CharacterSet>
+    <PlatformToolset>v100</PlatformToolset>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+    <ConfigurationType>Makefile</ConfigurationType>
+    <UseDebugLibraries>false</UseDebugLibraries>
+    <WholeProgramOptimization>true</WholeProgramOptimization>
+    <CharacterSet>MultiByte</CharacterSet>
+    <PlatformToolset>v100</PlatformToolset>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
+    <ConfigurationType>Makefile</ConfigurationType>
+    <CharacterSet>MultiByte</CharacterSet>
+    <PlatformToolset>v100</PlatformToolset>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
+    <ConfigurationType>Makefile</ConfigurationType>
+    <CharacterSet>MultiByte</CharacterSet>
+    <WholeProgramOptimization>true</WholeProgramOptimization>
+    <PlatformToolset>v100</PlatformToolset>
+  </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <ImportGroup Label="ExtensionSettings">
+  </ImportGroup>
+  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" 
Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+    <Import Project="gtksourceview-build-defines.props" />
+  </ImportGroup>
+  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" 
Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+    <Import Project="gtksourceview-build-defines.props" />
+  </ImportGroup>
+  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" 
Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+    <Import Project="gtksourceview-build-defines.props" />
+  </ImportGroup>
+  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" 
Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+    <Import Project="gtksourceview-build-defines.props" />
+  </ImportGroup>
+  <PropertyGroup Label="UserMacros" />
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+    <NMakeBuildCommandLine>$(GtkSourceIntrospectNMakeCmd) $(IntrospectPythonParam) 
install-introspection</NMakeBuildCommandLine>
+    <NMakeReBuildCommandLine>$(GtkSourceIntrospectNMakeCmd) $(IntrospectPythonParam) clean 
install-introspection</NMakeReBuildCommandLine>
+    <NMakeCleanCommandLine>$(GtkSourceIntrospectNMakeCmd) $(IntrospectPythonParam) 
clean</NMakeCleanCommandLine>
+    <NMakeOutput>$(GtkSourceIntrospectBuiltFiles)</NMakeOutput>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+    <NMakeBuildCommandLine>$(GtkSourceIntrospectNMakeCmd) $(IntrospectPythonParam) 
install-introspection</NMakeBuildCommandLine>
+    <NMakeReBuildCommandLine>$(GtkSourceIntrospectNMakeCmd) $(IntrospectPythonParam) clean 
install-introspection</NMakeReBuildCommandLine>
+    <NMakeCleanCommandLine>$(GtkSourceIntrospectNMakeCmd) $(IntrospectPythonParam) 
clean</NMakeCleanCommandLine>
+    <NMakeOutput>$(GtkSourceIntrospectBuiltFiles)</NMakeOutput>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+    <NMakeBuildCommandLine>$(GtkSourceIntrospectNMakeCmd) $(IntrospectPythonParamX64) 
install-introspection</NMakeBuildCommandLine>
+    <NMakeReBuildCommandLine>$(GtkSourceIntrospectNMakeCmd) $(IntrospectPythonParamX64) clean 
install-introspection</NMakeReBuildCommandLine>
+    <NMakeCleanCommandLine>$(GtkSourceIntrospectNMakeCmd) $(IntrospectPythonParamX64) 
clean</NMakeCleanCommandLine>
+    <NMakeOutput>$(GtkSourceIntrospectBuiltFiles)</NMakeOutput>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+    <NMakeBuildCommandLine>$(GtkSourceIntrospectNMakeCmd) $(IntrospectPythonParamX64) 
install-introspection</NMakeBuildCommandLine>
+    <NMakeReBuildCommandLine>$(GtkSourceIntrospectNMakeCmd) $(IntrospectPythonParamX64) clean 
install-introspection</NMakeReBuildCommandLine>
+    <NMakeCleanCommandLine>$(GtkSourceIntrospectNMakeCmd) $(IntrospectPythonParamX64) 
clean</NMakeCleanCommandLine>
+    <NMakeOutput>$(GtkSourceIntrospectBuiltFiles)</NMakeOutput>
+  </PropertyGroup>
+  <ItemGroup>
+    <ProjectReference Include="gtksourceview-install.vcxproj">
+      <Project>{2093d218-190e-4194-9421-3ba7cbf33b10}</Project>
+      <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
+    </ProjectReference>
+  </ItemGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+  <ImportGroup Label="ExtensionTargets">
+  </ImportGroup>
+</Project>
\ No newline at end of file
diff --git a/win32/vs10/gtksourceview-version-paths.props.in b/win32/vs10/gtksourceview-version-paths.props.in
index b080f4a..d52a849 100644
--- a/win32/vs10/gtksourceview-version-paths.props.in
+++ b/win32/vs10/gtksourceview-version-paths.props.in
@@ -21,6 +21,8 @@
     <PythonDir Condition="'$(VisualStudioVersion)' == '14.0'">c:\python36</PythonDir>
     <PythonDir Condition="'$(VisualStudioVersion)' == '15.0'">c:\python36</PythonDir>
     <PythonDirX64>$(PythonDir).x64</PythonDirX64>
+    <IntrospectPythonParam>PYTHON=$(PythonDir)\python.exe</IntrospectPythonParam>
+    <IntrospectPythonParamX64>PYTHON=$(PythonDirX64)\python.exe</IntrospectPythonParamX64>
   </PropertyGroup>
   <PropertyGroup>
     <_PropertySheetDisplayName>gtksourceviewversionpathsprops</_PropertySheetDisplayName>
@@ -77,5 +79,11 @@
     <BuildMacro Include="PythonDirX64">
       <Value>$(PythonDirX64)</Value>
     </BuildMacro>
+    <BuildMacro Include="IntrospectPythonParam">
+      <Value>$(IntrospectPythonParam)</Value>
+    </BuildMacro>
+    <BuildMacro Include="IntrospectPythonParamX64">
+      <Value>$(IntrospectPythonParamX64)</Value>
+    </BuildMacro>
   </ItemGroup>
 </Project>
diff --git a/win32/vs10/gtksourceview.sln b/win32/vs10/gtksourceview.sln
index 1114d4f..b7fb986 100644
--- a/win32/vs10/gtksourceview.sln
+++ b/win32/vs10/gtksourceview.sln
@@ -5,6 +5,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gtksourceview", "gtksourcev
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gtksourceview-install", 
"gtksourceview-install.vcxproj", "{2093D218-190E-4194-9421-3BA7CBF33B10}"
 EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gtksourceview-introspect", 
"gtksourceview-introspect.vcxproj", "{227C33AD-3F74-4688-A8A7-A86717353455}"
+EndProject
 Global
        GlobalSection(SolutionConfigurationPlatforms) = preSolution
                Debug|Win32 = Debug|Win32
@@ -29,6 +31,10 @@ Global
                {2093D218-190E-4194-9421-3BA7CBF33B10}.Release|Win32.Build.0 = Release|Win32
                {2093D218-190E-4194-9421-3BA7CBF33B10}.Release|x64.ActiveCfg = Release|x64
                {2093D218-190E-4194-9421-3BA7CBF33B10}.Release|x64.Build.0 = Release|x64
+               {227C33AD-3F74-4688-A8A7-A86717353455}.Debug|Win32.ActiveCfg = Debug|Win32
+               {227C33AD-3F74-4688-A8A7-A86717353455}.Debug|x64.ActiveCfg = Debug|x64
+               {227C33AD-3F74-4688-A8A7-A86717353455}.Release|Win32.ActiveCfg = Release|Win32
+               {227C33AD-3F74-4688-A8A7-A86717353455}.Release|x64.ActiveCfg = Release|x64
        EndGlobalSection
        GlobalSection(SolutionProperties) = preSolution
                HideSolutionNode = FALSE
diff --git a/win32/vs11/Makefile.am b/win32/vs11/Makefile.am
index 7dbc2b4..5ce8ede 100644
--- a/win32/vs11/Makefile.am
+++ b/win32/vs11/Makefile.am
@@ -8,6 +8,7 @@ EXTRA_DIST =                            \
        gtksourceview.vcxproj.filters           \
        gtksourceview-install.vcxproj           \
        gtksourceview-install.vcxproj.filters   \
+       gtksourceview-introspect.vcxproj        \
        math.h
 
 math.h: $(top_srcdir)/win32/vs9/math.h
diff --git a/win32/vs12/Makefile.am b/win32/vs12/Makefile.am
index db92c57..94bcf82 100644
--- a/win32/vs12/Makefile.am
+++ b/win32/vs12/Makefile.am
@@ -7,7 +7,8 @@ EXTRA_DIST =                            \
        gtksourceview.vcxproj                   \
        gtksourceview.vcxproj.filters           \
        gtksourceview-install.vcxproj           \
-       gtksourceview-install.vcxproj.filters
+       gtksourceview-install.vcxproj.filters   \
+       gtksourceview-introspect.vcxproj
 
 DISTCLEANFILES = $(EXTRA_DIST)
 
diff --git a/win32/vs14/Makefile.am b/win32/vs14/Makefile.am
index 65b58ce..b090d12 100644
--- a/win32/vs14/Makefile.am
+++ b/win32/vs14/Makefile.am
@@ -7,7 +7,8 @@ EXTRA_DIST =                            \
        gtksourceview.vcxproj                   \
        gtksourceview.vcxproj.filters           \
        gtksourceview-install.vcxproj           \
-       gtksourceview-install.vcxproj.filters
+       gtksourceview-install.vcxproj.filters   \
+       gtksourceview-introspect.vcxproj
 
 DISTCLEANFILES = $(EXTRA_DIST)
 
diff --git a/win32/vs15/Makefile.am b/win32/vs15/Makefile.am
index 9a7fb52..675d65f 100644
--- a/win32/vs15/Makefile.am
+++ b/win32/vs15/Makefile.am
@@ -7,7 +7,8 @@ EXTRA_DIST =                            \
        gtksourceview.vcxproj                   \
        gtksourceview.vcxproj.filters           \
        gtksourceview-install.vcxproj           \
-       gtksourceview-install.vcxproj.filters
+       gtksourceview-install.vcxproj.filters   \
+       gtksourceview-introspect.vcxproj
 
 DISTCLEANFILES = $(EXTRA_DIST)
 
diff --git a/win32/vs9/Makefile.am b/win32/vs9/Makefile.am
index f499ecf..3a85130 100644
--- a/win32/vs9/Makefile.am
+++ b/win32/vs9/Makefile.am
@@ -13,6 +13,7 @@ EXTRA_DIST =                                  \
        gtksourceview-version-paths.vsprops     \
        gtksourceview.vcprojin                  \
        gtksourceview-install.vcproj            \
+       gtksourceview-introspect.vcproj         \
        $(GENERATED_ITEMS)                      \
        math.h
 
diff --git a/win32/vs9/gtksourceview-build-defines.vsprops b/win32/vs9/gtksourceview-build-defines.vsprops
index 2352daf..eb7bae4 100644
--- a/win32/vs9/gtksourceview-build-defines.vsprops
+++ b/win32/vs9/gtksourceview-build-defines.vsprops
@@ -23,4 +23,12 @@
                Name="GtkSourceBuildDefines"
                
Value="G_LOG_DOMAIN=\&quot;GtkSourceView\&quot;;GTK_SOURCE_VERSION_MIN_REQUIRED=GTK_SOURCE_VERSION_3_0;GTK_SOURCE_COMPILATION"
        />
+       <UserMacro
+               Name="GtkSourceIntrospectNMakeCmd"
+               Value="cd ..&#x0D;&#x0A;set VCInstallDir=$(VCInstallDir)&#x0D;&#x0A;nmake -f 
gtksourceview-introspection-msvc.mak CFG=$(ConfigurationName) PREFIX=$(GlibEtcInstallRoot)"
+       />
+       <UserMacro
+               Name="GtkSourceIntrospectBuiltFiles"
+               Value="$(SolutionDir)\..\GtkSource-3.0.gir;$(SolutionDir)\..\GtkSource-3.0.typelib"
+       />
 </VisualStudioPropertySheet>
diff --git a/win32/vs9/gtksourceview-introspect.vcproj b/win32/vs9/gtksourceview-introspect.vcproj
new file mode 100644
index 0000000..5eda5eb
--- /dev/null
+++ b/win32/vs9/gtksourceview-introspect.vcproj
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+       ProjectType="Visual C++"
+       Version="9.00"
+       Name="gtksourceview-introspect"
+       ProjectGUID="{227C33AD-3F74-4688-A8A7-A86717353455}"
+       Keyword="MakeFileProj"
+       TargetFrameworkVersion="196613"
+       >
+       <Platforms>
+               <Platform
+                       Name="Win32"
+               />
+               <Platform
+                       Name="x64"
+               />
+       </Platforms>
+       <ToolFiles>
+       </ToolFiles>
+       <Configurations>
+               <Configuration
+                       Name="Debug|Win32"
+                       ConfigurationType="0"
+                       InheritedPropertySheets=".\gtksourceview-build-defines.vsprops"
+                       >
+                       <Tool
+                               Name="VCNMakeTool"
+                               BuildCommandLine="$(GtkSourceIntrospectNMakeCmd) $(IntrospectPythonParam) 
install-introspection"
+                               ReBuildCommandLine="$(GtkSourceIntrospectNMakeCmd) $(IntrospectPythonParam) 
clean install-introspection"
+                               CleanCommandLine="$(GtkSourceIntrospectNMakeCmd) $(IntrospectPythonParam) 
clean"
+                               Output="$(GtkSourceIntrospectBuiltFiles)"
+                       />
+               </Configuration>
+               <Configuration
+                       Name="Debug|x64"
+                       ConfigurationType="0"
+                       InheritedPropertySheets=".\gtksourceview-build-defines.vsprops"
+                       >
+                       <Tool
+                               Name="VCNMakeTool"
+                               BuildCommandLine="$(GtkSourceIntrospectNMakeCmd) $(IntrospectPythonParamX64) 
install-introspection"
+                               ReBuildCommandLine="$(GtkSourceIntrospectNMakeCmd) 
$(IntrospectPythonParamX64) clean install-introspection"
+                               CleanCommandLine="$(GtkSourceIntrospectNMakeCmd) $(IntrospectPythonParamX64) 
clean"
+                               Output="$(GtkSourceIntrospectBuiltFiles)"
+                       />
+               </Configuration>
+               <Configuration
+                       Name="Release|Win32"
+                       ConfigurationType="0"
+                       InheritedPropertySheets=".\gtksourceview-build-defines.vsprops"
+                       CharacterSet="2"
+                       DeleteExtensionsOnClean=""
+                       >
+                       <Tool
+                               Name="VCNMakeTool"
+                               BuildCommandLine="$(GtkSourceIntrospectNMakeCmd) $(IntrospectPythonParam) 
install-introspection"
+                               ReBuildCommandLine="$(GtkSourceIntrospectNMakeCmd) $(IntrospectPythonParam) 
clean install-introspection"
+                               CleanCommandLine="$(GtkSourceIntrospectNMakeCmd) $(IntrospectPythonParam) 
clean"
+                               Output="$(GtkSourceIntrospectBuiltFiles)"
+                       />
+               </Configuration>
+               <Configuration
+                       Name="Release|x64"
+                       ConfigurationType="0"
+                       InheritedPropertySheets=".\gtksourceview-build-defines.vsprops"
+                       >
+                       <Tool
+                               Name="VCNMakeTool"
+                               BuildCommandLine="$(GtkSourceIntrospectNMakeCmd) $(IntrospectPythonParamX64) 
install-introspection"
+                               ReBuildCommandLine="$(GtkSourceIntrospectNMakeCmd) 
$(IntrospectPythonParamX64) clean install-introspection"
+                               CleanCommandLine="$(GtkSourceIntrospectNMakeCmd) $(IntrospectPythonParamX64) 
clean"
+                               Output="$(GtkSourceIntrospectBuiltFiles)"
+                       />
+               </Configuration>
+       </Configurations>
+</VisualStudioProject>
diff --git a/win32/vs9/gtksourceview-version-paths.vsprops.in 
b/win32/vs9/gtksourceview-version-paths.vsprops.in
index edf4435..0b8e61a 100644
--- a/win32/vs9/gtksourceview-version-paths.vsprops.in
+++ b/win32/vs9/gtksourceview-version-paths.vsprops.in
@@ -74,4 +74,12 @@
                Name="PythonDirX64"
                Value="$(PythonDir).x64"
        />
+       <UserMacro
+               Name="IntrospectPythonParam"
+               Value="PYTHON=$(PythonDir)\python.exe"
+       />
+       <UserMacro
+               Name="IntrospectPythonParamX64"
+               Value="PYTHON=$(PythonDirX64)\python.exe"
+       />
 </VisualStudioPropertySheet>
diff --git a/win32/vs9/gtksourceview.sln b/win32/vs9/gtksourceview.sln
index d6cd23b..631b7d3 100644
--- a/win32/vs9/gtksourceview.sln
+++ b/win32/vs9/gtksourceview.sln
@@ -8,6 +8,11 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gtksourceview-install", "gt
                {B95C0A8D-2528-40C4-8ADE-1FDE8B6E50E8} = {B95C0A8D-2528-40C4-8ADE-1FDE8B6E50E8}
        EndProjectSection
 EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gtksourceview-introspect", 
"gtksourceview-introspect.vcproj", "{227C33AD-3F74-4688-A8A7-A86717353455}"
+       ProjectSection(ProjectDependencies) = postProject
+               {2093D218-190E-4194-9421-3BA7CBF33B10} = {2093D218-190E-4194-9421-3BA7CBF33B10}
+       EndProjectSection
+EndProject
 Global
        GlobalSection(SolutionConfigurationPlatforms) = preSolution
                Debug|Win32 = Debug|Win32
@@ -32,6 +37,10 @@ Global
                {2093D218-190E-4194-9421-3BA7CBF33B10}.Release|Win32.Build.0 = Release|Win32
                {2093D218-190E-4194-9421-3BA7CBF33B10}.Release|x64.ActiveCfg = Release|x64
                {2093D218-190E-4194-9421-3BA7CBF33B10}.Release|x64.Build.0 = Release|x64
+               {227C33AD-3F74-4688-A8A7-A86717353455}.Debug|Win32.ActiveCfg = Debug|Win32
+               {227C33AD-3F74-4688-A8A7-A86717353455}.Debug|x64.ActiveCfg = Debug|x64
+               {227C33AD-3F74-4688-A8A7-A86717353455}.Release|Win32.ActiveCfg = Release|Win32
+               {227C33AD-3F74-4688-A8A7-A86717353455}.Release|x64.ActiveCfg = Release|x64
        EndGlobalSection
        GlobalSection(SolutionProperties) = preSolution
                HideSolutionNode = FALSE


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]