OLD | NEW |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """ Install all executables, and any runtime resources that are needed by | 6 """ Install all executables, and any runtime resources that are needed by |
7 *both* Test and Bench builders. """ | 7 *both* Test and Bench builders. """ |
8 | 8 |
9 from build_step import BuildStep | 9 from build_step import BuildStep |
10 from utils import file_utils | |
10 from utils import gs_utils | 11 from utils import gs_utils |
11 import os | 12 import os |
12 import sys | 13 import sys |
13 | 14 |
14 | 15 |
15 class Install(BuildStep): | 16 class Install(BuildStep): |
16 def _Run(self): | 17 def _Run(self): |
17 # Push the SKPs to the device. | 18 # Push the SKPs to the device. |
18 skps_need_updating = True | 19 skps_need_updating = True |
19 try: | 20 try: |
(...skipping 15 matching lines...) Expand all Loading... | |
35 self.CopyDirectoryContentsToDevice(self._skp_dir, | 36 self.CopyDirectoryContentsToDevice(self._skp_dir, |
36 self._device_dirs.SKPDir()) | 37 self._device_dirs.SKPDir()) |
37 | 38 |
38 # Push resources to the device. | 39 # Push resources to the device. |
39 self.CopyDirectoryContentsToDevice(self._resource_dir, | 40 self.CopyDirectoryContentsToDevice(self._resource_dir, |
40 self._device_dirs.ResourceDir()) | 41 self._device_dirs.ResourceDir()) |
41 | 42 |
42 # Initialize a clean scratch directory. | 43 # Initialize a clean scratch directory. |
43 self.CreateCleanDirectory(self._device_dirs.TmpDir()) | 44 self.CreateCleanDirectory(self._device_dirs.TmpDir()) |
44 | 45 |
46 # Copy expectations file and images to decode in skimage to device. | |
47 self.CopyDirectoryContentsToDevice(self._skimage_expected_dir, | |
48 self._device_dirs.SKImageExpectedDir()) | |
49 | |
50 self.CopyDirectoryContentsToDevice(self._skimage_in_dir, | |
51 self._device_dirs.SKImageInDir()) | |
52 | |
53 # Create an out directory locally for android builds, so the files can be | |
54 # copied back to the master | |
55 file_utils.CreateCleanLocalDir(self._skimage_out_dir) | |
56 | |
57 # Create a directory for the output of skimage | |
58 self.CreateCleanDirectory(self._device_dirs.SKImageOutDir()) | |
borenet
2013/06/26 12:54:45
Can we put these additions in PreRender since they
scroggo
2013/06/26 15:06:39
Done.
| |
45 | 59 |
46 if '__main__' == __name__: | 60 if '__main__' == __name__: |
47 sys.exit(BuildStep.RunBuildStep(Install)) | 61 sys.exit(BuildStep.RunBuildStep(Install)) |
OLD | NEW |