summaryrefslogtreecommitdiff
path: root/appveyor.yml
diff options
context:
space:
mode:
authorAlin Gabriel Serdean <aserdean@ovn.org>2020-09-24 09:22:38 +0300
committerAlin Gabriel Serdean <aserdean@cloudbasesolutions.com>2020-10-04 22:09:44 +0300
commit8596b131c34b41bfe30c74047087b68ae5c071a1 (patch)
tree163eecc5fe483e2e82f73f7f8eacfdedc9d07c9c /appveyor.yml
parentfd8e707f38d06014f7e17319a4a10179e6dc66e1 (diff)
downloadopenvswitch-8596b131c34b41bfe30c74047087b68ae5c071a1.tar.gz
windows: Update build with latest pthread project
pthreads-win32 has moved too PThreads4W. This patch updates the build steps, CI (appveyor) and documentation. Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org> Acked-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml18
1 files changed, 7 insertions, 11 deletions
diff --git a/appveyor.yml b/appveyor.yml
index fa6754ce2..6e2b2e9e2 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,4 +1,5 @@
version: 1.0.{build}
+image: Visual Studio 2019
branches:
only:
- master
@@ -7,16 +8,8 @@ init:
- ps: $env:PATH ="C:\Python37;"+$env:PATH
- ps: New-Item -Type HardLink -Path "C:\Python37\python3.exe" -Value "C:\Python37\python.exe"
- ps: >-
- mkdir C:\pthreads-win32
-
mkdir C:\ovs-build-downloads
- $source = "ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-9-1-release.zip"
-
- $destination = "C:\pthreads-win32\pthreads-win32.zip"
-
- Invoke-WebRequest $source -OutFile $destination
-
$source = "https://slproweb.com/download/Win32OpenSSL-1_0_2t.exe"
$destination = "C:\ovs-build-downloads\Win32OpenSSL-1_0_2t.exe"
@@ -35,14 +28,17 @@ init:
cd C:\openvswitch
+ git clone https://git.code.sf.net/p/pthreads4w/code c:\pthreads4w-code
+
python3 -m pip install pypiwin32 --disable-pip-version-check
build_script:
-- '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd"'
+- '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"'
- C:\MinGW\msys\1.0\bin\bash -lc "echo \"C:/MinGW /mingw\" > /etc/fstab"
-- C:\MinGW\msys\1.0\bin\bash -lc "cp /c/pthreads-win32/Pre-built.2/dll/x86/*.dll /c/openvswitch/."
- C:\MinGW\msys\1.0\bin\bash -lc "mv /bin/link.exe /bin/link_copy.exe"
+# Build pthreads
+- C:\MinGW\msys\1.0\bin\bash -lc "cd /c/pthreads4w-code && nmake all install"
- C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch && ./boot.sh"
-- C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch && ./configure CC=build-aux/cccl LD=\"`which link`\" LIBS=\"-lws2_32 -lShlwapi -liphlpapi -lwbemuuid -lole32 -loleaut32\" --with-pthread=C:/pthreads-win32/Pre-built.2 --with-openssl=C:/OpenSSL-Win32 --with-vstudiotarget=\"Debug\"
+- C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch && ./configure CC=build-aux/cccl LD=\"`which link`\" LIBS=\"-lws2_32 -lShlwapi -liphlpapi -lwbemuuid -lole32 -loleaut32\" --with-pthread=c:/PTHREADS-BUILT/ --with-openssl=C:/OpenSSL-Win32 --with-vstudiotarget=\"Debug\"
- C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch && make"
- C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch && make datapath_windows_analyze"