summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2017-03-09 16:14:04 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2017-03-09 16:14:04 +0800
commit72c37dc5abfd9dcae9764111c275632f35e109af (patch)
tree022f30d1a23f6c8b7a0dd967c3a6066309bffe55 /win32
parentf4de679fd0ebce525289dd0a906c3a49ccc8d08f (diff)
downloadlibsoup-72c37dc5abfd9dcae9764111c275632f35e109af.tar.gz
Visual Studio builds: Record version numbers in property sheets
Record the package version numbers in the property sheets in their own fields so that they can be more easily reused. We actually have them already in the parts of the command lines to generate soup-version.h, but we want to move one step forward to refactor how soup-version.h is generated on Visual Studio builds, as well as generate the .pc files for the package.
Diffstat (limited to 'win32')
-rw-r--r--win32/vs10/soup-gen-srcs.props (renamed from win32/vs10/soup-gen-srcs.props.in)6
-rw-r--r--win32/vs10/soup-version-paths.props.in (renamed from win32/vs10/soup-version-paths.props)12
-rw-r--r--win32/vs9/soup-gen-srcs.vsprops (renamed from win32/vs9/soup-gen-srcs.vsprops.in)6
-rw-r--r--win32/vs9/soup-version-paths.vsprops.in (renamed from win32/vs9/soup-version-paths.vsprops)12
4 files changed, 30 insertions, 6 deletions
diff --git a/win32/vs10/soup-gen-srcs.props.in b/win32/vs10/soup-gen-srcs.props
index 9361ad4b..4bd5dc17 100644
--- a/win32/vs10/soup-gen-srcs.props.in
+++ b/win32/vs10/soup-gen-srcs.props
@@ -6,9 +6,9 @@
<PropertyGroup Label="UserMacros">
<CopyConfigH>copy ..\..\config.h.win32 ..\..\config.h</CopyConfigH>
<GenSoupVersionH>
-$(PythonPath)\python.exe ..\replace.py --action=replace-var --input=..\..\libsoup\soup-version.h.in --output=..\..\libsoup\soup-version.h.tmp1 --var=SOUP_MAJOR_VERSION --outstring=@SOUP_MAJOR_VERSION@
-$(PythonPath)\python.exe ..\replace.py --action=replace-var --input=..\..\libsoup\soup-version.h.tmp1 --output=..\..\libsoup\soup-version.h.tmp2 --var=SOUP_MINOR_VERSION --outstring=@SOUP_MINOR_VERSION@
-$(PythonPath)\python.exe ..\replace.py --action=replace-var --input=..\..\libsoup\soup-version.h.tmp2 --output=..\..\libsoup\soup-version.h --var=SOUP_MICRO_VERSION --outstring=@SOUP_MICRO_VERSION@
+$(PythonPath)\python.exe ..\replace.py --action=replace-var --input=..\..\libsoup\soup-version.h.in --output=..\..\libsoup\soup-version.h.tmp1 --var=SOUP_MAJOR_VERSION --outstring=$(SoupMajorVersion)
+$(PythonPath)\python.exe ..\replace.py --action=replace-var --input=..\..\libsoup\soup-version.h.tmp1 --output=..\..\libsoup\soup-version.h.tmp2 --var=SOUP_MINOR_VERSION --outstring=$(SoupMinorVersion)
+$(PythonPath)\python.exe ..\replace.py --action=replace-var --input=..\..\libsoup\soup-version.h.tmp2 --output=..\..\libsoup\soup-version.h --var=SOUP_MICRO_VERSION --outstring=$(SoupMicroVersion)
del ..\..\libsoup\soup-version.h.tmp1 ..\..\libsoup\soup-version.h.tmp2
</GenSoupVersionH>
<GenTldDataInc>$(PythonPath)\python.exe ..\..\libsoup\tld-parser.py ..\..\data\effective_tld_names.dat ..\..\libsoup\tld_data.inc</GenTldDataInc>
diff --git a/win32/vs10/soup-version-paths.props b/win32/vs10/soup-version-paths.props.in
index 7f4ef5b0..7b259cec 100644
--- a/win32/vs10/soup-version-paths.props
+++ b/win32/vs10/soup-version-paths.props.in
@@ -6,6 +6,9 @@
<VSVer>10</VSVer>
<GlibEtcInstallRoot>..\..\..\vs$(VSVer)\$(Platform)</GlibEtcInstallRoot>
<CopyDir>$(GlibEtcInstallRoot)</CopyDir>
+ <SoupMajorVersion>@SOUP_MAJOR_VERSION@</SoupMajorVersion>
+ <SoupMinorVersion>@SOUP_MINOR_VERSION@</SoupMinorVersion>
+ <SoupMicroVersion>@SOUP_MICRO_VERSION@</SoupMicroVersion>
<ApiVersion>2.4</ApiVersion>
<SoupLibtoolCompatibleDllPrefix>lib</SoupLibtoolCompatibleDllPrefix>
<SoupLibtoolCompatibleDllSuffix>-$(ApiVersion)-0</SoupLibtoolCompatibleDllSuffix>
@@ -29,6 +32,15 @@
<BuildMacro Include="CopyDir">
<Value>$(CopyDir)</Value>
</BuildMacro>
+ <BuildMacro Include="SoupMajorVersion">
+ <Value>$(SoupMajorVersion)</Value>
+ </BuildMacro>
+ <BuildMacro Include="SoupMinorVersion">
+ <Value>$(SoupMinorVersion)</Value>
+ </BuildMacro>
+ <BuildMacro Include="SoupMicroVersion">
+ <Value>$(SoupMicroVersion)</Value>
+ </BuildMacro>
<BuildMacro Include="ApiVersion">
<Value>$(ApiVersion)</Value>
</BuildMacro>
diff --git a/win32/vs9/soup-gen-srcs.vsprops.in b/win32/vs9/soup-gen-srcs.vsprops
index 87518b6d..c947b5f4 100644
--- a/win32/vs9/soup-gen-srcs.vsprops.in
+++ b/win32/vs9/soup-gen-srcs.vsprops
@@ -12,9 +12,9 @@
<UserMacro
Name="GenSoupVersionH"
Value="
-$(PythonPath)\python.exe ..\replace.py --action=replace-var --input=..\..\libsoup\soup-version.h.in --output=..\..\libsoup\soup-version.h.tmp1 --var=SOUP_MAJOR_VERSION --outstring=@SOUP_MAJOR_VERSION@&#x0D;&#x0A;
-$(PythonPath)\python.exe ..\replace.py --action=replace-var --input=..\..\libsoup\soup-version.h.tmp1 --output=..\..\libsoup\soup-version.h.tmp2 --var=SOUP_MINOR_VERSION --outstring=@SOUP_MINOR_VERSION@&#x0D;&#x0A;
-$(PythonPath)\python.exe ..\replace.py --action=replace-var --input=..\..\libsoup\soup-version.h.tmp2 --output=..\..\libsoup\soup-version.h --var=SOUP_MICRO_VERSION --outstring=@SOUP_MICRO_VERSION@&#x0D;&#x0A;
+$(PythonPath)\python.exe ..\replace.py --action=replace-var --input=..\..\libsoup\soup-version.h.in --output=..\..\libsoup\soup-version.h.tmp1 --var=SOUP_MAJOR_VERSION --outstring=$(SoupMajorVersion)&#x0D;&#x0A;
+$(PythonPath)\python.exe ..\replace.py --action=replace-var --input=..\..\libsoup\soup-version.h.tmp1 --output=..\..\libsoup\soup-version.h.tmp2 --var=SOUP_MINOR_VERSION --outstring=$(SoupMinorVersion)&#x0D;&#x0A;
+$(PythonPath)\python.exe ..\replace.py --action=replace-var --input=..\..\libsoup\soup-version.h.tmp2 --output=..\..\libsoup\soup-version.h --var=SOUP_MICRO_VERSION --outstring=$(SoupMicroVersion)&#x0D;&#x0A;
del ..\..\libsoup\soup-version.h.tmp1 ..\..\libsoup\soup-version.h.tmp2&#x0D;&#x0A;
"
/>
diff --git a/win32/vs9/soup-version-paths.vsprops b/win32/vs9/soup-version-paths.vsprops.in
index 8f845a62..cde608ee 100644
--- a/win32/vs9/soup-version-paths.vsprops
+++ b/win32/vs9/soup-version-paths.vsprops.in
@@ -17,6 +17,18 @@
Value="$(GlibEtcInstallRoot)"
/>
<UserMacro
+ Name="SoupMajorVersion"
+ Value="@SOUP_MAJOR_VERSION@"
+ />
+ <UserMacro
+ Name="SoupMinorVersion"
+ Value="@SOUP_MINOR_VERSION@"
+ />
+ <UserMacro
+ Name="SoupMicroVersion"
+ Value="@SOUP_MICRO_VERSION@"
+ />
+ <UserMacro
Name="ApiVersion"
Value="2.4"
/>