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

Side by Side Diff: scripts/slave/recipes/flutter/engine.py

Issue 2238873003: Stop distributing SkyShell.apk and flutter.mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | scripts/slave/recipes/flutter/engine.expected/linux.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 95
96 def BuildLinuxAndroidx86(api): 96 def BuildLinuxAndroidx86(api):
97 for x86_variant, abi in [('x64', 'x86_64'), ('x86', 'x86')]: 97 for x86_variant, abi in [('x64', 'x86_64'), ('x86', 'x86')]:
98 RunGN(api, '--android', '--android-cpu=' + x86_variant) 98 RunGN(api, '--android', '--android-cpu=' + x86_variant)
99 out_dir = 'android_debug_' + x86_variant 99 out_dir = 'android_debug_' + x86_variant
100 Build(api, out_dir) 100 Build(api, out_dir)
101 folder = 'android-' + x86_variant 101 folder = 'android-' + x86_variant
102 UploadArtifacts(api, folder, [ 102 UploadArtifacts(api, folder, [
103 'build/android/ant/chromium-debug.keystore', 103 'build/android/ant/chromium-debug.keystore',
104 'out/%s/apks/SkyShell.apk' % out_dir,
105 ('out/%s/gen/flutter/sky/shell/shell/shell/libs/%s/libsky_shell.so' % 104 ('out/%s/gen/flutter/sky/shell/shell/shell/libs/%s/libsky_shell.so' %
106 (out_dir, abi)), 105 (out_dir, abi)),
107 'out/%s/icudtl.dat' % out_dir, 106 'out/%s/icudtl.dat' % out_dir,
108 'out/%s/gen/flutter/sky/shell/shell/classes.dex.jar' % out_dir, 107 'out/%s/gen/flutter/sky/shell/shell/classes.dex.jar' % out_dir,
109 ]) 108 ])
110 UploadArtifacts(api, folder, [ 109 UploadArtifacts(api, folder, [
111 'out/%s/libsky_shell.so' % out_dir 110 'out/%s/libsky_shell.so' % out_dir
112 ], archive_name='symbols.zip') 111 ], archive_name='symbols.zip')
113 112
114 113
115 def AddPathPrefix(api, prefix, paths): 114 def AddPathPrefix(api, prefix, paths):
116 return map(lambda path: api.path.join(prefix, path), paths) 115 return map(lambda path: api.path.join(prefix, path), paths)
117 116
118 117
119 def BuildLinuxAndroidArm(api): 118 def BuildLinuxAndroidArm(api):
120 out_paths = [ 119 out_paths = [
121 'apks/SkyShell.apk',
122 'flutter.jar', 120 'flutter.jar',
123 'flutter.mojo',
124 'gen/flutter/sky/shell/shell/shell/libs/armeabi-v7a/libsky_shell.so', 121 'gen/flutter/sky/shell/shell/shell/libs/armeabi-v7a/libsky_shell.so',
125 'icudtl.dat', 122 'icudtl.dat',
126 'gen/flutter/sky/shell/shell/classes.dex.jar', 123 'gen/flutter/sky/shell/shell/classes.dex.jar',
127 ] 124 ]
128 RunGN(api, '--android') 125 RunGN(api, '--android')
129 Build(api, 'android_debug', ':dist') 126 Build(api, 'android_debug', ':dist')
130 UploadArtifacts(api, 'android-arm', [ 127 UploadArtifacts(api, 'android-arm', [
131 'build/android/ant/chromium-debug.keystore', 128 'build/android/ant/chromium-debug.keystore',
132 ] + AddPathPrefix(api, 'out/android_debug', out_paths)) 129 ] + AddPathPrefix(api, 'out/android_debug', out_paths))
133 UploadArtifacts(api, 'android-arm', [ 130 UploadArtifacts(api, 'android-arm', [
(...skipping 24 matching lines...) Expand all
158 ], archive_name='symbols.zip') 155 ], archive_name='symbols.zip')
159 156
160 UploadDartPackage(api, 'sky_engine') 157 UploadDartPackage(api, 'sky_engine')
161 UploadDartPackage(api, 'sky_services') 158 UploadDartPackage(api, 'sky_services')
162 159
163 160
164 def BuildLinux(api): 161 def BuildLinux(api):
165 RunGN(api) 162 RunGN(api)
166 Build(api, 'host_debug') 163 Build(api, 'host_debug')
167 UploadArtifacts(api, 'linux-x64', [ 164 UploadArtifacts(api, 'linux-x64', [
168 'out/host_debug/flutter.mojo',
169 'out/host_debug/icudtl.dat', 165 'out/host_debug/icudtl.dat',
170 'out/host_debug/sky_shell', 166 'out/host_debug/sky_shell',
171 'out/host_debug/sky_snapshot', 167 'out/host_debug/sky_snapshot',
172 ]) 168 ])
173 169
174 170
175 def TestObservatory(api): 171 def TestObservatory(api):
176 checkout = api.path['slave_build'].join('src') 172 checkout = api.path['slave_build'].join('src')
177 sky_shell_path = checkout.join('out/host_debug/sky_shell') 173 sky_shell_path = checkout.join('out/host_debug/sky_shell')
178 empty_main_path = \ 174 empty_main_path = \
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 BuildIOS(api) 301 BuildIOS(api)
306 302
307 303
308 def GenTests(api): 304 def GenTests(api):
309 # 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.
310 for platform in ('mac', 'linux'): 306 for platform in ('mac', 'linux'):
311 yield (api.test(platform) + api.platform(platform, 64) 307 yield (api.test(platform) + api.platform(platform, 64)
312 + api.properties(mastername='client.flutter', 308 + api.properties(mastername='client.flutter',
313 buildername='%s Engine' % platform.capitalize(), 309 buildername='%s Engine' % platform.capitalize(),
314 slavename='fake-m1', clobber='')) 310 slavename='fake-m1', clobber=''))
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipes/flutter/engine.expected/linux.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698