From d183efc22b2b0b84c341500a73f567f98f4d00f4 Mon Sep 17 00:00:00 2001 From: Alin Gabriel Serdean Date: Sat, 6 Jun 2015 01:06:30 +0300 Subject: This commit adds the windows installer to the OVS tree. Requirements are the following: Visual Studio Community 2013 WiX Toolset 3.9 Microsoft_VC120_CRT_x86.msm More detailed information on the requirements and build instructions can be found under: https://github.com/cloudbase/ovs-windows-installer/blob/master/README.rst To run and make the installer issue the following: ./boot.sh ./configure CC=./build-aux/cccl LD="`which link`" \ LIBS="-lws2_32 -liphlpapi" --prefix="C:/openvswitch/usr" \ --localstatedir="C:/openvswitch/var" --sysconfdir="C:/openvswitch/etc" \ --with-pthread="C:/pthread" --with-vstudiotarget="Release" make clean && make -j16 windows_installer To uninstall one could use the following Powershell commandlets: $app = Get-WmiObject -Class Win32_Product | Where-Object ` { $_.Name -match "Open Vswitch" } $app.Uninstall() Signed-off-by: Alin Gabriel Serdean Co-authored-by: Alessandro Pilotti Signed-off-by: Alessandro Pilotti Signed-off-by: Gurucharan Shetty --- windows/automake.mk | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 windows/automake.mk (limited to 'windows/automake.mk') diff --git a/windows/automake.mk b/windows/automake.mk new file mode 100644 index 000000000..c8165a40c --- /dev/null +++ b/windows/automake.mk @@ -0,0 +1,57 @@ +# Copyright 2015 Cloudbase Solutions Srl +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License.You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the +# License for the specific language governing permissions and limitations +# under the License. + +PTHREAD_TEMP_DIR=`echo "$(PTHREAD_LDFLAGS)" | sed 's|^.\(.*\).$:\1||'` +windows_installer: all +#Userspace files needed for the installer + cp -f $(top_srcdir)/datapath-windows/misc/OVS.psm1 windows/ovs-windows-installer/Services/OVS.psm1 + cp -f $(top_srcdir)/vswitchd/vswitch.ovsschema windows/ovs-windows-installer/Services/vswitch.ovsschema + cp -f $(top_srcdir)/vswitchd/ovs-vswitchd.exe windows/ovs-windows-installer/Services/ovs-vswitchd.exe + cp -f $(top_srcdir)/ovsdb/ovsdb-server.exe windows/ovs-windows-installer/Services/ovsdb-server.exe + cp -f $(top_srcdir)/utilities/*.exe windows/ovs-windows-installer/Binaries/ + cp -f $(top_srcdir)/utilities/*.pdb windows/ovs-windows-installer/Symbols/ + cp -f $(top_srcdir)/ovsdb/ovsdb-client.exe windows/ovs-windows-installer/Binaries/ovsdb-client.exe + cp -f $(top_srcdir)/ovsdb/ovsdb-tool.exe windows/ovs-windows-installer/Binaries/ovsdb-tool.exe + cp -f $(top_srcdir)/ovsdb/ovsdb-client.pdb windows/ovs-windows-installer/Symbols/ + cp -f $(top_srcdir)/ovsdb/ovsdb-tool.pdb windows/ovs-windows-installer/Symbols/ +#Third party files needed by the installer + cp -f $(PTHREAD_TEMP_DIR)/../../dll/x86/*.dll windows/ovs-windows-installer/Binaries/ + cp -f "/c/Program Files (x86)/Common Files/Merge Modules/Microsoft_VC120_CRT_x86.msm" windows/ovs-windows-installer/Redist/Microsoft_VC120_CRT_x86.msm +#Forwarding extension files needed for the installer + cp -f $(top_srcdir)/datapath-windows/x64/Win8$(VSTUDIO_CONFIG)/package/ovsext.cat windows/ovs-windows-installer/Driver/Win8/ovsext.cat + cp -f $(top_srcdir)/datapath-windows/x64/Win8$(VSTUDIO_CONFIG)/package/ovsext.inf windows/ovs-windows-installer/Driver/Win8/ovsext.inf + cp -f $(top_srcdir)/datapath-windows/x64/Win8$(VSTUDIO_CONFIG)/package/OVSExt.sys windows/ovs-windows-installer/Driver/Win8/OVSExt.sys + cp -f $(top_srcdir)/datapath-windows/x64/Win8.1$(VSTUDIO_CONFIG)/package/ovsext.cat windows/ovs-windows-installer/Driver/Win8.1/ovsext.cat + cp -f $(top_srcdir)/datapath-windows/x64/Win8.1$(VSTUDIO_CONFIG)/package/ovsext.inf windows/ovs-windows-installer/Driver/Win8.1/ovsext.inf + cp -f $(top_srcdir)/datapath-windows/x64/Win8.1$(VSTUDIO_CONFIG)/package/ovsext.sys windows/ovs-windows-installer/Driver/Win8.1/ovsext.sys + MSBuild.exe windows/ovs-windows-installer.sln /target:Build /property:Configuration="Release" + +EXTRA_DIST += \ + windows/.gitignore \ + windows/automake.mk \ + windows/README.rst \ + windows/ovs-windows-installer.sln \ + windows/ovs-windows-installer/Actions/OVSActions.js \ + windows/ovs-windows-installer/CustomActions.wxs \ + windows/ovs-windows-installer/Dialogs/BeginningDialog.wxs \ + windows/ovs-windows-installer/Dialogs/MyEndDialog.wxs \ + windows/ovs-windows-installer/Dialogs/MyTroubleshootDialog.wxs \ + windows/ovs-windows-installer/Dialogs/UserFinishDialog.wxs \ + windows/ovs-windows-installer/License.rtf \ + windows/ovs-windows-installer/Product.wxs \ + windows/ovs-windows-installer/UI.wxs \ + windows/ovs-windows-installer/images/bannrbmp.bmp \ + windows/ovs-windows-installer/images/dlgbmp.bmp \ + windows/ovs-windows-installer/ovs-windows-installer.wixproj + -- cgit v1.2.1