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

Unified Diff: tools/create_sdk.py

Issue 10827227: Start moving non-platform libraries from lib/ to pkg/ . (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Start moving non-platform libraries from lib/ to pkg/ Created 8 years, 4 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/lib/logging/logging_test.dart ('k') | utils/apidoc/apidoc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/create_sdk.py
===================================================================
--- tools/create_sdk.py (revision 10654)
+++ tools/create_sdk.py (working copy)
@@ -57,6 +57,9 @@
# ......utf/
# ......web/
# ........web.dart
+# ....pkg/
+# ......i18n/
+# ......logging/
# ......(more will come here)
# ....util/
# ......analyzer/
@@ -334,7 +337,7 @@
# Create and populate lib/{crypto, json, uri, utf, ...}.
#
- for library in ['args', 'crypto', 'i18n', 'json', 'math', 'unittest', 'uri',
+ for library in ['args', 'crypto', 'json', 'math', 'unittest', 'uri',
'utf', 'web']:
src_dir = join(HOME, 'lib', library)
dest_dir = join(LIB, library)
@@ -419,6 +422,24 @@
dest_file.write('#source("runtime/' + filename + '");\n')
dest_file.close()
+
+ # Create and copy pkg.
+ PKG = join(SDK_tmp, 'pkg')
+ os.makedirs(PKG)
+
+ #
+ # Create and populate pkg/{i18n, logging}
+ #
+
+ for library in ['i18n', 'logging']:
+ src_dir = join(HOME, 'pkg', library)
+ dest_dir = join(PKG, library)
+ os.makedirs(dest_dir)
+
+ for filename in os.listdir(src_dir):
+ if filename.endswith('.dart'):
+ copyfile(join(src_dir, filename), join(dest_dir, filename))
+
# Create and copy tools.
UTIL = join(SDK_tmp, 'util')
os.makedirs(UTIL)
« no previous file with comments | « tests/lib/logging/logging_test.dart ('k') | utils/apidoc/apidoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698