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 MacPort(base.Port): | 40 class MacPort(base.Port): |
41 SUPPORTED_VERSIONS = ('snowleopard', 'lion', 'retina', 'mountainlion', 'mave
ricks') | 41 SUPPORTED_VERSIONS = ('snowleopard', 'lion', 'retina', 'mountainlion', 'mave
ricks') |
42 port_name = 'mac' | 42 port_name = 'mac' |
43 | 43 |
44 # FIXME: We treat Retina (High-DPI) devices as if they are running | 44 # FIXME: We treat Retina (High-DPI) devices as if they are running |
45 # a different operating system version. This is lame and should be fixed. | 45 # a different operating system version. This is lame and should be fixed. |
46 # Note that the retina versions fallback to the non-retina versions and so n
o | 46 # Note that the retina versions fallback to the non-retina versions and so n
o |
47 # baselines are shared between retina versions; this keeps the fallback grap
h as a tree | 47 # baselines are shared between retina versions; this keeps the fallback grap
h as a tree |
48 # and maximizes the number of baselines we can share that way. | 48 # and maximizes the number of baselines we can share that way. |
49 # We also currently only support Retina on 10.8; we need to either upgrade t
o 10.9 or support both. | 49 # We also currently only support Retina on 10.9. |
50 | 50 |
51 FALLBACK_PATHS = {} | 51 FALLBACK_PATHS = {} |
52 FALLBACK_PATHS['mavericks'] = ['mac'] | 52 FALLBACK_PATHS['mavericks'] = ['mac'] |
53 FALLBACK_PATHS['retina'] = ['mac-retina'] + FALLBACK_PATHS['mavericks'] | 53 FALLBACK_PATHS['retina'] = ['mac-retina'] + FALLBACK_PATHS['mavericks'] |
54 FALLBACK_PATHS['mountainlion'] = ['mac-mountainlion'] + FALLBACK_PATHS['mave
ricks'] | 54 FALLBACK_PATHS['mountainlion'] = ['mac-mountainlion'] + FALLBACK_PATHS['mave
ricks'] |
55 FALLBACK_PATHS['lion'] = ['mac-lion'] + FALLBACK_PATHS['mountainlion'] | 55 FALLBACK_PATHS['lion'] = ['mac-lion'] + FALLBACK_PATHS['mountainlion'] |
56 FALLBACK_PATHS['snowleopard'] = ['mac-snowleopard'] + FALLBACK_PATHS['lion'] | 56 FALLBACK_PATHS['snowleopard'] = ['mac-snowleopard'] + FALLBACK_PATHS['lion'] |
57 | 57 |
58 DEFAULT_BUILD_DIRECTORIES = ('xcodebuild', 'out') | 58 DEFAULT_BUILD_DIRECTORIES = ('xcodebuild', 'out') |
59 | 59 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 def _path_to_driver(self, configuration=None): | 110 def _path_to_driver(self, configuration=None): |
111 # FIXME: make |configuration| happy with case-sensitive file systems. | 111 # FIXME: make |configuration| happy with case-sensitive file systems. |
112 return self._build_path_with_configuration(configuration, self.driver_na
me() + '.app', 'Contents', 'MacOS', self.driver_name()) | 112 return self._build_path_with_configuration(configuration, self.driver_na
me() + '.app', 'Contents', 'MacOS', self.driver_name()) |
113 | 113 |
114 def _path_to_helper(self): | 114 def _path_to_helper(self): |
115 binary_name = 'layout_test_helper' | 115 binary_name = 'layout_test_helper' |
116 return self._build_path(binary_name) | 116 return self._build_path(binary_name) |
117 | 117 |
118 def _path_to_wdiff(self): | 118 def _path_to_wdiff(self): |
119 return 'wdiff' | 119 return 'wdiff' |
OLD | NEW |