Add scripts equivalent to the macos/linux scripts in sdk/bin.

Review URL: https://codereview.chromium.org//11366180

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14775 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
dgrove@google.com 2012-11-10 02:01:46 +00:00
parent 46adf67738
commit 2d8076e725
4 changed files with 63 additions and 0 deletions

16
sdk/bin/dart.bat Normal file
View file

@ -0,0 +1,16 @@
@echo off
REM Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
REM for details. All rights reserved. Use of this source code is governed by a
REM BSD-style license that can be found in the LICENSE file.
set SCRIPTPATH=%~dp0
REM Does the path have a trailing slash? If so, remove it.
if %SCRIPTPATH:~-1%== set SCRIPTPATH=%SCRIPTPATH:~0,-1%
REM DART_CONFIGURATION defaults to ReleaseIA32
if "%DART_CONFIGURATION%"=="" set DART_CONFIGURATION=ReleaseIA32
set arguments=%*
"%SCRIPTPATH%\..\..\build\%DART_CONFIGURATION%\dart.exe" %arguments%

15
sdk/bin/dart2js.bat Normal file
View file

@ -0,0 +1,15 @@
@echo off
REM Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
REM for details. All rights reserved. Use of this source code is governed by a
REM BSD-style license that can be found in the LICENSE file.
set SCRIPTPATH=%~dp0
REM Does the path have a trailing slash? If so, remove it.
if %SCRIPTPATH:~-1%== set SCRIPTPATH=%SCRIPTPATH:~0,-1%
set arguments=%*
set SNAPSHOTNAME=%SCRIPTPATH%dart2js.snapshot
if exist %SNAPSHOTNAME% set SNAPSHOT=--use_script_snapshot=%SNAPSHOTNAME%
"%SCRIPTPATH%dart" --no_use_inlining --heap_growth_rate=32 %SNAPSHOT% "%SCRIPTPATH%..\lib\_internal\compiler\implementation\dart2js.dart" %arguments%

15
sdk/bin/dartdoc.bat Normal file
View file

@ -0,0 +1,15 @@
@echo off
REM Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
REM for details. All rights reserved. Use of this source code is governed by a
REM BSD-style license that can be found in the LICENSE file.
set SCRIPTPATH=%~dp0
REM Does the path have a trailing slash? If so, remove it.
if %SCRIPTPATH:~-1%== set SCRIPTPATH=%SCRIPTPATH:~0,-1%
set arguments=%*
set SNAPSHOTNAME=%SCRIPTPATH%dart2js.snapshot
if exist %SNAPSHOTNAME% set SNAPSHOT=--use_script_snapshot=%SNAPSHOTNAME%
"%SCRIPTPATH%dart" --no_use_inlining --heap_growth_rate=32 %SNAPSHOT% "%SCRIPTPATH%..\lib\_internal\dartdoc\bin\dartdoc.dart" %arguments%

17
sdk/bin/pub.bat Normal file
View file

@ -0,0 +1,17 @@
@echo off
REM Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
REM for details. All rights reserved. Use of this source code is governed by a
REM BSD-style license that can be found in the LICENSE file.
REM Run pub.dart on the Dart VM. This script assumes the Dart SDK's directory
REM structure.
set SCRIPTPATH=%~dp0
REM Does the string have a trailing slash? If so, remove it.
if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1%
REM Set DART_SDK so pub can find SDK packages.
set DART_SDK=%SCRIPTPATH%\..\
"%SCRIPTPATH%\dart" "%SCRIPTPATH%\..\util\pub\pub.dart" %*