[gobject-introspection] MSVC 201x builds: Allow different Python versions per toolset



commit c6fce971dac5bafa8485fe477a37b40c6dde960f
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Jul 12 18:24:45 2017 +0800

    MSVC 201x builds: Allow different Python versions per toolset
    
    Use conditionals to select the Python installation, so that we can more
    stick to the default Visual Studio versions used to compile each
    official Python releases more closely.
    
    This means by default:
    -2010/2012/2013 builds use Python 3.4.x, which is built with 2010
    -2015/2017 builds use Python 3.6.x, which is built with 2015

 win32/vs10/gi-version-paths.props.in |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/win32/vs10/gi-version-paths.props.in b/win32/vs10/gi-version-paths.props.in
index 4936c4e..5793455 100644
--- a/win32/vs10/gi-version-paths.props.in
+++ b/win32/vs10/gi-version-paths.props.in
@@ -5,7 +5,11 @@
     <GlibEtcInstallRoot>$(SolutionDir)\..\..\..\vs$(VSVer)\$(Platform)</GlibEtcInstallRoot>
     <CopyDir>$(GlibEtcInstallRoot)</CopyDir>
     <!-- PythonDir needs to point to a 32-bit/x86 Python 2.7/3.3+ installation -->
-    <PythonDir>c:\\python34</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>
     <!-- PythonDirX64 needs to point to an x86-64/x64 Python 2.7/3.3+ installation -->
     <PythonDirX64>$(PythonDir).x64</PythonDirX64>
     <IntrospectPythonParam>PYTHON=$(PythonDir)\python.exe</IntrospectPythonParam>


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