5 clone_folder: C:\openvswitch
8 mkdir C:\pthreads-win32
10 mkdir C:\ovs-build-downloads
12 $source = "ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-9-1-release.zip"
14 $destination = "C:\pthreads-win32\pthreads-win32.zip"
16 Invoke-WebRequest $source -OutFile $destination
18 $source = "https://slproweb.com/download/Win32OpenSSL-1_0_2L.exe"
20 $destination = "C:\ovs-build-downloads\Win32OpenSSL-1_0_2l.exe"
22 Invoke-WebRequest $source -OutFile $destination
26 7z x C:\pthreads-win32\pthreads-win32.zip
28 cd C:\ovs-build-downloads
30 .\Win32OpenSSL-1_0_2l.exe /silent /verysilent /sp- /suppressmsgboxes
36 python -m pip install six pypiwin32 --disable-pip-version-check
39 - '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd"'
40 - C:\MinGW\msys\1.0\bin\bash -lc "echo \"C:/MinGW /mingw\" > /etc/fstab"
41 - C:\MinGW\msys\1.0\bin\bash -lc "cp /c/pthreads-win32/Pre-built.2/dll/x86/*.dll /c/openvswitch/."
42 - C:\MinGW\msys\1.0\bin\bash -lc "mv /bin/link.exe /bin/link_copy.exe"
43 - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch && ./boot.sh"
44 - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch && ./configure CC=build-aux/cccl LD=\"`which link`\" LIBS=\"-lws2_32 -liphlpapi -lwbemuuid -lole32 -loleaut32\" --with-pthread=C:/pthreads-win32/Pre-built.2 --with-openssl=C:/OpenSSL-Win32 --with-vstudiotarget=\"Debug\""
45 - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch && make"
46 - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch && make datapath_windows_analyze"