OLD | NEW |
1 # Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2006-2009 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 """This is the Linux implementation of the layout_package.platform_utils | 5 """This is the Linux implementation of the layout_package.platform_utils |
6 package. This file should only be imported by that package.""" | 6 package. This file should only be imported by that package.""" |
7 | 7 |
8 import path_utils | 8 import path_utils |
9 import subprocess | 9 import subprocess |
10 import sys | 10 import sys |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 stdout=subprocess.PIPE, | 129 stdout=subprocess.PIPE, |
130 stderr=subprocess.PIPE).wait() | 130 stderr=subprocess.PIPE).wait() |
131 | 131 |
132 # | 132 # |
133 # Private helper functions. | 133 # Private helper functions. |
134 # | 134 # |
135 | 135 |
136 def _FindBinary(target, binary): | 136 def _FindBinary(target, binary): |
137 """On Windows, we look for binaries that we compile in potentially | 137 """On Windows, we look for binaries that we compile in potentially |
138 two places: src/webkit/$target (preferably, which we get if we | 138 two places: src/webkit/$target (preferably, which we get if we |
139 built using webkit.gyp), or src/chrome/$target (if compiled some other | 139 built using webkit_glue.gyp), or src/chrome/$target (if compiled some other |
140 way).""" | 140 way).""" |
141 try: | 141 try: |
142 return path_utils.PathFromBase('webkit', target, binary) | 142 return path_utils.PathFromBase('webkit', target, binary) |
143 except path_utils.PathNotFound: | 143 except path_utils.PathNotFound: |
144 try: | 144 try: |
145 return path_utils.PathFromBase('chrome', target, binary) | 145 return path_utils.PathFromBase('chrome', target, binary) |
146 except path_utils.PathNotFound: | 146 except path_utils.PathNotFound: |
147 return path_utils.PathFromBase('build', target, binary) | 147 return path_utils.PathFromBase('build', target, binary) |
OLD | NEW |