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

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 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
« no previous file with comments | « frog/frog_options.dart ('k') | tools/create_sdk.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/reader.dart
===================================================================
--- frog/reader.dart (revision 2028)
+++ frog/reader.dart (working copy)
@@ -9,17 +9,31 @@
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:htmlimpl': joinPaths(options.libDir,
- '../../client/html/release/htmlimpl.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:htmlimpl': joinPaths(options.libDir,
+ '../../client/html/release/htmlimpl.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, 'core/core_frog.dart'),
+ 'dart:coreimpl': joinPaths(options.libDir,
+ 'coreimpl/coreimpl_frog.dart'),
+ 'dart:html': joinPaths(options.libDir, 'html/html.dart'),
+ 'dart:htmlimpl': joinPaths(options.libDir, 'htmlimpl/htmlimpl.dart'),
+ 'dart:dom': joinPaths(options.libDir, 'dom/frog/frog_dom.dart'),
+ 'dart:json': joinPaths(options.libDir, 'coreimpl/frog/json.dart'),
+ };
+ } else {
+ world.error('Invalid configuration ${options.config}');
+ }
}
SourceFile readFile(String fullname) {
« no previous file with comments | « frog/frog_options.dart ('k') | tools/create_sdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698