3 @rem CREATED: 22nd May 2000
4 @rem LAST REVISED: 6th April 2001
5 @rem Batch file to set MPK/Non-MPK builds and toggle XDC flag setting
6 @rem This file calls ToggleXDC.bat
8 if "%1" == "" goto Usage
10 if "%1" == "/now" goto now
11 if "%1" == "on" goto yes
12 if "%1" == "off" goto no
13 if "%1" == "/?" goto usage
17 if "%USE_MPK%" == "" echo USE_MPK is removed, doesn't use MPK APIs
18 if not "%USE_MPK%" == "" echo USE_MPK is set, uses MPK APIs, MPKBASE set to %MPKBASE%
24 echo ....USE_MPK is set, uses MPK APIs
25 if "%2" == "" goto setdef
26 if "%2" == "default" goto setdef
29 call ToggleXDC on %3 %4
30 echo ....MPKBASE set to %MPKBASE%
36 if not "%2" == "" goto xdc_u
39 echo ....USE_MPK is removed. doesn't use MPK APIs
46 SET MPKBASE=p:\apps\mpk
50 call ToggleXDC on %2 %3
55 @echo "Usage: MPKBuild [on][off] [[path][default]] [[flag1] [flag2]]"
56 @echo "Usage: MPKBuild /now" - To display current setting
58 @echo ...Use MPK, path set to default and XDC set to -u :MPKBuild on
59 @echo ...Use MPK, path set to default and XDC set to -u :MPKBuild on default -n
60 @echo ...Use MPK, path set to "path" and XDC set to -n :MPKBuild on "path" -n
61 @echo ...Use MPK, path set to default and XDC set to -n, -u :MPKBuild on default -n -u
62 @echo ...No MPK, No XDC :MPKBuild off
63 @echo ...No MPK, Use XDC with -u flag :MPKBuild off -u