| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import contextlib | 5 import contextlib |
| 6 | 6 |
| 7 DEPS = [ | 7 DEPS = [ |
| 8 'depot_tools/bot_update', | 8 'depot_tools/bot_update', |
| 9 'depot_tools/gclient', | 9 'depot_tools/gclient', |
| 10 'file', | 10 'file', |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 api.step('Create iOS %s Flutter.framework' % label, | 223 api.step('Create iOS %s Flutter.framework' % label, |
| 224 create_ios_framework_cmd, cwd=checkout) | 224 create_ios_framework_cmd, cwd=checkout) |
| 225 | 225 |
| 226 # Zip Flutter.framework and upload it to cloud storage: | 226 # Zip Flutter.framework and upload it to cloud storage: |
| 227 api.zip.directory('Archive Flutter.framework for %s' % label, | 227 api.zip.directory('Archive Flutter.framework for %s' % label, |
| 228 label_dir.join('Flutter.framework'), | 228 label_dir.join('Flutter.framework'), |
| 229 label_dir.join('Flutter.framework.zip')) | 229 label_dir.join('Flutter.framework.zip')) |
| 230 | 230 |
| 231 UploadArtifacts(api, bucket_name, [ | 231 UploadArtifacts(api, bucket_name, [ |
| 232 'dart/runtime/bin/dart_io_entries.txt', | 232 'dart/runtime/bin/dart_io_entries.txt', |
| 233 'sky/engine/bindings/dart_vm_entry_points.txt', | 233 'flutter/sky/engine/bindings/dart_vm_entry_points.txt', |
| 234 'sky/engine/bindings/snapshot.dart', | 234 'flutter/sky/engine/bindings/snapshot.dart', |
| 235 'out/%s/clang_x64/gen_snapshot' % device_out, | 235 'out/%s/clang_x64/gen_snapshot' % device_out, |
| 236 'out/%s/Flutter.framework.zip' % label, | 236 'out/%s/Flutter.framework.zip' % label, |
| 237 ]) | 237 ]) |
| 238 | 238 |
| 239 | 239 |
| 240 def BuildIOS(api): | 240 def BuildIOS(api): |
| 241 # Generate Ninja files for all valid configurations. | 241 # Generate Ninja files for all valid configurations. |
| 242 RunGN(api, '--ios', '--runtime-mode', 'debug') | 242 RunGN(api, '--ios', '--runtime-mode', 'debug') |
| 243 RunGN(api, '--ios', '--runtime-mode', 'profile') | 243 RunGN(api, '--ios', '--runtime-mode', 'profile') |
| 244 RunGN(api, '--ios', '--runtime-mode', 'release') | 244 RunGN(api, '--ios', '--runtime-mode', 'release') |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 BuildIOS(api) | 305 BuildIOS(api) |
| 306 | 306 |
| 307 | 307 |
| 308 def GenTests(api): | 308 def GenTests(api): |
| 309 # A valid commit to flutter/engine, to make the gsutil urls look real. | 309 # A valid commit to flutter/engine, to make the gsutil urls look real. |
| 310 for platform in ('mac', 'linux'): | 310 for platform in ('mac', 'linux'): |
| 311 yield (api.test(platform) + api.platform(platform, 64) | 311 yield (api.test(platform) + api.platform(platform, 64) |
| 312 + api.properties(mastername='client.flutter', | 312 + api.properties(mastername='client.flutter', |
| 313 buildername='%s Engine' % platform.capitalize(), | 313 buildername='%s Engine' % platform.capitalize(), |
| 314 slavename='fake-m1', clobber='')) | 314 slavename='fake-m1', clobber='')) |
| OLD | NEW |