Index: tools/create_sdk.py |
diff --git a/tools/create_sdk.py b/tools/create_sdk.py |
index 4c0c3c5b116ec1e59c37e9ab9e5a3d1d13c967ff..bc0a8f8aeba5048e80c85cc17eda415b5a28ea65 100755 |
--- a/tools/create_sdk.py |
+++ b/tools/create_sdk.py |
@@ -16,6 +16,7 @@ |
# ......dart or dart.exe (executable) |
# ......frogc.dart |
# ......frogsh (coming later) |
+# ......dart-analysis |
dgrove
2012/03/30 21:40:11
Thinking about this more, I think this should be d
|
# ....lib/ |
# ......builtin/ |
# ........builtin_runtime.dart |
@@ -47,6 +48,9 @@ |
# ......utf/ |
# ......(more will come here) |
# ....util/ |
+# .......analysis/ |
+# .........dart-analysis.jar |
+# .........(third-party libraries for dart-analysis) |
# ......(more will come here) |
@@ -114,9 +118,11 @@ def Main(argv): |
build_dir = os.path.dirname(argv[1]) |
frogc_file_extension = '' |
dart_file_extension = '' |
+ analysis_file_extension = '' |
if utils.GuessOS() == 'win32': |
dart_file_extension = '.exe' |
frogc_file_extension = '.bat' |
+ analysis_file_extension = '.sh' # TODO(zundel): never tested on Windows |
dart_src_binary = join(HOME, build_dir, 'dart' + dart_file_extension) |
dart_dest_binary = join(BIN, 'dart' + dart_file_extension) |
frogc_src_binary = join(HOME, 'frog', 'scripts', 'bootstrap', |
@@ -126,6 +132,12 @@ def Main(argv): |
copymode(dart_src_binary, dart_dest_binary) |
copyfile(frogc_src_binary, frogc_dest_binary) |
copymode(frogc_src_binary, frogc_dest_binary) |
+ ANALYSIS_HOME = join(HOME, build_dir, 'analysis') |
+ dart_analysis_src_binary = join(ANALYSIS_HOME, 'bin', 'dart-analysis') |
+ dart_analysis_dest_binary = join(BIN, |
+ 'dart-analysis' + analysis_file_extension) |
+ copyfile(dart_analysis_src_binary, dart_analysis_dest_binary) |
+ copymode(dart_analysis_src_binary, dart_analysis_dest_binary) |
# Create sdk/bin/frogc.dart, and hack as needed. |
frog_src_dir = join(HOME, 'frog') |
@@ -416,8 +428,28 @@ def Main(argv): |
UTIL = join(SDK_tmp, 'util') |
os.makedirs(UTIL) |
+ # Create and copy Analysis library. |
+ |
+ ANALYSIS_DEST = join(UTIL, 'analysis') |
+ os.makedirs(ANALYSIS_DEST) |
+ |
+ darta_src_jar = join(ANALYSIS_HOME, 'util', 'analysis', 'dart-analysis.jar') |
+ darta_dest_jar = join(ANALYSIS_DEST, 'dart-analysis.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_DEST, os.path.dirname(jarToCopy)) |
+ os.makedirs(dest_dir) |
+ dest_file = join (ANALYSIS_DEST, jarToCopy) |
+ src_file = join(ANALYSIS_HOME, 'util', 'analysis', jarToCopy) |
+ copyfile(src_file, dest_file) |
+ |
# Copy import maps |
+ |
PLATFORMS = ['any', 'vm', 'dartium', 'dart2js', 'frog' ] |
os.makedirs(join(LIB, 'config')) |
for platform in PLATFORMS: |