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

Side by Side Diff: tools/create_sdk.py

Issue 16496002: No longer publish packages in the SDK. All of the tools in dart-sdk/bin (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 # 6 #
7 # A script which will be invoked from gyp to create an SDK. 7 # A script which will be invoked from gyp to create an SDK.
8 # 8 #
9 # Usage: create_sdk.py sdk_directory 9 # Usage: create_sdk.py sdk_directory
10 # 10 #
(...skipping 22 matching lines...) Expand all
33 # ......crypto/ 33 # ......crypto/
34 # ......html/ 34 # ......html/
35 # ......io/ 35 # ......io/
36 # ......isolate/ 36 # ......isolate/
37 # ......json/ 37 # ......json/
38 # ......math/ 38 # ......math/
39 # ......mdv_observe_impl/ 39 # ......mdv_observe_impl/
40 # ......mirrors/ 40 # ......mirrors/
41 # ......utf/ 41 # ......utf/
42 # ......typed_data/ 42 # ......typed_data/
43 # ....packages/
44 # ......args/
45 # ......intl/
46 # ......logging/
47 # ......meta/
48 # ......serialization
49 # ......unittest/
50 # ......(more will come here)
51 # ....util/ 43 # ....util/
52 # ......dartanalyzer/ 44 # ......dartanalyzer/
53 # ........dartanalyzer.jar 45 # ........dartanalyzer.jar
54 # ........(third-party libraries for dart_analyzer) 46 # ........(third-party libraries for dart_analyzer)
55 # ......(more will come here) 47 # ......(more will come here)
56 48
57 49
58 import glob 50 import glob
59 import optparse 51 import optparse
60 import os 52 import os
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), 204 join('web_gl', 'dart2js'), join('web_gl', 'dartium'),
213 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: 205 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]:
214 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), 206 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library),
215 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh', 207 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh',
216 '.gitignore')) 208 '.gitignore'))
217 209
218 # Copy lib/_internal/libraries.dart. 210 # Copy lib/_internal/libraries.dart.
219 copyfile(join(HOME, 'sdk', 'lib', '_internal', 'libraries.dart'), 211 copyfile(join(HOME, 'sdk', 'lib', '_internal', 'libraries.dart'),
220 join(LIB, '_internal', 'libraries.dart')) 212 join(LIB, '_internal', 'libraries.dart'))
221 213
222 # Create and copy packages.
223 PACKAGES = join(SDK_tmp, 'packages')
224 os.makedirs(PACKAGES)
225
226 #
227 # Create and populate packages/{args, intl, logging, meta, unittest, ...}
228 #
229
230 for library in ['args', 'http', 'intl', 'logging', 'meta', 'oauth2', 'pathos',
231 'serialization', 'unittest', 'yaml', 'analyzer_experimental']:
232
233 copytree(join(HOME, 'pkg', library, 'lib'), join(PACKAGES, library),
234 ignore=ignore_patterns('*.svn'))
235
236 # Create and copy tools. 214 # Create and copy tools.
237 UTIL = join(SDK_tmp, 'util') 215 UTIL = join(SDK_tmp, 'util')
238 os.makedirs(UTIL) 216 os.makedirs(UTIL)
239 217
240 # Create and copy dartanalyzer into 'util' 218 # Create and copy dartanalyzer into 'util'
241 DARTANALYZER_SRC = join(HOME, build_dir, 'dartanalyzer') 219 DARTANALYZER_SRC = join(HOME, build_dir, 'dartanalyzer')
242 DARTANALYZER_DEST = join(UTIL, 'dartanalyzer') 220 DARTANALYZER_DEST = join(UTIL, 'dartanalyzer')
243 os.makedirs(DARTANALYZER_DEST) 221 os.makedirs(DARTANALYZER_DEST)
244 222
245 jarFiles = glob.glob(join(DARTANALYZER_SRC, '*.jar')) 223 jarFiles = glob.glob(join(DARTANALYZER_SRC, '*.jar'))
(...skipping 24 matching lines...) Expand all
270 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 248 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
271 f.write(revision + '\n') 249 f.write(revision + '\n')
272 f.close() 250 f.close()
273 251
274 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 252 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
275 253
276 move(SDK_tmp, SDK) 254 move(SDK_tmp, SDK)
277 255
278 if __name__ == '__main__': 256 if __name__ == '__main__':
279 sys.exit(Main(sys.argv)) 257 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698