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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 FALLBACK_PATHS['mavericks'] = ['mac-mavericks'] + FALLBACK_PATHS['mac10.10'] | 53 FALLBACK_PATHS['mavericks'] = ['mac-mavericks'] + FALLBACK_PATHS['mac10.10'] |
54 FALLBACK_PATHS['retina'] = ['mac-retina'] + FALLBACK_PATHS['mavericks'] | 54 FALLBACK_PATHS['retina'] = ['mac-retina'] + FALLBACK_PATHS['mavericks'] |
55 FALLBACK_PATHS['mountainlion'] = ['mac-mountainlion'] + FALLBACK_PATHS['mave
ricks'] | 55 FALLBACK_PATHS['mountainlion'] = ['mac-mountainlion'] + FALLBACK_PATHS['mave
ricks'] |
56 FALLBACK_PATHS['lion'] = ['mac-lion'] + FALLBACK_PATHS['mountainlion'] | 56 FALLBACK_PATHS['lion'] = ['mac-lion'] + FALLBACK_PATHS['mountainlion'] |
57 FALLBACK_PATHS['snowleopard'] = ['mac-snowleopard'] + FALLBACK_PATHS['lion'] | 57 FALLBACK_PATHS['snowleopard'] = ['mac-snowleopard'] + FALLBACK_PATHS['lion'] |
58 | 58 |
59 DEFAULT_BUILD_DIRECTORIES = ('xcodebuild', 'out') | 59 DEFAULT_BUILD_DIRECTORIES = ('xcodebuild', 'out') |
60 | 60 |
61 CONTENT_SHELL_NAME = 'Content Shell' | 61 CONTENT_SHELL_NAME = 'Content Shell' |
62 | 62 |
63 BUILD_REQUIREMENTS_URL = 'https://code.google.com/p/chromium/wiki/MacBuildIn
structions' | 63 BUILD_REQUIREMENTS_URL = 'https://chromium.googlesource.com/chromium/src/+/m
aster/docs/mac_build_instructions.md' |
64 | 64 |
65 @classmethod | 65 @classmethod |
66 def determine_full_port_name(cls, host, options, port_name): | 66 def determine_full_port_name(cls, host, options, port_name): |
67 if port_name.endswith('mac'): | 67 if port_name.endswith('mac'): |
68 if host.platform.os_version in ('future',): | 68 if host.platform.os_version in ('future',): |
69 version = 'mac10.10' | 69 version = 'mac10.10' |
70 else: | 70 else: |
71 version = host.platform.os_version | 71 version = host.platform.os_version |
72 if host.platform.is_highdpi(): | 72 if host.platform.is_highdpi(): |
73 version = 'retina' | 73 version = 'retina' |
74 return port_name + '-' + version | 74 return port_name + '-' + version |
75 return port_name | 75 return port_name |
76 | 76 |
77 def __init__(self, host, port_name, **kwargs): | 77 def __init__(self, host, port_name, **kwargs): |
78 super(MacPort, self).__init__(host, port_name, **kwargs) | 78 super(MacPort, self).__init__(host, port_name, **kwargs) |
79 self._version = port_name[port_name.index('mac-') + len('mac-'):] | 79 self._version = port_name[port_name.index('mac-') + len('mac-'):] |
80 assert self._version in self.SUPPORTED_VERSIONS | 80 assert self._version in self.SUPPORTED_VERSIONS |
81 | 81 |
82 def check_build(self, needs_http, printer): | 82 def check_build(self, needs_http, printer): |
83 result = super(MacPort, self).check_build(needs_http, printer) | 83 result = super(MacPort, self).check_build(needs_http, printer) |
84 if result: | 84 if result: |
85 _log.error('For complete Mac build requirements, please see:') | 85 _log.error('For complete Mac build requirements, please see:') |
86 _log.error('') | 86 _log.error('') |
87 _log.error(' http://code.google.com/p/chromium/wiki/MacBuildInstr
uctions') | 87 _log.error(' https://chromium.googlesource.com/chromium/src/+/mas
ter/docs/mac_build_instructions.md') |
88 | 88 |
89 return result | 89 return result |
90 | 90 |
91 def operating_system(self): | 91 def operating_system(self): |
92 return 'mac' | 92 return 'mac' |
93 | 93 |
94 # | 94 # |
95 # PROTECTED METHODS | 95 # PROTECTED METHODS |
96 # | 96 # |
97 | 97 |
(...skipping 10 matching lines...) Expand all Loading... |
108 def _path_to_driver(self, configuration=None): | 108 def _path_to_driver(self, configuration=None): |
109 # FIXME: make |configuration| happy with case-sensitive file systems. | 109 # FIXME: make |configuration| happy with case-sensitive file systems. |
110 return self._build_path_with_configuration(configuration, self.driver_na
me() + '.app', 'Contents', 'MacOS', self.driver_name()) | 110 return self._build_path_with_configuration(configuration, self.driver_na
me() + '.app', 'Contents', 'MacOS', self.driver_name()) |
111 | 111 |
112 def _path_to_helper(self): | 112 def _path_to_helper(self): |
113 binary_name = 'layout_test_helper' | 113 binary_name = 'layout_test_helper' |
114 return self._build_path(binary_name) | 114 return self._build_path(binary_name) |
115 | 115 |
116 def _path_to_wdiff(self): | 116 def _path_to_wdiff(self): |
117 return 'wdiff' | 117 return 'wdiff' |
OLD | NEW |