summaryrefslogtreecommitdiff
path: root/windows/automake.mk
diff options
context:
space:
mode:
authorAlin Gabriel Serdean <aserdean@cloudbasesolutions.com>2015-06-06 01:06:30 +0300
committerGurucharan Shetty <gshetty@nicira.com>2015-06-07 14:40:52 -0700
commitd183efc22b2b0b84c341500a73f567f98f4d00f4 (patch)
treeea00fa2aa7c25eec4049e9e58b89b644c3d2fe2e /windows/automake.mk
parentd8485a90af4ca1448ed7e33354994c97785c851d (diff)
downloadopenvswitch-d183efc22b2b0b84c341500a73f567f98f4d00f4.tar.gz
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 <aserdean@cloudbasesolutions.com> Co-authored-by: Alessandro Pilotti <apilotti@cloudbasesolutions.com> Signed-off-by: Alessandro Pilotti <apilotti@cloudbasesolutions.com> Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Diffstat (limited to 'windows/automake.mk')
-rw-r--r--windows/automake.mk57
1 files changed, 57 insertions, 0 deletions
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
+