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

Unified Diff: tools/create_sdk.py

Issue 9702034: 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: junit tests fixed 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
« no previous file with comments | « tests/language/language.status ('k') | tools/dartc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..6cc03a8ef14a3ffd3cbd689c58b443f0b6ceaf8a
--- a/tools/create_sdk.py
+++ b/tools/create_sdk.py
@@ -48,6 +48,10 @@
# ......(more will come here)
# ....util/
# ......(more will come here)
+# ....analysis/
+# ......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')
+ isolate_runtime_dest = join(LIB, 'isolate', 'runtime', 'isolate.dart')
+ copyfile(isolate_runtime_src, isolate_runtime_dest)
+
#
# Create and populate lib/core.
#
@@ -390,11 +398,36 @@ def Main(argv):
dest_file.write('#source("runtime/' + filename + '");\n')
dest_file.close()
+ # Create and copy Analysis library.
+
+ ANALYSIS = join(SDK_tmp, 'analysis')
+ os.makedirs(ANALYSIS)
+ ANALYSIS_HOME = join(build_dir, 'analysis')
+ darta_src_binary = join(ANALYSIS_HOME,'darta')
+ darta_dest_binary = join(ANALYSIS, 'darta')
+ copyfile(darta_src_binary, darta_dest_binary)
+ copymode(darta_src_binary, darta_dest_binary)
+ darta_src_jar = join(ANALYSIS_HOME, 'darta.jar')
+ darta_dest_jar = join(ANALYSIS, 'darta.jar')
+ copyfile(darta_src_jar, darta_dest_jar)
+
+ jarsToCopy = [ join("args4j", "2.0.12", "args4j-2.0.12.jar"),
+ join("guava", "r09", "guava-r09.jar"),
+ join("json", "r2_20080312", "json.jar") ]
+ for jarToCopy in jarsToCopy:
+ dest_dir = join (ANALYSIS, os.path.dirname(jarToCopy))
+ os.makedirs(dest_dir)
+ dest_file = join (ANALYSIS, jarToCopy)
+ src_file = join(ANALYSIS_HOME, jarToCopy)
+ copyfile(src_file, dest_file)
+
+
# Create and copy tools.
UTIL = join(SDK_tmp, 'util')
os.makedirs(UTIL)
+
move(SDK_tmp, SDK)
if __name__ == '__main__':
« no previous file with comments | « tests/language/language.status ('k') | tools/dartc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698