1version: '{build}' 2 3clone_depth: 5 4 5matrix: 6 fast_finish: true 7 8install: 9 - cinst winflexbison 10 - win_flex --version 11 - win_bison --version 12 - appveyor DownloadFile https://www.winpcap.org/install/bin/WpdPack_4_1_2.zip 13 - 7z x .\WpdPack_4_1_2.zip -oc:\projects\libpcap\Win32 14 - appveyor DownloadFile https://nmap.org/npcap/dist/npcap-sdk-1.05.zip 15 - 7z x .\npcap-sdk-1.05.zip -oc:\projects\libpcap\Win32\npcap-sdk-1.05 16 - appveyor DownloadFile https://support.riverbed.com/bin/support/download?sid=l3vk3eu649usgu3rj60uncjqqu -FileName AirPcap_Devpack.zip 17 - 7z x .\AirPcap_Devpack.zip -oc:\projects\libpcap\Win32 18 19environment: 20 matrix: 21 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 22 GENERATOR: "MinGW Makefiles" 23 SDK: WpdPack 24 AIRPCAP: -DDISABLE_AIRPCAP=YES 25 MINGW_ROOT: C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0 26 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 27 GENERATOR: "MinGW Makefiles" 28 SDK: npcap-sdk-1.05 29 AIRPCAP: -DDISABLE_AIRPCAP=YES 30 MINGW_ROOT: C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0 31 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 32 GENERATOR: "Visual Studio 14 2015" 33 SDK: WpdPack 34 AIRPCAP: -DDISABLE_AIRPCAP=YES 35 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 36 GENERATOR: "Visual Studio 14 2015 Win64" 37 SDK: WpdPack 38 AIRPCAP: -DDISABLE_AIRPCAP=YES 39 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 40 GENERATOR: "Visual Studio 14 2015" 41 SDK: npcap-sdk-1.05 42 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 43 GENERATOR: "Visual Studio 14 2015 Win64" 44 SDK: npcap-sdk-1.05 45 AIRPCAP: -DDISABLE_AIRPCAP=YES 46 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 47 GENERATOR: "Visual Studio 15 2017" 48 SDK: WpdPack 49 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 50 GENERATOR: "Visual Studio 15 2017 Win64" 51 SDK: WpdPack 52 AIRPCAP: -DDISABLE_AIRPCAP=YES 53 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 54 GENERATOR: "Visual Studio 15 2017" 55 SDK: npcap-sdk-1.05 56 AIRPCAP: -DDISABLE_AIRPCAP=YES 57 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 58 GENERATOR: "Visual Studio 15 2017 Win64" 59 SDK: npcap-sdk-1.05 60 AIRPCAP: -DDISABLE_AIRPCAP=YES 61 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 62 GENERATOR: "Visual Studio 15 2017 Win64" 63 SDK: npcap-sdk-1.05 64 AIRPCAP: -DDISABLE_AIRPCAP=NO 65 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 66 GENERATOR: "Visual Studio 16 2019" 67 PLATFORM: Win32 68 SDK: WpdPack 69 AIRPCAP: -DDISABLE_AIRPCAP=YES 70 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 71 GENERATOR: "Visual Studio 16 2019" 72 PLATFORM: x64 73 SDK: WpdPack 74 AIRPCAP: -DDISABLE_AIRPCAP=YES 75 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 76 GENERATOR: "Visual Studio 16 2019" 77 PLATFORM: Win32 78 SDK: npcap-sdk-1.05 79 AIRPCAP: -DDISABLE_AIRPCAP=YES 80 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 81 GENERATOR: "Visual Studio 16 2019" 82 PLATFORM: x64 83 SDK: npcap-sdk-1.05 84 AIRPCAP: -DDISABLE_AIRPCAP=YES 85 - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 86 GENERATOR: "Visual Studio 16 2019" 87 PLATFORM: x64 88 SDK: npcap-sdk-1.05 89 AIRPCAP: -DDISABLE_AIRPCAP=NO 90 91build_script: 92 # 93 # Appveyor defaults to cmd.exe, so use cmd.exe syntax. 94 # 95 - type NUL >.devel 96 - md build 97 - cd build 98 # Remove the default MinGW path 99 - if "%GENERATOR%"=="MinGW Makefiles" set PATH=%PATH:C:\MinGW\bin;=% 100 # Add the specified MinGW path 101 - if "%GENERATOR%"=="MinGW Makefiles" set PATH=%MINGW_ROOT%\mingw64\bin;%PATH% 102 # Remove the path to Git, so that we don't pick up its sh.exe, as 103 # that breaks MinGW builds - CMake checks for that and fails in the 104 # configuration stage 105 - if "%GENERATOR%"=="MinGW Makefiles" set PATH=%PATH:C:\Program Files\Git\usr\bin;=% 106 - if NOT DEFINED PLATFORM cmake %AIRPCAP% -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -G"%GENERATOR%" -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -G"%GENERATOR%" -DAirPcap_ROOT=c:\projects\libpcap\Win32\Airpcap_Devpack -G"%GENERATOR%" .. 107 - if DEFINED PLATFORM cmake %AIRPCAP% -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -G"%GENERATOR%" -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -G"%GENERATOR%" -DAirPcap_ROOT=c:\projects\libpcap\Win32\Airpcap_Devpack -G"%GENERATOR%" -A %PLATFORM% .. 108 - if NOT "%GENERATOR%"=="MinGW Makefiles" msbuild /m /nologo /p:Configuration=Release pcap.sln 109 - if "%GENERATOR%"=="MinGW Makefiles" mingw32-make 110