-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildVS2017.cmd
32 lines (28 loc) · 1.06 KB
/
buildVS2017.cmd
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
@echo off
echo Info:
echo To Build Non WinRT, you will need the Developer Prompt/MSBuild for VS2017!
echo .
echo Usage:
echo %%1 (configuration options): debug(d), release(r) .. default is debug
echo %%2 (target options) : build(b), restore (r), clean(c) .. default is build
echo %%3 (include sample apps) : blank=components and utests, not blank=everything
echo Calling args: configuration: %1%, target: %2%, sample: %3%
if '%1' EQU 'h' (goto :eof)
set bconfig=debug
if '%1' NEQ '' (set bconfig=%1%)
if '%1' EQU 'd' (set bconfig=debug)
if '%1' EQU 'r' (set bconfig=release)
set btarget=build
if '%2' NEQ '' (set btarget=%2%)
if '%2' EQU 'b' (set btarget=build)
if '%2' EQU 'r' (set btarget=restore)
if '%2' EQU 'c' (set btarget=clean)
set bsampleapps=0
if '%3' NEQ '' (set bsampleapps=1)
echo Building using: target: %btarget%, configuration: %bconfig%, sample: %bsampleapps%
if %bsampleapps% EQU 1 (
msbuild LibsAndSamples.sln /m /t:%btarget% /p:configuration=%bconfig%
) else (
msbuild LibsNoSamples.sln /m /t:%btarget% /p:configuration=%bconfig%
)
)