[librsvg] Visual Studio builds: Include package version in property sheets



commit da0cd7b2ccf2ffc0b5a4b709cfe356b821665e35
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Fri Mar 3 15:43:01 2017 +0800

    Visual Studio builds: Include package version in property sheets
    
    This is done so that we can use this info to generate .pc files for Visual
    Studio builds.

 configure.ac                                       |    1 +
 ...ion-paths.props => rsvg-version-paths.props.in} |   12 ++++++++++++
 2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index e196cfa..6826724 100644
--- a/configure.ac
+++ b/configure.ac
@@ -318,6 +318,7 @@ doc/version.xml
 config.h.win32
 win32/Makefile
 win32/vs12/Makefile
+win32/vs12/rsvg-version-paths.props
 win32/vs14/Makefile
 win32/vs15/Makefile
 ])
diff --git a/win32/vs12/rsvg-version-paths.props b/win32/vs12/rsvg-version-paths.props.in
similarity index 81%
rename from win32/vs12/rsvg-version-paths.props
rename to win32/vs12/rsvg-version-paths.props.in
index e4ec88f..4d3b8b3 100644
--- a/win32/vs12/rsvg-version-paths.props
+++ b/win32/vs12/rsvg-version-paths.props.in
@@ -3,6 +3,9 @@
   <ImportGroup Label="PropertySheets">
   </ImportGroup>
   <PropertyGroup Label="UserMacros">
+    <RsvgMajorVersion>@LIBRSVG_MAJOR_VERSION@</RsvgMajorVersion>
+    <RsvgMinorVersion>@LIBRSVG_MINOR_VERSION@</RsvgMinorVersion>
+    <RsvgMicroVersion>@LIBRSVG_MICRO_VERSION@</RsvgMicroVersion>
     <ApiVersion>2.0</ApiVersion>
     <VSVer>12</VSVer>
     <GlibEtcInstallRoot>$(SolutionDir)\..\..\..\vs$(VSVer)\$(Platform)</GlibEtcInstallRoot>
@@ -20,6 +23,15 @@
   </PropertyGroup>
   <ItemDefinitionGroup />
   <ItemGroup>
+    <BuildMacro Include="RsvgMajorVersion">
+      <Value>$(RsvgMajorVersion)</Value>
+    </BuildMacro>
+    <BuildMacro Include="RsvgMinorVersion">
+      <Value>$(RsvgMinorVersion)</Value>
+    </BuildMacro>
+    <BuildMacro Include="RsvgMicroVersion">
+      <Value>$(RsvgMicroVersion)</Value>
+    </BuildMacro>
     <BuildMacro Include="ApiVersion">
       <Value>$(ApiVersion)</Value>
     </BuildMacro>


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