[librsvg/librsvg-2.40] MSVC builds: Include Version info in Property Sheets



commit 208f07daeabcc1966a556860acb06764a9af2d51
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Fri Mar 3 17:53:40 2017 +0800

    MSVC builds: Include Version info in Property Sheets
    
    This info can be used later to generate the .pc files directly from the
    Visual Studio builds.

 ...ion-paths.props => rsvg-version-paths.props.in} |   12 ++++++++++++
 ...paths.vsprops => rsvg-version-paths.vsprops.in} |   12 ++++++++++++
 configure.ac                                       |    2 ++
 3 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/build/win32/vs10/rsvg-version-paths.props b/build/win32/vs10/rsvg-version-paths.props.in
similarity index 81%
rename from build/win32/vs10/rsvg-version-paths.props
rename to build/win32/vs10/rsvg-version-paths.props.in
index 7c6a72d..9fbd987 100644
--- a/build/win32/vs10/rsvg-version-paths.props
+++ b/build/win32/vs10/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>10</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>
diff --git a/build/win32/vs9/rsvg-version-paths.vsprops b/build/win32/vs9/rsvg-version-paths.vsprops.in
similarity index 83%
rename from build/win32/vs9/rsvg-version-paths.vsprops
rename to build/win32/vs9/rsvg-version-paths.vsprops.in
index 2f92596..7fa415a 100644
--- a/build/win32/vs9/rsvg-version-paths.vsprops
+++ b/build/win32/vs9/rsvg-version-paths.vsprops.in
@@ -5,6 +5,18 @@
        Name="rsvgversionpathsprops"
        >
        <UserMacro
+               Name="RsvgMajorVersion"
+               Value="@LIBRSVG_MAJOR_VERSION@"
+       />
+       <UserMacro
+               Name="RsvgMinorVersion"
+               Value="@LIBRSVG_MINOR_VERSION@"
+       />
+       <UserMacro
+               Name="RsvgMicroVersion"
+               Value="@LIBRSVG_MICRO_VERSION@"
+       />
+       <UserMacro
                Name="ApiVersion"
                Value="2.0"
        />
diff --git a/configure.ac b/configure.ac
index 31ae2f9..02613f9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -283,7 +283,9 @@ config.h.win32
 build/Makefile
 build/win32/Makefile
 build/win32/vs9/Makefile
+build/win32/vs9/rsvg-version-paths.vsprops
 build/win32/vs10/Makefile
+build/win32/vs10/rsvg-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]