[gobject-introspection] MSVC builds: Have the package version available in the projects
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] MSVC builds: Have the package version available in the projects
- Date: Fri, 18 Mar 2016 08:49:10 +0000 (UTC)
commit b13dc3f35e0920137984fe9313d21bd50b081ff6
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri Mar 18 16:30:10 2016 +0800
MSVC builds: Have the package version available in the projects
This is used for generating the pkg-config file for this package.
...rsion-paths.props => gi-version-paths.props.in} | 4 ++++
...n-paths.vsprops => gi-version-paths.vsprops.in} | 4 ++++
configure.ac | 2 ++
3 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/build/win32/vs10/gi-version-paths.props b/build/win32/vs10/gi-version-paths.props.in
similarity index 95%
rename from build/win32/vs10/gi-version-paths.props
rename to build/win32/vs10/gi-version-paths.props.in
index ae370f4..bdb0dd9 100644
--- a/build/win32/vs10/gi-version-paths.props
+++ b/build/win32/vs10/gi-version-paths.props.in
@@ -10,6 +10,7 @@
<PythonDirX64>$(PythonDir).x64</PythonDirX64>
<IntrospectPythonParam>PYTHON=$(PythonDir)\python.exe</IntrospectPythonParam>
<IntrospectPythonParamX64>PYTHON=$(PythonDirX64)\python.exe</IntrospectPythonParamX64>
+ <GIVersion>@PACKAGE_VERSION@</GIVersion>
<BASE_GI_DIR>$(SolutionDir)\..\..\..</BASE_GI_DIR>
<ApiVersion>1.0</ApiVersion>
<DefDir>$(SolutionDir)$(Configuration)\$(Platform)\obj\$(ProjectName)</DefDir>
@@ -45,6 +46,9 @@
<BuildMacro Include="IntrospectPythonParamX64">
<Value>$(IntrospectPythonParamX64)</Value>
</BuildMacro>
+ <BuildMacro Include="GIVersion">
+ <Value>$(GIVersion)</Value>
+ </BuildMacro>
<BuildMacro Include="BASE_GI_DIR">
<Value>$(BASE_GI_DIR)</Value>
</BuildMacro>
diff --git a/build/win32/vs9/gi-version-paths.vsprops b/build/win32/vs9/gi-version-paths.vsprops.in
similarity index 96%
rename from build/win32/vs9/gi-version-paths.vsprops
rename to build/win32/vs9/gi-version-paths.vsprops.in
index 5cde330..8e2f858 100644
--- a/build/win32/vs9/gi-version-paths.vsprops
+++ b/build/win32/vs9/gi-version-paths.vsprops.in
@@ -35,6 +35,10 @@
Value="PYTHON=$(PythonDirX64)\python.exe"
/>
<UserMacro
+ Name="GIVersion"
+ Value="@PACKAGE_VERSION@"
+ />
+ <UserMacro
Name="BASE_GI_DIR"
Value="$(SolutionDir)\..\..\.."
/>
diff --git a/configure.ac b/configure.ac
index 0c35f6d..2d9d5ea 100644
--- a/configure.ac
+++ b/configure.ac
@@ -377,7 +377,9 @@ config.h.win32
build/Makefile
build/win32/Makefile
build/win32/vs9/Makefile
+build/win32/vs9/gi-version-paths.vsprops
build/win32/vs10/Makefile
+build/win32/vs10/gi-version-paths.props
build/win32/vs11/Makefile
build/win32/vs12/Makefile
build/win32/vs14/Makefile])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]