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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 FALLBACK_PATHS = {} | 51 FALLBACK_PATHS = {} |
52 FALLBACK_PATHS['mavericks'] = ['mac'] | 52 FALLBACK_PATHS['mavericks'] = ['mac'] |
53 FALLBACK_PATHS['mountainlion'] = ['mac-mountainlion'] + FALLBACK_PATHS['mave
ricks'] | 53 FALLBACK_PATHS['mountainlion'] = ['mac-mountainlion'] + FALLBACK_PATHS['mave
ricks'] |
54 FALLBACK_PATHS['retina'] = ['mac-retina'] + FALLBACK_PATHS['mountainlion'] | 54 FALLBACK_PATHS['retina'] = ['mac-retina'] + FALLBACK_PATHS['mountainlion'] |
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 |
60 CONTENT_SHELL_NAME = 'Content Shell' | |
61 | |
62 BUILD_REQUIREMENTS_URL = 'https://code.google.com/p/chromium/wiki/MacBuildIn
structions' | 60 BUILD_REQUIREMENTS_URL = 'https://code.google.com/p/chromium/wiki/MacBuildIn
structions' |
63 | 61 |
64 @classmethod | 62 @classmethod |
65 def determine_full_port_name(cls, host, options, port_name): | 63 def determine_full_port_name(cls, host, options, port_name): |
66 if port_name.endswith('mac'): | 64 if port_name.endswith('mac'): |
67 if host.platform.os_version in ('future',): | 65 if host.platform.os_version in ('future',): |
68 version = 'mavericks' | 66 version = 'mavericks' |
69 else: | 67 else: |
70 version = host.platform.os_version | 68 version = host.platform.os_version |
71 if host.platform.is_highdpi(): | 69 if host.platform.is_highdpi(): |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 def _path_to_driver(self, configuration=None): | 107 def _path_to_driver(self, configuration=None): |
110 # FIXME: make |configuration| happy with case-sensitive file systems. | 108 # FIXME: make |configuration| happy with case-sensitive file systems. |
111 return self._build_path_with_configuration(configuration, self.driver_na
me() + '.app', 'Contents', 'MacOS', self.driver_name()) | 109 return self._build_path_with_configuration(configuration, self.driver_na
me() + '.app', 'Contents', 'MacOS', self.driver_name()) |
112 | 110 |
113 def _path_to_helper(self): | 111 def _path_to_helper(self): |
114 binary_name = 'layout_test_helper' | 112 binary_name = 'layout_test_helper' |
115 return self._build_path(binary_name) | 113 return self._build_path(binary_name) |
116 | 114 |
117 def _path_to_wdiff(self): | 115 def _path_to_wdiff(self): |
118 return 'wdiff' | 116 return 'wdiff' |
OLD | NEW |