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

Unified Diff: frog/reader.dart

Issue 8619005: Initial CL to create SDK directory (this will be done as a build step). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: frog/reader.dart
===================================================================
--- frog/reader.dart (revision 1719)
+++ frog/reader.dart (working copy)
@@ -9,15 +9,30 @@
class LibraryReader {
Map _specialLibs;
LibraryReader() {
- _specialLibs = {
- 'dart:core': joinPaths(options.libDir, 'corelib.dart'),
- 'dart:coreimpl': joinPaths(options.libDir, 'corelib_impl.dart'),
- 'dart:html': joinPaths(options.libDir,
- '../../client/html/release/html.dart'),
- 'dart:dom': joinPaths(options.libDir,
- '../../client/dom/frog/frog_dom.dart'),
- 'dart:json': joinPaths(options.libDir, 'json.dart'),
- };
+ if (options.config == 'dev') {
+ _specialLibs = {
+ 'dart:core': joinPaths(options.libDir, 'corelib.dart'),
+ 'dart:coreimpl': joinPaths(options.libDir, 'corelib_impl.dart'),
+ 'dart:html': joinPaths(options.libDir,
+ '../../client/html/release/html.dart'),
+ 'dart:dom': joinPaths(options.libDir,
+ '../../client/dom/frog/frog_dom.dart'),
+ 'dart:json': joinPaths(options.libDir, 'json.dart'),
+ };
+ } else if (options.config == 'sdk') {
+ _specialLibs = {
+ 'dart:core': joinPaths(options.libDir, 'corelib.dart'),
+ 'dart:coreimpl': joinPaths(options.libDir, 'corelib_impl.dart'),
+ 'dart:html': joinPaths(options.libDir,
+ '../../html/html.dart'),
+ 'dart:dom': joinPaths(options.libDir,
+ '../../dom/frog/frog_dom.dart'),
+ 'dart:json': joinPaths(options.libDir, 'json.dart'),
+ };
+ } else {
+ world.error('Invalid reader configuration $config', null);
+ throw('Invalid reader config');
+ }
}
SourceFile readFile(String fullname) {

Powered by Google App Engine
This is Rietveld 408576698