forked from pbatard/libwdi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
52 lines (47 loc) · 2.16 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
os: Visual Studio 2017
init:
- ps: >-
if ($env:appveyor_repo_tag -eq "true") {
Update-AppveyorBuild -Version "$env:appveyor_repo_tag_name"
} else {
Update-AppveyorBuild -Version "dev-$($env:appveyor_repo_commit.substring(0,7))"
}
- git config --global core.autocrlf input
environment:
global:
BITS: 32
matrix:
- CONFIGURATION: Release
COMPILER: MinGW
PLATFORM: i686
- CONFIGURATION: Release
COMPILER: MinGW
PLATFORM: x86_64
- CONFIGURATION: Debug
COMPILER: MSVC
PLATFORM: Win32
- CONFIGURATION: Debug
COMPILER: MSVC
PLATFORM: x64
- CONFIGURATION: Release
COMPILER: MSVC
PLATFORM: Win32
- CONFIGURATION: Release
COMPILER: MSVC
PLATFORM: x64
build:
project: libwdi.sln
parallel: true
verbosity: detailed
install:
- curl -o wdk10-redist.7z -L http://files.akeo.ie/appveyor/libwdi/wdk10-redist.7z
- curl -o libusb-win32-bin-1.2.6.0.zip -L http://files.akeo.ie/appveyor/libwdi/libusb-win32-bin-1.2.6.0.zip
- curl -o libusbK-3.0.7.0-bin.7z -L http://files.akeo.ie/appveyor/libwdi/libusbK-3.0.7.0-bin.7z
- 7z x wdk10-redist.7z
- 7z x libusb-win32-bin-1.2.6.0.zip
- 7z x libusbK-3.0.7.0-bin.7z
- if [%PLATFORM%]==[x86_64] set BITS=64
- if [%PLATFORM%]==[x86_64] set EXTRA_OPTS=--disable-32bit
build_script:
- if [%COMPILER%]==[MSVC] msbuild libwdi.sln /m /p:Configuration=%CONFIGURATION%,Platform=%PLATFORM%,BuildMacros="WDK_DIR=\"c:/projects/libwdi/wdk\";LIBUSB0_DIR=\"c:/projects/libwdi/libusb-win32-bin-1.2.6.0\";LIBUSBK_DIR=\"c:/projects/libwdi/libusbK-3.0.7.0-bin/bin\"" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- if [%COMPILER%]==[MinGW] C:\msys64\usr\bin\bash -lc "export PATH=/mingw%BITS%/bin:$PATH; cd /c/projects/libwdi; ./bootstrap.sh; ./configure --build=%PLATFORM%-w64-mingw32 --host=%PLATFORM%-w64-mingw32 --enable-toggable-debug --enable-examples-build --disable-debug --disable-shared %EXTRA_OPTS% --with-wdkdir=\"C:/Projects/libwdi/wdk\" --with-wdfver=1011 --with-libusb0=\"C:/Projects/libwdi/libusb-win32-bin-1.2.6.0\" --with-libusbk=\"C:/Projects/libwdi/libusbK-3.0.7.0-bin/bin\"; make -j4"