OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library compiler_configuration; | 5 library compiler_configuration; |
6 | 6 |
7 import 'dart:io' show | 7 import 'dart:io' show |
8 Platform; | 8 Platform; |
9 | 9 |
10 import 'runtime_configuration.dart' show | 10 import 'runtime_configuration.dart' show |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 RuntimeConfiguration runtimeConfiguration, | 268 RuntimeConfiguration runtimeConfiguration, |
269 String buildDir, | 269 String buildDir, |
270 TestInformation info, | 270 TestInformation info, |
271 List<String> vmOptions, | 271 List<String> vmOptions, |
272 List<String> sharedOptions, | 272 List<String> sharedOptions, |
273 List<String> originalArguments, | 273 List<String> originalArguments, |
274 CommandArtifact artifact) { | 274 CommandArtifact artifact) { |
275 Uri sdk = useSdk ? | 275 Uri sdk = useSdk ? |
276 nativeDirectoryToUri(buildDir).resolve('dart-sdk/') : | 276 nativeDirectoryToUri(buildDir).resolve('dart-sdk/') : |
277 nativeDirectoryToUri(TestUtils.dartDir.toNativePath()).resolve('sdk/'); | 277 nativeDirectoryToUri(TestUtils.dartDir.toNativePath()).resolve('sdk/'); |
278 Uri preambleDir = sdk.resolve('lib/_internal/lib/preambles/'); | 278 Uri preambleDir = sdk.resolve('lib/_internal/compiler/js_lib/preambles/'); |
279 return runtimeConfiguration.dart2jsPreambles(preambleDir) | 279 return runtimeConfiguration.dart2jsPreambles(preambleDir) |
280 ..add(artifact.filename); | 280 ..add(artifact.filename); |
281 } | 281 } |
282 } | 282 } |
283 | 283 |
284 /// Configuration for dart2dart compiler. | 284 /// Configuration for dart2dart compiler. |
285 class Dart2dartCompilerConfiguration extends Dart2xCompilerConfiguration { | 285 class Dart2dartCompilerConfiguration extends Dart2xCompilerConfiguration { |
286 Dart2dartCompilerConfiguration({ | 286 Dart2dartCompilerConfiguration({ |
287 bool isDebug, | 287 bool isDebug, |
288 bool isChecked, | 288 bool isChecked, |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 bool isDebug, | 386 bool isDebug, |
387 bool isChecked, | 387 bool isChecked, |
388 bool isHostChecked, | 388 bool isHostChecked, |
389 bool useSdk}) | 389 bool useSdk}) |
390 : super( | 390 : super( |
391 'dart2analyzer', isDebug: isDebug, isChecked: isChecked, | 391 'dart2analyzer', isDebug: isDebug, isChecked: isChecked, |
392 isHostChecked: isHostChecked, useSdk: useSdk); | 392 isHostChecked: isHostChecked, useSdk: useSdk); |
393 | 393 |
394 String computeCompilerPath(String buildDir) => 'editor/tools/analyzer'; | 394 String computeCompilerPath(String buildDir) => 'editor/tools/analyzer'; |
395 } | 395 } |
OLD | NEW |