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

Side by Side Diff: tools/create_sdk.py

Issue 11419207: Add http and oauth2 as SDK packages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 | « pkg/oauth2/pubspec.yaml ('k') | 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 join('svg', 'dartium'), 'uri', 'utf']: 204 join('svg', 'dartium'), 'uri', 'utf']:
205 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), 205 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library),
206 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh')) 206 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh'))
207 207
208 208
209 # Create and copy pkg. 209 # Create and copy pkg.
210 PKG = join(SDK_tmp, 'pkg') 210 PKG = join(SDK_tmp, 'pkg')
211 os.makedirs(PKG) 211 os.makedirs(PKG)
212 212
213 # 213 #
214 # Create and populate pkg/{args, intl, logging, meta, unittest} 214 # Create and populate pkg/{args, intl, logging, meta, unittest, ...}
215 # 215 #
216 216
217 for library in ['args', 'htmlescape', 'intl', 'logging', 217 for library in ['args', 'htmlescape', 'http', 'intl', 'logging',
218 'meta', 'unittest']: 218 'meta', 'oauth2', 'unittest']:
219 copytree(join(HOME, 'pkg', library), join(PKG, library), 219 copytree(join(HOME, 'pkg', library), join(PKG, library),
220 ignore=ignore_patterns('*.svn', 'doc', 'docs', 220 ignore=ignore_patterns('*.svn', 'doc', 'docs',
221 '*.py', '*.gypi', '*.sh')) 221 '*.py', '*.gypi', '*.sh'))
222 222
223 # Create and copy tools. 223 # Create and copy tools.
224 UTIL = join(SDK_tmp, 'util') 224 UTIL = join(SDK_tmp, 'util')
225 os.makedirs(UTIL) 225 os.makedirs(UTIL)
226 226
227 if ShouldCopyAnalyzer(): 227 if ShouldCopyAnalyzer():
228 # Create and copy Analyzer library into 'util' 228 # Create and copy Analyzer library into 'util'
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 302 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
303 f.write(revision + '\n') 303 f.write(revision + '\n')
304 f.close() 304 f.close()
305 305
306 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 306 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
307 307
308 move(SDK_tmp, SDK) 308 move(SDK_tmp, SDK)
309 309
310 if __name__ == '__main__': 310 if __name__ == '__main__':
311 sys.exit(Main(sys.argv)) 311 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « pkg/oauth2/pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698