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

Side by Side Diff: tools/create_sdk.py

Issue 2506253008: Add `front_end` sources to the SDK (#27857). (Closed)
Patch Set: Created 4 years, 1 month 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
« 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 # ......_internal/ 47 # ......_internal/
48 #.........spec.sum 48 #.........spec.sum
49 #.........strong.sum 49 #.........strong.sum
50 #.........dev_compiler/ 50 #.........dev_compiler/
51 # ......analysis_server/ 51 # ......analysis_server/
52 # ......analyzer/ 52 # ......analyzer/
53 # ......async/ 53 # ......async/
54 # ......collection/ 54 # ......collection/
55 # ......convert/ 55 # ......convert/
56 # ......core/ 56 # ......core/
57 # ......front_end/
57 # ......html/ 58 # ......html/
58 # ......internal/ 59 # ......internal/
59 # ......io/ 60 # ......io/
60 # ......isolate/ 61 # ......isolate/
61 # ......js/ 62 # ......js/
62 # ......js_util/ 63 # ......js_util/
63 # ......math/ 64 # ......math/
64 # ......mirrors/ 65 # ......mirrors/
65 # ......typed_data/ 66 # ......typed_data/
66 # ......api_readme.md 67 # ......api_readme.md
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 139
139 140
140 def CopySnapshots(snapshots, sdk_root): 141 def CopySnapshots(snapshots, sdk_root):
141 for snapshot in ['analysis_server', 'dart2js', 'dartanalyzer', 'dartfmt', 142 for snapshot in ['analysis_server', 'dart2js', 'dartanalyzer', 'dartfmt',
142 'utils_wrapper', 'pub', 'dartdoc', 'dartdevc']: 143 'utils_wrapper', 'pub', 'dartdoc', 'dartdevc']:
143 snapshot += '.dart.snapshot' 144 snapshot += '.dart.snapshot'
144 copyfile(join(snapshots, snapshot), 145 copyfile(join(snapshots, snapshot),
145 join(sdk_root, 'bin', 'snapshots', snapshot)) 146 join(sdk_root, 'bin', 'snapshots', snapshot))
146 147
147 def CopyAnalyzerSources(home, lib_dir): 148 def CopyAnalyzerSources(home, lib_dir):
148 for library in ['analyzer', 'analysis_server']: 149 for library in ['analyzer', 'analysis_server', 'front_end']:
149 copytree(join(home, 'pkg', library), join(lib_dir, library), 150 copytree(join(home, 'pkg', library), join(lib_dir, library),
150 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh', 151 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh',
151 '.gitignore', 'packages')) 152 '.gitignore', 'packages'))
152 153
153 def CopyDartdocResources(home, sdk_root): 154 def CopyDartdocResources(home, sdk_root):
154 RESOURCE_DIR = join(sdk_root, 'bin', 'snapshots', 'resources') 155 RESOURCE_DIR = join(sdk_root, 'bin', 'snapshots', 'resources')
155 DARTDOC = join(RESOURCE_DIR, 'dartdoc') 156 DARTDOC = join(RESOURCE_DIR, 'dartdoc')
156 157
157 copytree(join(home, 'third_party', 'pkg', 'dartdoc', 'lib', 'templates'), 158 copytree(join(home, 'third_party', 'pkg', 'dartdoc', 'lib', 'templates'),
158 join(DARTDOC, 'templates')) 159 join(DARTDOC, 'templates'))
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 f.close() 328 f.close()
328 329
329 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) 330 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README'))
330 Copy(join(HOME, 'LICENSE'), join(SDK_tmp, 'LICENSE')) 331 Copy(join(HOME, 'LICENSE'), join(SDK_tmp, 'LICENSE'))
331 Copy(join(HOME, 'sdk', 'api_readme.md'), join(SDK_tmp, 'lib', 'api_readme.md') ) 332 Copy(join(HOME, 'sdk', 'api_readme.md'), join(SDK_tmp, 'lib', 'api_readme.md') )
332 333
333 move(SDK_tmp, SDK) 334 move(SDK_tmp, SDK)
334 335
335 if __name__ == '__main__': 336 if __name__ == '__main__':
336 sys.exit(Main()) 337 sys.exit(Main())
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