forked from analogdevicesinc/libiio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
64 lines (58 loc) · 2.55 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
53
54
55
56
57
58
59
60
61
62
63
64
version: 2015.1.{build}
clone_depth: 1
skip_commits:
message: /(iiod|IIOD):.*/
install:
- echo "Checking out sub-modules..."
- git submodule update --init
- echo "Downloading deps..."
- cd c:\
- appveyor DownloadFile http://swdownloads.analog.com/cse/build/libiio-win-deps.zip
- 7z x -y "c:\libiio-win-deps.zip" > nul
- choco install InnoSetup
- set PATH=%PATH%;"C:\Program Files (x86)\Inno Setup 5"
build_script:
- echo "Running cmake for Win32..."
- mkdir c:\projects\libiio\build-win32
- cd c:\projects\libiio\build-win32
- set MCS_EXECUTABLE_PATH="C:\Windows\Microsoft.NET\Framework\v4.0.30319"
- cmake -G "Visual Studio 12" -DCMAKE_BUILD_TYPE:STRING=Release \
-DENABLE_IPV6:BOOL=OFF -DCMAKE_SYSTEM_PREFIX_PATH="C:" \
-DLIBXML2_LIBRARIES="C:\\libs\\32\\libxml2.lib" \
-DLIBUSB_LIBRARIES="C:\\libs\\32\\libusb-1.0.lib" \
-DLIBSERIALPORT_LIBRARIES="C:\\libs\\32\\libserialport.dll.a" \
..
- cmake --build . --config Release
- echo "Running cmake for Win64..."
- mkdir c:\projects\libiio\build-win64
- cd c:\projects\libiio\build-win64
- cmake -G "Visual Studio 12 Win64" -DCMAKE_BUILD_TYPE:STRING=Release \
-DENABLE_IPV6:BOOL=OFF -DCSHARP_BINDINGS:BOOL=OFF \
-DLIBXML2_LIBRARIES="C:\\libs\\64\\libxml2.lib" \
-DLIBUSB_LIBRARIES="C:\\libs\\64\\libusb-1.0.lib" \
-DLIBSERIALPORT_LIBRARIES="C:\\libs\\64\\libserialport.dll.a" \
-DCMAKE_SYSTEM_PREFIX_PATH="C:" \
..
- cmake --build . --config Release
- ISCC C:\projects\libiio\build-win32\libiio.iss
- appveyor PushArtifact C:\libiio-setup.exe
# Create ZIP packages as well
- cd c:\projects\libiio
- mkdir c:\libiio-win32
- copy iio.h c:\libiio-win32\
- copy build-win32\Release\libiio.* c:\libiio-win32\
- copy build-win32\tests\Release\*.exe c:\libiio-win32\
- copy c:\libs\32\libxml2.dll c:\libiio-win32\
- copy c:\libs\32\libusb-1.0.dll c:\libiio-win32\
- copy c:\libs\32\libserialport-0.dll c:\libiio-win32\
- 7z a "c:\libiio-win32.zip" c:\libiio-win32
- appveyor PushArtifact c:\libiio-win32.zip
- mkdir c:\libiio-win64
- copy iio.h c:\libiio-win64\
- copy build-win64\Release\libiio.* c:\libiio-win64\
- copy build-win64\tests\Release\*.exe c:\libiio-win64\
- copy c:\libs\64\libxml2.dll c:\libiio-win64\
- copy c:\libs\64\libusb-1.0.dll c:\libiio-win64\
- copy c:\libs\64\libserialport-0.dll c:\libiio-win64\
- 7z a "c:\libiio-win64.zip" c:\libiio-win64
- appveyor PushArtifact c:\libiio-win64.zip