OLD | NEW |
---|---|
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'dart:io'; | 5 import 'dart:io'; |
6 import 'dart:uri'; | 6 import 'dart:uri'; |
7 | 7 |
8 import '../../sdk/lib/_internal/compiler/implementation/util/uri_extras.dart'; | 8 import '../../sdk/lib/_internal/compiler/implementation/util/uri_extras.dart'; |
9 import '../../sdk/lib/_internal/compiler/implementation/filenames.dart'; | 9 import '../../sdk/lib/_internal/compiler/implementation/filenames.dart'; |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... | |
29 List<String> productionScript = buildScript( | 29 List<String> productionScript = buildScript( |
30 'dart2js-production', | 30 'dart2js-production', |
31 dartUri, dartVmUri, | 31 dartUri, dartVmUri, |
32 'sdk/lib/_internal/compiler/implementation/dart2js.dart', ''); | 32 'sdk/lib/_internal/compiler/implementation/dart2js.dart', ''); |
33 writeScript(productionUri, productionScript); | 33 writeScript(productionUri, productionScript); |
34 | 34 |
35 List<String> developerScript = buildScript( | 35 List<String> developerScript = buildScript( |
36 'dart2js-developer', | 36 'dart2js-developer', |
37 dartUri, dartVmUri, | 37 dartUri, dartVmUri, |
38 'sdk/lib/_internal/compiler/implementation/dart2js.dart', | 38 'sdk/lib/_internal/compiler/implementation/dart2js.dart', |
39 r' ${DART_VM_FLAGS:---enable_checked_mode}'); | 39 ' --enable_checked_mode'); |
floitsch
2012/11/27 15:42:26
no need to revert this one. right?
erikcorry
2012/12/11 08:36:27
True
| |
40 writeScript(developerUri, developerScript); | 40 writeScript(developerUri, developerScript); |
41 | 41 |
42 List<String> dartdocScript = buildScript( | 42 List<String> dartdocScript = buildScript( |
43 'dartdoc', | 43 'dartdoc', |
44 dartUri, dartVmUri, | 44 dartUri, dartVmUri, |
45 'sdk/lib/_internal/dartdoc/bin/dartdoc.dart', ''); | 45 'sdk/lib/_internal/dartdoc/bin/dartdoc.dart', ''); |
46 writeScript(dartdocUri, dartdocScript); | 46 writeScript(dartdocUri, dartdocScript); |
47 } | 47 } |
48 | 48 |
49 writeScript(Uri uri, List<String> scripts) { | 49 writeScript(Uri uri, List<String> scripts) { |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
142 REM Does the path have a trailing slash? If so, remove it. | 142 REM Does the path have a trailing slash? If so, remove it. |
143 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% | 143 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% |
144 | 144 |
145 set arguments=%* | 145 set arguments=%* |
146 set SNAPSHOTNAME=%SCRIPTPATH%dart2js.snapshot | 146 set SNAPSHOTNAME=%SCRIPTPATH%dart2js.snapshot |
147 if exist %SNAPSHOTNAME% set SNAPSHOT=--use_script_snapshot=%SNAPSHOTNAME% | 147 if exist %SNAPSHOTNAME% set SNAPSHOT=--use_script_snapshot=%SNAPSHOTNAME% |
148 | 148 |
149 "%SCRIPTPATH%\dart.exe"$options %SNAPSHOT% "%SCRIPTPATH%$pathWin" %arguments% | 149 "%SCRIPTPATH%\dart.exe"$options %SNAPSHOT% "%SCRIPTPATH%$pathWin" %arguments% |
150 '''.replaceAll('\n', '\r\n')]; | 150 '''.replaceAll('\n', '\r\n')]; |
151 } | 151 } |
OLD | NEW |