| OLD | NEW |
| 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 19 matching lines...) Expand all Loading... |
| 30 # ......_internal/ | 30 # ......_internal/ |
| 31 # ......async/ | 31 # ......async/ |
| 32 # ......collection/ | 32 # ......collection/ |
| 33 # ......_collection_dev/ | 33 # ......_collection_dev/ |
| 34 # ......convert/ | 34 # ......convert/ |
| 35 # ......core/ | 35 # ......core/ |
| 36 # ......html/ | 36 # ......html/ |
| 37 # ......io/ | 37 # ......io/ |
| 38 # ......isolate/ | 38 # ......isolate/ |
| 39 # ......js/ | 39 # ......js/ |
| 40 # ......json/ | |
| 41 # ......math/ | 40 # ......math/ |
| 42 # ......mirrors/ | 41 # ......mirrors/ |
| 43 # ......utf/ | 42 # ......utf/ |
| 44 # ......typed_data/ | 43 # ......typed_data/ |
| 45 # ....util/ | 44 # ....util/ |
| 46 # ......dartanalyzer/ | 45 # ......dartanalyzer/ |
| 47 # ........dartanalyzer.jar | 46 # ........dartanalyzer.jar |
| 48 # ........(third-party libraries for dart_analyzer) | 47 # ........(third-party libraries for dart_analyzer) |
| 49 # ......(more will come here) | 48 # ......(more will come here) |
| 50 | 49 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 join(INCLUDE, 'dart_native_api.h')) | 181 join(INCLUDE, 'dart_native_api.h')) |
| 183 | 182 |
| 184 # | 183 # |
| 185 # Create and populate sdk/lib. | 184 # Create and populate sdk/lib. |
| 186 # | 185 # |
| 187 | 186 |
| 188 LIB = join(SDK_tmp, 'lib') | 187 LIB = join(SDK_tmp, 'lib') |
| 189 os.makedirs(LIB) | 188 os.makedirs(LIB) |
| 190 | 189 |
| 191 # | 190 # |
| 192 # Create and populate lib/{core, crypto, isolate, json, utf, ...}. | 191 # Create and populate lib/{core, crypto, isolate, utf, ...}. |
| 193 # | 192 # |
| 194 | 193 |
| 195 os.makedirs(join(LIB, 'html')) | 194 os.makedirs(join(LIB, 'html')) |
| 196 | 195 |
| 197 for library in [join('_chrome', 'dart2js'), join('_chrome', 'dartium'), | 196 for library in [join('_chrome', 'dart2js'), join('_chrome', 'dartium'), |
| 198 join('_internal', 'compiler'), | 197 join('_internal', 'compiler'), |
| 199 join('_internal', 'dartdoc'), | 198 join('_internal', 'dartdoc'), |
| 200 join('_internal', 'pub', 'resource'), | 199 join('_internal', 'pub', 'resource'), |
| 201 join('_internal', 'lib'), | 200 join('_internal', 'lib'), |
| 202 'async', 'collection', '_collection_dev', 'convert', | 201 'async', 'collection', '_collection_dev', 'convert', |
| 203 'core', 'crypto', 'io', 'isolate', | 202 'core', 'crypto', 'io', 'isolate', |
| 204 join('html', 'dart2js'), join('html', 'dartium'), | 203 join('html', 'dart2js'), join('html', 'dartium'), |
| 205 join('html', 'html_common'), | 204 join('html', 'html_common'), |
| 206 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), | 205 join('indexed_db', 'dart2js'), join('indexed_db', 'dartium'), |
| 207 'js', 'json', 'math', 'mirrors', 'platform', 'typed_data', | 206 'js', 'math', 'mirrors', 'platform', 'typed_data', |
| 208 join('svg', 'dart2js'), join('svg', 'dartium'), | 207 join('svg', 'dart2js'), join('svg', 'dartium'), |
| 209 'utf', | 208 'utf', |
| 210 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), | 209 join('web_audio', 'dart2js'), join('web_audio', 'dartium'), |
| 211 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), | 210 join('web_gl', 'dart2js'), join('web_gl', 'dartium'), |
| 212 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: | 211 join('web_sql', 'dart2js'), join('web_sql', 'dartium')]: |
| 213 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), | 212 copytree(join(HOME, 'sdk', 'lib', library), join(LIB, library), |
| 214 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh', | 213 ignore=ignore_patterns('*.svn', 'doc', '*.py', '*.gypi', '*.sh', |
| 215 '.gitignore')) | 214 '.gitignore')) |
| 216 | 215 |
| 217 # Copy lib/_internal/libraries.dart. | 216 # Copy lib/_internal/libraries.dart. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: | 254 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: |
| 256 f.write(revision + '\n') | 255 f.write(revision + '\n') |
| 257 f.close() | 256 f.close() |
| 258 | 257 |
| 259 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) | 258 Copy(join(HOME, 'README.dart-sdk'), join(SDK_tmp, 'README')) |
| 260 | 259 |
| 261 move(SDK_tmp, SDK) | 260 move(SDK_tmp, SDK) |
| 262 | 261 |
| 263 if __name__ == '__main__': | 262 if __name__ == '__main__': |
| 264 sys.exit(Main(sys.argv)) | 263 sys.exit(Main(sys.argv)) |
| OLD | NEW |