| 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 /// Set of flags and options passed to the compiler | 5 /// Set of flags and options passed to the compiler |
| 6 library dev_compiler.src.options; | |
| 7 | 6 |
| 8 import 'dart:io'; | 7 import 'dart:io'; |
| 9 | 8 |
| 10 import 'package:args/args.dart'; | 9 import 'package:args/args.dart'; |
| 11 import 'package:cli_util/cli_util.dart' show getSdkDir; | 10 import 'package:cli_util/cli_util.dart' show getSdkDir; |
| 12 import 'package:logging/logging.dart' show Level; | 11 import 'package:logging/logging.dart' show Level; |
| 13 import 'package:path/path.dart' as path; | 12 import 'package:path/path.dart' as path; |
| 14 import 'package:yaml/yaml.dart'; | 13 import 'package:yaml/yaml.dart'; |
| 15 | 14 |
| 16 import 'utils.dart' show parseEnum, getEnumName; | 15 import 'utils.dart' show parseEnum, getEnumName; |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 // The pub-cache directory is two levels up, but we verify that the layout | 408 // The pub-cache directory is two levels up, but we verify that the layout |
| 410 // looks correct. | 409 // looks correct. |
| 411 if (path.basename(dir) != 'dev_compiler') return null; | 410 if (path.basename(dir) != 'dev_compiler') return null; |
| 412 dir = path.dirname(dir); | 411 dir = path.dirname(dir); |
| 413 if (path.basename(dir) != 'global_packages') return null; | 412 if (path.basename(dir) != 'global_packages') return null; |
| 414 dir = path.dirname(dir); | 413 dir = path.dirname(dir); |
| 415 return path.join(dir, cacheDir, 'lib', 'runtime'); | 414 return path.join(dir, cacheDir, 'lib', 'runtime'); |
| 416 } | 415 } |
| 417 return null; | 416 return null; |
| 418 } | 417 } |
| OLD | NEW |