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

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: 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 a4baeaa76e0e9168e9325259752992d952791d60..47cedef272f2a97d2c9d353c6838ceed63c6e6e9
--- 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>
@@ -298,6 +302,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.
#
@@ -383,11 +391,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__':

Powered by Google App Engine
This is Rietveld 408576698