7
7
steps :
8
8
- script : .\vcpkg\bootstrap-vcpkg.bat
9
9
displayName : Bootstrap vcpkg
10
- - script : .\vcpkg\vcpkg.exe install zlib openssl boost-system boost-date-time boost-regex boost-interprocess websocketpp
10
+ - script : .\vcpkg\vcpkg.exe install zlib openssl boost-system boost-date-time boost-regex boost-interprocess websocketpp brotli
11
11
displayName : vcpkg install dependencies
12
12
- script : mkdir build.common
13
13
displayName : Make Build Directory
14
14
- task : CMake@1
15
15
inputs :
16
16
workingDirectory : ' build.common'
17
- cmakeArgs : ' -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake ..'
17
+ cmakeArgs : ' -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake -DCPPREST_EXCLUDE_BROTLI=OFF ..'
18
18
- task : MSBuild@1
19
19
inputs :
20
20
solution : ' build.common/ALL_BUILD.vcxproj'
@@ -38,14 +38,14 @@ jobs:
38
38
steps :
39
39
- script : .\vcpkg\bootstrap-vcpkg.bat
40
40
displayName : Bootstrap vcpkg
41
- - script : .\vcpkg\vcpkg.exe install zlib openssl boost-system boost-date-time boost-regex boost-interprocess websocketpp --triplet x64-windows
41
+ - script : .\vcpkg\vcpkg.exe install zlib openssl boost-system boost-date-time boost-regex boost-interprocess websocketpp brotli --triplet x64-windows
42
42
displayName : vcpkg install dependencies
43
43
- script : mkdir build.common
44
44
displayName : Make Build Directory
45
45
- task : CMake@1
46
46
inputs :
47
47
workingDirectory : ' build.common'
48
- cmakeArgs : ' -A x64 -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake ..'
48
+ cmakeArgs : ' -A x64 -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake -DCPPREST_EXCLUDE_BROTLI=OFF ..'
49
49
- task : MSBuild@1
50
50
inputs :
51
51
solution : ' build.common/ALL_BUILD.vcxproj'
@@ -71,14 +71,14 @@ jobs:
71
71
steps :
72
72
- script : .\vcpkg\bootstrap-vcpkg.bat
73
73
displayName : Bootstrap vcpkg
74
- - script : .\vcpkg\vcpkg.exe install zlib openssl boost-system boost-date-time boost-regex boost-interprocess websocketpp
74
+ - script : .\vcpkg\vcpkg.exe install zlib openssl boost-system boost-date-time boost-regex boost-interprocess websocketpp brotli
75
75
displayName : vcpkg install dependencies
76
76
- script : mkdir build.common
77
77
displayName : Make Build Directory
78
78
- task : CMake@1
79
79
inputs :
80
80
workingDirectory : ' build.common'
81
- cmakeArgs : ' -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake ..'
81
+ cmakeArgs : ' -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake -DCPPREST_EXCLUDE_BROTLI=OFF ..'
82
82
- task : MSBuild@1
83
83
inputs :
84
84
solution : ' build.common/ALL_BUILD.vcxproj'
@@ -102,14 +102,14 @@ jobs:
102
102
steps :
103
103
- script : .\vcpkg\bootstrap-vcpkg.bat
104
104
displayName : Bootstrap vcpkg
105
- - script : .\vcpkg\vcpkg.exe install zlib openssl boost-system boost-date-time boost-regex boost-interprocess websocketpp --triplet x64-windows
105
+ - script : .\vcpkg\vcpkg.exe install zlib openssl boost-system boost-date-time boost-regex boost-interprocess websocketpp brotli --triplet x64-windows
106
106
displayName : vcpkg install dependencies
107
107
- script : mkdir build.common
108
108
displayName : Make Build Directory
109
109
- task : CMake@1
110
110
inputs :
111
111
workingDirectory : ' build.common'
112
- cmakeArgs : ' -A x64 -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake ..'
112
+ cmakeArgs : ' -A x64 -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake -DCPPREST_EXCLUDE_BROTLI=OFF ..'
113
113
- task : MSBuild@1
114
114
inputs :
115
115
solution : ' build.common/ALL_BUILD.vcxproj'
@@ -136,7 +136,7 @@ jobs:
136
136
- script : |
137
137
sudo apt-get install -y ppa-purge
138
138
sudo ppa-purge -y ppa:ondrej/php
139
- sudo apt-get install -y libboost-atomic-dev libboost-thread-dev libboost-system-dev libboost-date-time-dev libboost-regex-dev libboost-filesystem-dev libboost-random-dev libboost-chrono-dev libboost-serialization-dev libwebsocketpp-dev brotli openssl libssl-dev ninja-build
139
+ sudo apt-get install -y libboost-atomic-dev libboost-thread-dev libboost-system-dev libboost-date-time-dev libboost-regex-dev libboost-filesystem-dev libboost-random-dev libboost-chrono-dev libboost-serialization-dev libwebsocketpp-dev openssl libssl-dev ninja-build
140
140
displayName: Apt install dependencies
141
141
- script : |
142
142
mkdir build.debug
@@ -199,6 +199,7 @@ jobs:
199
199
- script : |
200
200
mkdir build.debug
201
201
mkdir build.release
202
+ mkdir build.release.static
202
203
displayName: Make Build Directories
203
204
- task : CMake@1
204
205
inputs :
@@ -208,6 +209,10 @@ jobs:
208
209
inputs :
209
210
workingDirectory : ' build.release'
210
211
cmakeArgs : ' -G Ninja -DCMAKE_BUILD_TYPE=Release ..'
212
+ - task : CMake@1
213
+ inputs :
214
+ workingDirectory : ' build.release.static'
215
+ cmakeArgs : ' -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF ..'
211
216
- script : |
212
217
cd build.debug
213
218
ninja
@@ -224,3 +229,7 @@ jobs:
224
229
cd build.release/Release/Binaries
225
230
./test_runner *test.dylib
226
231
displayName: 'Run tests, release'
232
+ - script : |
233
+ cd build.release.static
234
+ ninja
235
+ displayName: 'Run ninja, release static'
0 commit comments