| OLD | NEW |
| 1 # Copyright (C) 2010 Google Inc. All rights reserved. | 1 # Copyright (C) 2010 Google Inc. All rights reserved. |
| 2 # | 2 # |
| 3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
| 4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
| 5 # met: | 5 # met: |
| 6 # | 6 # |
| 7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
| 8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
| 9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
| 10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 class ChromiumMacPort(chromium.ChromiumPort): | 40 class ChromiumMacPort(chromium.ChromiumPort): |
| 41 SUPPORTED_OS_VERSIONS = ('snowleopard', 'lion', 'mountainlion', 'future') | 41 SUPPORTED_OS_VERSIONS = ('snowleopard', 'lion', 'mountainlion', 'future') |
| 42 port_name = 'chromium-mac' | 42 port_name = 'chromium-mac' |
| 43 | 43 |
| 44 FALLBACK_PATHS = { | 44 FALLBACK_PATHS = { |
| 45 'snowleopard': [ | 45 'snowleopard': [ |
| 46 'chromium-mac-snowleopard', | 46 'chromium-mac-snowleopard', |
| 47 'chromium-mac-lion', | 47 'chromium-mac-lion', |
| 48 'chromium-mac', | 48 'chromium-mac', |
| 49 'chromium', | |
| 50 ], | 49 ], |
| 51 'lion': [ | 50 'lion': [ |
| 52 'chromium-mac-lion', | 51 'chromium-mac-lion', |
| 53 'chromium-mac', | 52 'chromium-mac', |
| 54 'chromium', | |
| 55 ], | 53 ], |
| 56 'mountainlion': [ | 54 'mountainlion': [ |
| 57 'chromium-mac', | 55 'chromium-mac', |
| 58 'chromium', | |
| 59 ], | 56 ], |
| 60 'future': [ | 57 'future': [ |
| 61 'chromium-mac', | 58 'chromium-mac', |
| 62 'chromium', | |
| 63 ], | 59 ], |
| 64 } | 60 } |
| 65 | 61 |
| 66 DEFAULT_BUILD_DIRECTORIES = ('xcodebuild', 'out') | 62 DEFAULT_BUILD_DIRECTORIES = ('xcodebuild', 'out') |
| 67 | 63 |
| 68 @classmethod | 64 @classmethod |
| 69 def determine_full_port_name(cls, host, options, port_name): | 65 def determine_full_port_name(cls, host, options, port_name): |
| 70 if port_name.endswith('-mac'): | 66 if port_name.endswith('-mac'): |
| 71 return port_name + '-' + host.platform.os_version | 67 return port_name + '-' + host.platform.os_version |
| 72 return port_name | 68 return port_name |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 def _path_to_driver(self, configuration=None): | 115 def _path_to_driver(self, configuration=None): |
| 120 # FIXME: make |configuration| happy with case-sensitive file systems. | 116 # FIXME: make |configuration| happy with case-sensitive file systems. |
| 121 return self._build_path_with_configuration(configuration, self.driver_na
me() + '.app', 'Contents', 'MacOS', self.driver_name()) | 117 return self._build_path_with_configuration(configuration, self.driver_na
me() + '.app', 'Contents', 'MacOS', self.driver_name()) |
| 122 | 118 |
| 123 def _path_to_helper(self): | 119 def _path_to_helper(self): |
| 124 binary_name = 'LayoutTestHelper' | 120 binary_name = 'LayoutTestHelper' |
| 125 return self._build_path(binary_name) | 121 return self._build_path(binary_name) |
| 126 | 122 |
| 127 def _path_to_wdiff(self): | 123 def _path_to_wdiff(self): |
| 128 return 'wdiff' | 124 return 'wdiff' |
| OLD | NEW |