| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 for runtime_mode in ['profile', 'release']: | 135 for runtime_mode in ['profile', 'release']: |
| 136 build_output_dir = 'android_' + runtime_mode | 136 build_output_dir = 'android_' + runtime_mode |
| 137 upload_dir = 'android-arm-' + runtime_mode | 137 upload_dir = 'android-arm-' + runtime_mode |
| 138 | 138 |
| 139 RunGN(api, '--android', '--runtime-mode=' + runtime_mode) | 139 RunGN(api, '--android', '--runtime-mode=' + runtime_mode) |
| 140 Build(api, build_output_dir) | 140 Build(api, build_output_dir) |
| 141 | 141 |
| 142 UploadArtifacts(api, upload_dir, [ | 142 UploadArtifacts(api, upload_dir, [ |
| 143 'build/android/ant/chromium-debug.keystore', | 143 'build/android/ant/chromium-debug.keystore', |
| 144 'dart/runtime/bin/dart_io_entries.txt', | 144 'dart/runtime/bin/dart_io_entries.txt', |
| 145 'flutter/sky/engine/bindings/dart_vm_entry_points.txt', | 145 'flutter/runtime/dart_vm_entry_points.txt', |
| 146 'flutter/sky/engine/bindings/dart_vm_entry_points_android.txt', | 146 'flutter/runtime/dart_vm_entry_points_android.txt', |
| 147 ] + AddPathPrefix(api, 'out/%s' % build_output_dir, out_paths)) | 147 ] + AddPathPrefix(api, 'out/%s' % build_output_dir, out_paths)) |
| 148 | 148 |
| 149 # Upload artifacts used for AOT compilation on Linux hosts. | 149 # Upload artifacts used for AOT compilation on Linux hosts. |
| 150 UploadArtifacts(api, upload_dir, [ | 150 UploadArtifacts(api, upload_dir, [ |
| 151 'out/%s/clang_x86/gen_snapshot' % build_output_dir, | 151 'out/%s/clang_x86/gen_snapshot' % build_output_dir, |
| 152 ], archive_name='linux-x64.zip') | 152 ], archive_name='linux-x64.zip') |
| 153 UploadArtifacts(api, upload_dir, [ | 153 UploadArtifacts(api, upload_dir, [ |
| 154 'out/%s/libsky_shell.so' % build_output_dir | 154 'out/%s/libsky_shell.so' % build_output_dir |
| 155 ], archive_name='symbols.zip') | 155 ], archive_name='symbols.zip') |
| 156 | 156 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 api.step('Create iOS %s Flutter.framework' % label, | 219 api.step('Create iOS %s Flutter.framework' % label, |
| 220 create_ios_framework_cmd, cwd=checkout) | 220 create_ios_framework_cmd, cwd=checkout) |
| 221 | 221 |
| 222 # Zip Flutter.framework and upload it to cloud storage: | 222 # Zip Flutter.framework and upload it to cloud storage: |
| 223 api.zip.directory('Archive Flutter.framework for %s' % label, | 223 api.zip.directory('Archive Flutter.framework for %s' % label, |
| 224 label_dir.join('Flutter.framework'), | 224 label_dir.join('Flutter.framework'), |
| 225 label_dir.join('Flutter.framework.zip')) | 225 label_dir.join('Flutter.framework.zip')) |
| 226 | 226 |
| 227 UploadArtifacts(api, bucket_name, [ | 227 UploadArtifacts(api, bucket_name, [ |
| 228 'dart/runtime/bin/dart_io_entries.txt', | 228 'dart/runtime/bin/dart_io_entries.txt', |
| 229 'flutter/sky/engine/bindings/dart_vm_entry_points.txt', | 229 'flutter/runtime/dart_vm_entry_points.txt', |
| 230 'flutter/lib/snapshot/snapshot.dart', | 230 'flutter/lib/snapshot/snapshot.dart', |
| 231 'out/%s/clang_x64/gen_snapshot' % device_out, | 231 'out/%s/clang_x64/gen_snapshot' % device_out, |
| 232 'out/%s/Flutter.framework.zip' % label, | 232 'out/%s/Flutter.framework.zip' % label, |
| 233 ]) | 233 ]) |
| 234 | 234 |
| 235 | 235 |
| 236 def BuildIOS(api): | 236 def BuildIOS(api): |
| 237 # Generate Ninja files for all valid configurations. | 237 # Generate Ninja files for all valid configurations. |
| 238 RunGN(api, '--ios', '--runtime-mode', 'debug') | 238 RunGN(api, '--ios', '--runtime-mode', 'debug') |
| 239 RunGN(api, '--ios', '--runtime-mode', 'profile') | 239 RunGN(api, '--ios', '--runtime-mode', 'profile') |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 BuildIOS(api) | 301 BuildIOS(api) |
| 302 | 302 |
| 303 | 303 |
| 304 def GenTests(api): | 304 def GenTests(api): |
| 305 # A valid commit to flutter/engine, to make the gsutil urls look real. | 305 # A valid commit to flutter/engine, to make the gsutil urls look real. |
| 306 for platform in ('mac', 'linux'): | 306 for platform in ('mac', 'linux'): |
| 307 yield (api.test(platform) + api.platform(platform, 64) | 307 yield (api.test(platform) + api.platform(platform, 64) |
| 308 + api.properties(mastername='client.flutter', | 308 + api.properties(mastername='client.flutter', |
| 309 buildername='%s Engine' % platform.capitalize(), | 309 buildername='%s Engine' % platform.capitalize(), |
| 310 slavename='fake-m1', clobber='')) | 310 slavename='fake-m1', clobber='')) |
| OLD | NEW |