| 1 |
@REM Copyright (c) Microsoft. All rights reserved. |
| 2 |
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information. |
| 3 |
|
| 4 |
@setlocal EnableExtensions EnableDelayedExpansion |
| 5 |
|
| 6 |
set build-root=%~dp0.. |
| 7 |
rem // resolve to fully qualified path |
| 8 |
for %%i in ("%build-root%") do set build-root=%%~fi |
| 9 |
|
| 10 |
rem ----------------------------------------------------------------------------- |
| 11 |
rem -- build solution with CMake |
| 12 |
rem ----------------------------------------------------------------------------- |
| 13 |
|
| 14 |
rmdir /s/q "%USERPROFILE%\cmake_ce8" |
| 15 |
rem no error checking |
| 16 |
|
| 17 |
mkdir "%USERPROFILE%\cmake_ce8" |
| 18 |
rem no error checking |
| 19 |
|
| 20 |
pushd "%USERPROFILE%\cmake_ce8" |
| 21 |
|
| 22 |
rem if you plan to use a different SDK you need to change SDKNAME to the name of your SDK. Ensure that this is also changed in the sample solutions iothub_client_sample_http, simplesample_http and remote_monitoring |
| 23 |
set SDKNAME=TORADEX_CE800 |
| 24 |
set PROCESSOR=arm |
| 25 |
|
| 26 |
cmake -DWINCE=TRUE -DCMAKE_SYSTEM_NAME=WindowsCE -DCMAKE_SYSTEM_VERSION=8.0 -DCMAKE_SYSTEM_PROCESSOR=%PROCESSOR% -DCMAKE_GENERATOR_TOOLSET=CE800 -DCMAKE_GENERATOR_PLATFORM=%SDKNAME% %build-root% |
| 27 |
|
| 28 |
if not %errorlevel%==0 exit /b %errorlevel% |
| 29 |
|
| 30 |
msbuild "%USERPROFILE%\cmake_ce8\testrunnerswitcher.sln |
| 31 |
if not %errorlevel%==0 exit /b %errorlevel% |
| 32 |
|
| 33 |
cd %build-root% |