[gtksourceview] build: Allow different Python installations per MSVC version
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] build: Allow different Python installations per MSVC version
- Date: Fri, 5 Oct 2018 09:46:59 +0000 (UTC)
commit a207597ec329843033f3a877db5b1a557196df59
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri Oct 5 16:54:13 2018 +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/gtksourceview4-version-paths.props.in | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/win32/vs10/gtksourceview4-version-paths.props.in
b/win32/vs10/gtksourceview4-version-paths.props.in
index 95fe1673..285ec270 100644
--- a/win32/vs10/gtksourceview4-version-paths.props.in
+++ b/win32/vs10/gtksourceview4-version-paths.props.in
@@ -15,7 +15,11 @@
<GtkSourceviewSeparateVSDllSuffix>-vs$(VSVer)</GtkSourceviewSeparateVSDllSuffix>
<GtkSourceviewDllPrefix>$(GtkSourceviewSeparateVSDllPrefix)</GtkSourceviewDllPrefix>
<GtkSourceviewDllSuffix>$(GtkSourceviewSeparateVSDllSuffix)</GtkSourceviewDllSuffix>
- <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>
</PropertyGroup>
<PropertyGroup>
<_PropertySheetDisplayName>gtksourceview4versionpathsprops</_PropertySheetDisplayName>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]