[gtksourceview/gnome-3-24] build: Allow different Python installations per MSVC version



commit 6913063512f4f254c6ab08c2aa490dcfe898d9ea
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Fri Sep 8 15:28:59 2017 +0800

    build: Allow different Python installations per MSVC version
    
    This allows more flexibility in the Visual Studio projects, and makes
    things in line with the GObject-Introspection MSVC projects.  This also
    makes the projects conform more closely to the Visual Studio versions
    that are used to build each official CPython 3.x release series, i.e.
    
    -Python 3.4.x for MSVC 2010, 2012 and 2013, which is built with 2010
    -Python 3.5.x and 3.6.x for MSVC 2015 and 2017, which is built with
     2015.
    
    This will help us in making things simpler when we support building
    introspection files directly from the MSVC projects.

 win32/vs10/gtksourceview-version-paths.props.in |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/win32/vs10/gtksourceview-version-paths.props.in b/win32/vs10/gtksourceview-version-paths.props.in
index 65a0c2e..9d94f16 100644
--- a/win32/vs10/gtksourceview-version-paths.props.in
+++ b/win32/vs10/gtksourceview-version-paths.props.in
@@ -15,7 +15,11 @@
     <GtkSourceviewSeparateVSDllSuffix>-3-vs$(VSVer)</GtkSourceviewSeparateVSDllSuffix>
     <GtkSourceviewDllPrefix>$(GtkSourceviewSeparateVSDllPrefix)</GtkSourceviewDllPrefix>
     <GtkSourceviewDllSuffix>$(GtkSourceviewSeparateVSDllSuffix)</GtkSourceviewDllSuffix>
-    <PythonDir>c:\python27</PythonDir>
+    <PythonDir Condition="'$(VisualStudioVersion)' == '10.0'">c:\python34</PythonDir>
+    <PythonDir Condition="'$(VisualStudioVersion)' == '11.0'">c:\python34</PythonDir>
+    <PythonDir Condition="'$(VisualStudioVersion)' == '12.0'">c:\python34</PythonDir>
+    <PythonDir Condition="'$(VisualStudioVersion)' == '14.0'">c:\python36</PythonDir>
+    <PythonDir Condition="'$(VisualStudioVersion)' == '15.0'">c:\python36</PythonDir>
   </PropertyGroup>
   <PropertyGroup>
     <_PropertySheetDisplayName>gtksourceviewversionpathsprops</_PropertySheetDisplayName>


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