summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2016-03-18 16:30:10 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2016-03-18 16:48:28 +0800
commitb13dc3f35e0920137984fe9313d21bd50b081ff6 (patch)
treeb34ae718351bde9e97eecdfcf95f8f399f32eba3
parentf00d0024ed49c600f41f238b0fdc829855492b04 (diff)
downloadgobject-introspection-b13dc3f35e0920137984fe9313d21bd50b081ff6.tar.gz
MSVC builds: Have the package version available in the projects
This is used for generating the pkg-config file for this package.
-rw-r--r--build/win32/vs10/gi-version-paths.props.in (renamed from build/win32/vs10/gi-version-paths.props)4
-rw-r--r--build/win32/vs9/gi-version-paths.vsprops.in (renamed from build/win32/vs9/gi-version-paths.vsprops)4
-rw-r--r--configure.ac2
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
index ae370f45..bdb0dd91 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
index 5cde3304..8e2f858d 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 0c35f6d3..2d9d5eaa 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])