Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Side by Side Diff: tools/testing/dart/compiler_configuration.dart

Issue 1212513002: sdk files reorganization to make dart2js a proper package (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: renamed Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 RuntimeConfiguration runtimeConfiguration, 272 RuntimeConfiguration runtimeConfiguration,
273 String buildDir, 273 String buildDir,
274 TestInformation info, 274 TestInformation info,
275 List<String> vmOptions, 275 List<String> vmOptions,
276 List<String> sharedOptions, 276 List<String> sharedOptions,
277 List<String> originalArguments, 277 List<String> originalArguments,
278 CommandArtifact artifact) { 278 CommandArtifact artifact) {
279 Uri sdk = useSdk ? 279 Uri sdk = useSdk ?
280 nativeDirectoryToUri(buildDir).resolve('dart-sdk/') : 280 nativeDirectoryToUri(buildDir).resolve('dart-sdk/') :
281 nativeDirectoryToUri(TestUtils.dartDir.toNativePath()).resolve('sdk/'); 281 nativeDirectoryToUri(TestUtils.dartDir.toNativePath()).resolve('sdk/');
282 Uri preambleDir = sdk.resolve('lib/_internal/compiler/js_lib/preambles/'); 282 Uri preambleDir = sdk.resolve(
283 'lib/_internal/js_runtime/lib/preambles/');
283 return runtimeConfiguration.dart2jsPreambles(preambleDir) 284 return runtimeConfiguration.dart2jsPreambles(preambleDir)
284 ..add(artifact.filename); 285 ..add(artifact.filename);
285 } 286 }
286 } 287 }
287 288
288 /// Common configuration for analyzer-based tools, such as, dartanalyzer. 289 /// Common configuration for analyzer-based tools, such as, dartanalyzer.
289 class AnalyzerCompilerConfiguration extends CompilerConfiguration { 290 class AnalyzerCompilerConfiguration extends CompilerConfiguration {
290 final String moniker; 291 final String moniker;
291 292
292 AnalyzerCompilerConfiguration( 293 AnalyzerCompilerConfiguration(
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 // shipped SDK, that is the script is not installed in 359 // shipped SDK, that is the script is not installed in
359 // "$buildDir/dart-sdk/bin/" 360 // "$buildDir/dart-sdk/bin/"
360 return '$prefix/dartanalyzer_developer$suffix'; 361 return '$prefix/dartanalyzer_developer$suffix';
361 } 362 }
362 if (useSdk) { 363 if (useSdk) {
363 prefix = '$buildDir/dart-sdk/bin'; 364 prefix = '$buildDir/dart-sdk/bin';
364 } 365 }
365 return '$prefix/dartanalyzer$suffix'; 366 return '$prefix/dartanalyzer$suffix';
366 } 367 }
367 } 368 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698