Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for new MS VC #3

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
142 changes: 63 additions & 79 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,47 @@
version: 1.0.{build}
branches:
only:
- master
# branches:
# only:
# - master

environment:
TAG: "2.9.2"
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
platform: win32
ARCH: win32-msvc17
configuration: Release
CMAKE_GENERATOR: "Visual Studio 17 2022"
MSVCVERSION: v143
MSVCYEAR: "vs2022"
MSVCABR: "17"
VC_VER: 17.0
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
platform: x64
ARCH: x64-msvc17
configuration: Release
CMAKE_GENERATOR: "Visual Studio 17 2022 Win64"
MSVCVERSION: v143
MSVCYEAR: "vs2022"
MSVCABR: "17"
VC_VER: 17.0
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
platform: win32
ARCH: win32-msvc16
configuration: Release
CMAKE_GENERATOR: "Visual Studio 16 2019"
MSVCVERSION: v142
MSVCYEAR: "vs2019"
MSVCABR: "16"
VC_VER: 16.0
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
platform: x64
ARCH: x64-msvc16
configuration: Release
CMAKE_GENERATOR: "Visual Studio 16 2019 Win64"
MSVCVERSION: v142
MSVCYEAR: "vs2019"
MSVCABR: "16"
VC_VER: 16.0
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
platform: win32
ARCH: win32-msvc15
Expand All @@ -14,13 +51,6 @@ environment:
MSVCYEAR: "vs2017"
MSVCABR: "15"
VC_VER: 15.0
PYTHONPATH: c:\Python35\
PYTHONPATHOMNI: "/cygdrive/c/Python35/python"
BOOST_ROOT: C:\Libraries\boost_1_63_0
ZMQ_BASE: C:\projects\libzmq
IDL_BASE: C:\projects\tangoidl
IDL_BIN: C:\Program Files\tangoidl
OMNI_BASE: C:\projects\omniORB-4.2.1
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
platform: x64
ARCH: x64-msvc15
Expand All @@ -30,13 +60,6 @@ environment:
MSVCYEAR: "vs2017"
MSVCABR: "15"
VC_VER: 15.0
PYTHONPATH: c:\Python35-x64\
PYTHONPATHOMNI: "/cygdrive/c/Python35-x64/python"
BOOST_ROOT: C:\Libraries\boost_1_63_0
ZMQ_BASE: C:\projects\libzmq
IDL_BASE: C:\projects\tangoidl
IDL_BIN: C:\Program Files\tangoidl
OMNI_BASE: C:\projects\omniORB-4.2.1
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
platform: win32
ARCH: win32-msvc9
Expand All @@ -46,12 +69,6 @@ environment:
MSVCYEAR: "vs2008"
MSVCABR: "9"
VC_VER: 9.0
PYTHONPATHOMNI: "/cygdrive/c/Python27/python"
BOOST_ROOT: C:\Libraries\boost_1_63_0
ZMQ_BASE: C:\projects\libzmq
IDL_BASE: C:\projects\tangoidl
IDL_BIN: C:\Program Files (x86)\tangoidl
OMNI_BASE: C:\projects\omniORB-4.2.1
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
platform: x64
ARCH: x64-msvc9
Expand All @@ -61,12 +78,6 @@ environment:
MSVCYEAR: "vs2008"
MSVCABR: "9"
VC_VER: 9.0
PYTHONPATHOMNI: "/cygdrive/c/Python27/python"
BOOST_ROOT: C:\Libraries\boost_1_63_0
ZMQ_BASE: C:\projects\libzmq
IDL_BASE: C:\projects\tangoidl
IDL_BIN: C:\Program Files\tangoidl
OMNI_BASE: C:\projects\omniORB-4.2.1
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
platform: win32
ARCH: win32-msvc10
Expand All @@ -76,13 +87,6 @@ environment:
MSVCYEAR: "vs2010"
MSVCABR: "10"
VC_VER: 10.0
PYTHONPATH: c:\Python33\
PYTHONPATHOMNI: "/cygdrive/c/Python33/python"
BOOST_ROOT: C:\Libraries\boost_1_63_0
ZMQ_BASE: C:\projects\libzmq
IDL_BASE: C:\projects\tangoidl
IDL_BIN: C:\Program Files (x86)\tangoidl
OMNI_BASE: C:\projects\omniORB-4.2.1
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
platform: x64
ARCH: x64-msvc10
Expand All @@ -92,13 +96,6 @@ environment:
MSVCYEAR: "vs2010"
MSVCABR: "10"
VC_VER: 10.0
PYTHONPATH: c:\Python33-x64\
PYTHONPATHOMNI: "/cygdrive/c/Python33-x64/python"
BOOST_ROOT: C:\Libraries\boost_1_63_0
ZMQ_BASE: C:\projects\libzmq
IDL_BASE: C:\projects\tangoidl
IDL_BIN: C:\Program Files\tangoidl
OMNI_BASE: C:\projects\omniORB-4.2.1
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
platform: win32
ARCH: win32-msvc12
Expand All @@ -108,12 +105,6 @@ environment:
MSVCYEAR: "vs2013"
MSVCABR: "13"
VC_VER: 13.0
PYTHONPATHOMNI: "/cygdrive/c/Python33/python"
BOOST_ROOT: C:\Libraries\boost_1_63_0
ZMQ_BASE: C:\projects\libzmq
IDL_BASE: C:\projects\tangoidl
IDL_BIN: C:\Program Files\tangoidl
OMNI_BASE: C:\projects\omniORB-4.2.1
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
platform: x64
ARCH: x64-msvc12
Expand All @@ -123,12 +114,6 @@ environment:
MSVCYEAR: "vs2013"
MSVCABR: "13"
VC_VER: 13.0
PYTHONPATHOMNI: "/cygdrive/c/Python33-x64/python"
BOOST_ROOT: C:\Libraries\boost_1_63_0
ZMQ_BASE: C:\projects\libzmq
IDL_BASE: C:\projects\tangoidl
IDL_BIN: C:\Program Files\tangoidl
OMNI_BASE: C:\projects\omniORB-4.2.1
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
platform: win32
ARCH: win32-msvc14
Expand All @@ -138,13 +123,6 @@ environment:
MSVCYEAR: "vs2015"
MSVCABR: "14"
VC_VER: 14.0
PYTHONPATH: c:\Python35\
PYTHONPATHOMNI: "/cygdrive/c/Python35/python"
BOOST_ROOT: C:\Libraries\boost_1_63_0
ZMQ_BASE: C:\projects\libzmq
IDL_BASE: C:\projects\tangoidl
IDL_BIN: C:\Program Files\tangoidl
OMNI_BASE: C:\projects\omniORB-4.2.1
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
platform: x64
ARCH: x64-msvc14
Expand All @@ -154,18 +132,15 @@ environment:
MSVCYEAR: "vs2015"
MSVCABR: "14"
VC_VER: 14.0
PYTHONPATH: c:\Python35-x64\
PYTHONPATHOMNI: "/cygdrive/c/Python35-x64/python"
BOOST_ROOT: C:\Libraries\boost_1_63_0
ZMQ_BASE: C:\projects\libzmq
IDL_BASE: C:\projects\tangoidl
IDL_BIN: C:\Program Files\tangoidl
OMNI_BASE: C:\projects\omniORB-4.2.1
init:
# Set variable if perform old msvc patch and remove xamarin
- cmd: set OLD_VERSION_PATCH=0
- cmd: if "%APPVEYOR_BUILD_WORKER_IMAGE%" NEQ "Visual Studio 2017" if "%APPVEYOR_BUILD_WORKER_IMAGE%" NEQ "Visual Studio 2019" if "%APPVEYOR_BUILD_WORKER_IMAGE%" NEQ "Visual Studio 2022" set OLD_VERSION_PATCH=1

# go to hell Xamarin (see http://help.appveyor.com/discussions/problems/4569)
- cmd: if "%APPVEYOR_BUILD_WORKER_IMAGE%" NEQ "Visual Studio 2017" del "C:\Program Files (x86)\MSBuild\4.0\Microsoft.Common.Targets\ImportAfter\Xamarin.Common.targets"
- cmd: if "%APPVEYOR_BUILD_WORKER_IMAGE%" NEQ "Visual Studio 2017" del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
- cmd: if "%APPVEYOR_BUILD_WORKER_IMAGE%" NEQ "Visual Studio 2017" del "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
- cmd: if %OLD_VERSION_PATCH%==1 del "C:\Program Files (x86)\MSBuild\4.0\Microsoft.Common.Targets\ImportAfter\Xamarin.Common.targets"
- cmd: if %OLD_VERSION_PATCH%==1 del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
- cmd: if %OLD_VERSION_PATCH%==1 del "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
#RDP from start
#- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
#Pthread-Win32
Expand All @@ -176,11 +151,11 @@ init:
- cmd: 7z -y x pthreads-w32-2-9-1-release.zip -oC:\projects\pthreads-win32-src\
#VS2008 patch
- cmd: cd "C:\projects\"
- cmd: if "%APPVEYOR_BUILD_WORKER_IMAGE%" NEQ "Visual Studio 2017" appveyor DownloadFile https://github.com/menpo/condaci/raw/master/vs2008_patch.zip
- cmd: if "%APPVEYOR_BUILD_WORKER_IMAGE%" NEQ "Visual Studio 2017" 7z -y x vs2008_patch.zip -oC:\projects\vs2008_patch\
- cmd: if %OLD_VERSION_PATCH%==1 appveyor DownloadFile https://github.com/menpo/condaci/raw/master/vs2008_patch.zip
- cmd: if %OLD_VERSION_PATCH%==1 7z -y x vs2008_patch.zip -oC:\projects\vs2008_patch\
- cmd: if %ARCH%==x64-msvc9 call C:\projects\vs2008_patch\setup_x64.bat
- cmd: if %ARCH%==x32-msvc9 call C:\projects\vs2008_patch\setup_x86.bat
- cmd: if "%APPVEYOR_BUILD_WORKER_IMAGE%" NEQ "Visual Studio 2017" copy "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat" "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\vcvarsamd64.bat"
- cmd: if %OLD_VERSION_PATCH%==1 copy "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat" "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\vcvarsamd64.bat"
- cmd: cd "C:\projects\Pthread_WIN32"

install:
Expand All @@ -203,9 +178,13 @@ install:
- cmd: if %ARCH%==x64-msvc14 call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64
- cmd: if %ARCH%==win32-msvc15 call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"
- cmd: if %ARCH%==x64-msvc15 call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
- cmd: if %ARCH%==win32-msvc16 call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat"
- cmd: if %ARCH%==x64-msvc16 call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
- cmd: if %ARCH%==win32-msvc17 call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars32.bat"
- cmd: if %ARCH%==x64-msvc17 call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"

- cmd: echo "Generator='%CMAKE_GENERATOR%'"
- cmd: echo "Platform='%Platform%'"
- cmd: set PYTHONPATH=%PYTHONPATH%
- cmd: set ARCH=%ARCH%

clone_folder: C:\projects\Pthread_WIN32
Expand All @@ -220,6 +199,11 @@ build_script:
- cmd: if %ARCH%==x64-msvc14 move /Y C:\projects\Pthread_WIN32\Makefile C:\projects\pthreads-win32-src\pthreads.2\Makefile
- cmd: if %ARCH%==x64-msvc15 move /Y C:\projects\Pthread_WIN32\Makefile C:\projects\pthreads-win32-src\pthreads.2\Makefile
- cmd: if %ARCH%==win32-msvc15 move /Y C:\projects\Pthread_WIN32\Makefile C:\projects\pthreads-win32-src\pthreads.2\Makefile
- cmd: if %ARCH%==x64-msvc16 move /Y C:\projects\Pthread_WIN32\Makefile C:\projects\pthreads-win32-src\pthreads.2\Makefile
- cmd: if %ARCH%==win32-msvc16 move /Y C:\projects\Pthread_WIN32\Makefile C:\projects\pthreads-win32-src\pthreads.2\Makefile
- cmd: if %ARCH%==x64-msvc17 move /Y C:\projects\Pthread_WIN32\Makefile C:\projects\pthreads-win32-src\pthreads.2\Makefile
- cmd: if %ARCH%==win32-msvc17 move /Y C:\projects\Pthread_WIN32\Makefile C:\projects\pthreads-win32-src\pthreads.2\Makefile

- cmd: type "C:\projects\pthreads-win32-src\pthreads.2\Makefile"
- cmd: cd C:/projects/pthreads-win32-src/pthreads.2
- cmd: nmake VC-static
Expand Down Expand Up @@ -250,9 +234,9 @@ build_script:
after_build:
- cmd: cd "C:/projects/Pthread_WIN32"
# Generating zip
- cmd: 7z a pthreads-win32-2.9.1_%ARCH%.zip C:/projects/Pthread_WIN32\bin\
- cmd: 7z a pthreads-win32-2.9.1_%ARCH%.zip C:/projects/Pthread_WIN32\lib\
- cmd: 7z a pthreads-win32-2.9.1_%ARCH%.zip C:/projects/Pthread_WIN32\include\
- cmd: 7z a pthreads-win32-%TAG%_%ARCH%.zip C:/projects/Pthread_WIN32\bin\
- cmd: 7z a pthreads-win32-%TAG%_%ARCH%.zip C:/projects/Pthread_WIN32\lib\
- cmd: 7z a pthreads-win32-%TAG%_%ARCH%.zip C:/projects/Pthread_WIN32\include\


on_finish:
Expand Down