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

Side by Side Diff: tools/create_sdk.py

Issue 10834353: Reapply "Sharing of sources for corelib date implementation between VM (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix analyzer 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/lib/lib_impl_sources.gypi ('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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 dealing with here which frees us from rewriting files. The long term 127 dealing with here which frees us from rewriting files. The long term
128 plan is to align the layout of the repository and the SDK, at which 128 plan is to align the layout of the repository and the SDK, at which
129 point we should be able to simplify Main below and share the dart 129 point we should be able to simplify Main below and share the dart
130 files between the various components to minimize SDK download size. 130 files between the various components to minimize SDK download size.
131 ''' 131 '''
132 copytree('lib', os.path.join(sdk_root, 'lib', 'dart2js', 'lib'), 132 copytree('lib', os.path.join(sdk_root, 'lib', 'dart2js', 'lib'),
133 ignore=ignore_patterns('.svn')) 133 ignore=ignore_patterns('.svn'))
134 copytree(os.path.join('corelib', 'src'), 134 copytree(os.path.join('corelib', 'src'),
135 os.path.join(sdk_root, 'lib', 'dart2js', 'corelib', 'src'), 135 os.path.join(sdk_root, 'lib', 'dart2js', 'corelib', 'src'),
136 ignore=ignore_patterns('.svn')) 136 ignore=ignore_patterns('.svn'))
137 copytree(os.path.join('corelib', 'unified'),
138 os.path.join(sdk_root, 'lib', 'dart2js', 'corelib', 'unified'),
139 ignore=ignore_patterns('.svn'))
140 copytree(os.path.join('runtime', 'lib'), 137 copytree(os.path.join('runtime', 'lib'),
141 os.path.join(sdk_root, 'lib', 'dart2js', 'runtime', 'lib'), 138 os.path.join(sdk_root, 'lib', 'dart2js', 'runtime', 'lib'),
142 ignore=ignore_patterns('.svn')) 139 ignore=ignore_patterns('.svn'))
143 copytree(os.path.join('runtime', 'bin'), 140 copytree(os.path.join('runtime', 'bin'),
144 os.path.join(sdk_root, 'lib', 'dart2js', 'runtime', 'bin'), 141 os.path.join(sdk_root, 'lib', 'dart2js', 'runtime', 'bin'),
145 ignore=ignore_patterns('.svn')) 142 ignore=ignore_patterns('.svn'))
146 if utils.GuessOS() == 'win32': 143 if utils.GuessOS() == 'win32':
147 dart2js = os.path.join(sdk_root, 'bin', 'dart2js.bat') 144 dart2js = os.path.join(sdk_root, 'bin', 'dart2js.bat')
148 Copy(os.path.join(build_dir, 'dart2js.bat'), dart2js) 145 Copy(os.path.join(build_dir, 'dart2js.bat'), dart2js)
149 ReplaceInFiles([dart2js], 146 ReplaceInFiles([dart2js],
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 if revision is not None: 483 if revision is not None:
487 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 484 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
488 f.write(revision + '\n') 485 f.write(revision + '\n')
489 f.close() 486 f.close()
490 487
491 move(SDK_tmp, SDK) 488 move(SDK_tmp, SDK)
492 utils.Touch(os.path.join(SDK, 'create.stamp')) 489 utils.Touch(os.path.join(SDK, 'create.stamp'))
493 490
494 if __name__ == '__main__': 491 if __name__ == '__main__':
495 sys.exit(Main(sys.argv)) 492 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « runtime/lib/lib_impl_sources.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698