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

Side by Side Diff: scripts/slave/recipe_modules/skia/chromeos_flavor.py

Issue 1916263003: Reland "Skia: Maintain a checkout on swarming (compile) bots" (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Fix expectations after roll Created 4 years, 7 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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 5
6 import default_flavor 6 import default_flavor
7 import ssh_flavor 7 import ssh_flavor
8 8
9 9
10 """Utils for building for and running tests on ChromeOS.""" 10 """Utils for building for and running tests on ChromeOS."""
(...skipping 14 matching lines...) Expand all
25 remote_path = self.device_path_join(self.device_bin_dir, cmd[0]) 25 remote_path = self.device_path_join(self.device_bin_dir, cmd[0])
26 self.copy_file_to_device(local_path, remote_path) 26 self.copy_file_to_device(local_path, remote_path)
27 super(ChromeOSFlavorUtils, self).step(name=name, 27 super(ChromeOSFlavorUtils, self).step(name=name,
28 cmd=[remote_path]+cmd[1:], 28 cmd=[remote_path]+cmd[1:],
29 **kwargs) 29 **kwargs)
30 30
31 def compile(self, target): 31 def compile(self, target):
32 """Build the given target.""" 32 """Build the given target."""
33 # Add depot_tools/third_party/gsutil to PATH. 33 # Add depot_tools/third_party/gsutil to PATH.
34 env = {'PATH': '%(PATH)s:/home/chrome-bot/depot_tools/third_party/gsutil'} 34 env = {'PATH': '%(PATH)s:/home/chrome-bot/depot_tools/third_party/gsutil'}
35 skia_dir = self._skia_api.m.path['checkout'] 35 skia_dir = self._skia_api.skia_dir
36 cmd = [skia_dir.join('platform_tools', 'chromeos', 'bin', 'chromeos_make'), 36 cmd = [skia_dir.join('platform_tools', 'chromeos', 'bin', 'chromeos_make'),
37 '-d', self.board, 37 '-d', self.board,
38 target] 38 target]
39 self._skia_api.run(self._skia_api.m.step, 'build %s' % target, cmd=cmd, 39 self._skia_api.run(self._skia_api.m.step, 'build %s' % target, cmd=cmd,
40 cwd=skia_dir, env=env) 40 cwd=skia_dir, env=env)
41 41
42 def install(self): 42 def install(self):
43 """Run any device-specific installation steps.""" 43 """Run any device-specific installation steps."""
44 self.create_clean_device_dir(self.device_bin_dir) 44 self.create_clean_device_dir(self.device_bin_dir)
45 45
46 def get_device_dirs(self): 46 def get_device_dirs(self):
47 """ Set the directories which will be used by the build steps.""" 47 """ Set the directories which will be used by the build steps."""
48 prefix = self.device_path_join(self.device_root_dir, 'skia_') 48 prefix = self.device_path_join(self.device_root_dir, 'skia_')
49 def join(suffix): 49 def join(suffix):
50 return ''.join((prefix, suffix)) 50 return ''.join((prefix, suffix))
51 return default_flavor.DeviceDirs( 51 return default_flavor.DeviceDirs(
52 dm_dir=join('dm_out'), # 'dm' conflicts with the binary 52 dm_dir=join('dm_out'), # 'dm' conflicts with the binary
53 perf_data_dir=join('perf'), 53 perf_data_dir=join('perf'),
54 resource_dir=join('resources'), 54 resource_dir=join('resources'),
55 images_dir=join('images'), 55 images_dir=join('images'),
56 skp_dir=self.device_path_join(join('skp'), 'skps'), 56 skp_dir=self.device_path_join(join('skp'), 'skps'),
57 tmp_dir=join('tmp_dir')) 57 tmp_dir=join('tmp_dir'))
58 58
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/skia/api.py ('k') | scripts/slave/recipe_modules/skia/cmake_flavor.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698