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

Unified Diff: tools/create_sdk.py

Issue 9860009: Removes dartc reliance on its own libraries, now can be targeted at any implementation's libraries (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated editor to use "Any" config Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: tools/create_sdk.py
diff --git a/tools/create_sdk.py b/tools/create_sdk.py
old mode 100644
new mode 100755
index f908cc787a4557052466b09b65311ab73b64fefb..d85045d360586b3729373a474c7ecba6f378c52c
--- a/tools/create_sdk.py
+++ b/tools/create_sdk.py
@@ -48,6 +48,10 @@
# ......(more will come here)
# ....util/
# ......(more will come here)
+# ....analysis/
dgrove 2012/03/26 23:21:56 I don't believe this is the right place for this.
zundel 2012/03/27 00:38:12 Oops, this was from another CL before our latest d
+# ......darta
+# ......darta.jar
+# ......<third party libs>
@@ -303,6 +307,10 @@ def Main(argv):
copytree(join(HOME, 'lib', 'isolate'), join(LIB, 'isolate'),
ignore=ignore_patterns('.svn'))
+ isolate_runtime_src = join('runtime', 'lib', 'isolate.dart')
dgrove 2012/03/26 23:21:56 I think you want join(HOME, 'runtime', 'lib' , ...
zundel 2012/03/27 00:38:12 Done.
+ isolate_runtime_dest = join(LIB, 'isolate', 'runtime', 'isolate.dart')
+ copyfile(isolate_runtime_src, isolate_runtime_dest)
dgrove 2012/03/26 23:21:56 Why is this needed? All of the classes in isolate.
zundel 2012/03/27 00:38:12 I think we need this file to resolve the VM versio
dgrove 2012/03/27 04:29:27 Got it. On 2012/03/27 00:38:12, zundel wrote:
+
#
# Create and populate lib/core.
#
@@ -395,6 +403,14 @@ def Main(argv):
UTIL = join(SDK_tmp, 'util')
os.makedirs(UTIL)
+
+ # Copy import maps
+ PLATFORMS = ['any', 'vm', 'dartium', 'dart2js', 'frog' ]
+ for platform in PLATFORMS:
+ import_src = join(HOME, 'lib', 'import_' + platform + '.config')
+ import_dst = join(LIB, 'import_' + platform + '.config')
+ copyfile(import_src, import_dst);
+
move(SDK_tmp, SDK)
if __name__ == '__main__':

Powered by Google App Engine
This is Rietveld 408576698