3 @rem CREATED: 2nd November 1999
4 @rem LAST REVISED: 6th April 2001
5 @rem Batch file to toggle XDC flag setting, to link with XDC or not
6 @rem This file is called from MPKBuild.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_XDC%" == "" echo USE_XDC is removed, doesn't link with XDCDATA
18 if not "%USE_XDC%" == "" echo USE_XDC is set, links with XDCDATA, XDCFLAGS = %XDCFLAGS%
23 echo ....USE_XDC is set, links with XDCDATA
24 if "%2" == "" SET XDCFLAGS=-n
25 if not "%2" == "" SET XDCFLAGS=%2
26 if not "%3" == "" SET XDCFLAGS=%XDCFLAGS% %3
27 echo ....XDCFLAGS set to %XDCFLAGS%
33 echo ....USE_XDC is removed. doesn't link with XDCDATA
41 @echo "Usage: ToggleXDC [on|off] [[flag1] [flag2]]"
42 @echo "Usage: ToggleD2 /now" - To display current setting