Index: dart/frog/leg/library_map.dart |
diff --git a/dart/frog/leg/library_map.dart b/dart/frog/leg/library_map.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..92d65e3f62e92b8a93b0afe6b692551ca3c49b98 |
--- /dev/null |
+++ b/dart/frog/leg/library_map.dart |
@@ -0,0 +1,24 @@ |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+// TODO(ahe): Long term, it would probably be better if we do not use |
+// executable code to define the locations of libraries. |
+ |
+#library('library_map'); |
+ |
+/** |
+ * Specifies the location of Dart platform libraries. |
+ */ |
+final Map<String,String> DART2JS_LIBRARY_MAP = const <String> { |
+ "core": "frog/leg/lib/core.dart", |
+ "coreimpl": "frog/leg/lib/coreimpl.dart", |
+ "_js_helper": "frog/leg/lib/js_helper.dart", |
+ "dom": "lib/dom/frog/dom_frog.dart", |
+ "html": "lib/html/frog/html_frog.dart", |
+ "io": "frog/leg/lib/io.dart", |
+ "isolate": "lib/isolate/isolate_leg.dart", |
+ "json": "lib/json/json.dart", |
+ "uri": "lib/uri/uri.dart", |
+ "utf": "lib/utf/utf.dart", |
+}; |
zundel
2012/03/26 22:08:20
This looks just like the .property files we are co
ahe
2012/03/28 15:31:43
I don't mind a common format, I'm using a const ma
|