This patch propagates the automake value 'PACKAGE_VERSION' to the driver
specific information files, overwriting the Visual Studio default value of
Version, when building the driver via msys.

Signed-off-by: Alin Gabriel Serdean <[email protected]>
---
 Makefile.am | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 974cb9a..6053301 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -394,13 +394,13 @@ CLEANFILES += manpage-dep-check
 if VSTUDIO_DDK
 ALL_LOCAL += ovsext
 ovsext: datapath-windows/ovsext.sln 
$(srcdir)/datapath-windows/include/OvsDpInterface.h
-       MSBuild.exe //maxcpucount datapath-windows/ovsext.sln /target:Build 
/property:Configuration="Win8$(VSTUDIO_CONFIG)"
-       MSBuild.exe //maxcpucount datapath-windows/ovsext.sln /target:Build 
/property:Configuration="Win8.1$(VSTUDIO_CONFIG)"
+       MSBuild.exe //maxcpucount datapath-windows/ovsext.sln /target:Build 
/property:Configuration="Win8$(VSTUDIO_CONFIG)" 
/property:Version="$(PACKAGE_VERSION)"
+       MSBuild.exe //maxcpucount datapath-windows/ovsext.sln /target:Build 
/property:Configuration="Win8.1$(VSTUDIO_CONFIG)" 
/property:Version="$(PACKAGE_VERSION)"
 
 CLEAN_LOCAL += ovsext_clean
 ovsext_clean: datapath-windows/ovsext.sln
-       MSBuild.exe //maxcpucount datapath-windows/ovsext.sln /target:Clean 
/property:Configuration="Win8$(VSTUDIO_CONFIG)"
-       MSBuild.exe //maxcpucount datapath-windows/ovsext.sln /target:Clean 
/property:Configuration="Win8.1$(VSTUDIO_CONFIG)"
+       MSBuild.exe //maxcpucount datapath-windows/ovsext.sln /target:Clean 
/property:Configuration="Win8$(VSTUDIO_CONFIG)" 
/property:Version="$(PACKAGE_VERSION)"
+       MSBuild.exe //maxcpucount datapath-windows/ovsext.sln /target:Clean 
/property:Configuration="Win8.1$(VSTUDIO_CONFIG)" 
/property:Version="$(PACKAGE_VERSION)"
 endif
 .PHONY: ovsext
 
-- 
2.10.2.windows.1
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to