Skip to content

Commit b72a910

Browse files
authored
Fix UWP missing header (#955)
* Fix UWP missing header. * Add UWP validation build to Pipelines.
1 parent 5027cab commit b72a910

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

Release/src/streams/fileio_winrt.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
****/
1818
#include "stdafx.h"
1919
#include "cpprest/details/fileio.h"
20+
#include "cpprest/interopstream.h"
2021
#include "robuffer.h"
2122

2223
using namespace ::Windows::Foundation;

azure-pipelines.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,25 @@ jobs:
6565
cd build.common\Release\Binaries\Release
6666
.\test_runner.exe *test.dll
6767
displayName: 'Run tests, release'
68+
- job: Windows_VS2017_UWP
69+
pool:
70+
vmImage: 'vs2017-win2016'
71+
steps:
72+
- script: .\vcpkg\bootstrap-vcpkg.bat
73+
displayName: Bootstrap vcpkg
74+
- script: .\vcpkg\vcpkg.exe install zlib --triplet x64-uwp
75+
displayName: vcpkg install dependencies
76+
- script: mkdir build.common
77+
displayName: Make Build Directory
78+
- task: CMake@1
79+
inputs:
80+
workingDirectory: 'build.common'
81+
cmakeArgs: '-A x64 -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 ..'
82+
- task: MSBuild@1
83+
inputs:
84+
solution: 'build.common/ALL_BUILD.vcxproj'
85+
maximumCpuCount: true
86+
platform: 'x64'
6887
- job: Windows_VS2015_x86
6988
pool:
7089
vmImage: 'vs2015-win2012r2'
@@ -302,4 +321,4 @@ jobs:
302321
- script: |
303322
cd Build_iOS
304323
./configure.sh
305-
displayName: 'Build for iOS'
324+
displayName: 'Build for iOS'

0 commit comments

Comments
 (0)