| 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 |
| 5 |
@echo off |
| 6 |
|
| 7 |
set cmake_dir=dynamic_build |
| 8 |
set build-root=%~dp0.. |
| 9 |
@REM // resolve to fully qualified path |
| 10 |
for %%i in ("%build-root%") do set build-root=%%~fi |
| 11 |
|
| 12 |
if EXIST %build-root%\cmake\%cmake_dir% ( |
| 13 |
rmdir /s/q %build-root%\cmake\%cmake_dir% |
| 14 |
) |
| 15 |
mkdir %build-root%\cmake\%cmake_dir% |
| 16 |
if errorlevel 1 goto :eof |
| 17 |
|
| 18 |
cd %build-root%\cmake\%cmake_dir% |
| 19 |
|
| 20 |
cmake -Dskip_samples=ON -Dbuild_as_dynamic=ON ..\.. |
| 21 |
if errorlevel 1 goto :eof |
| 22 |
|
| 23 |
cmake --build . -- /m |
| 24 |
if errorlevel 1 goto :eof |