| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 SUPPORTED_VERSIONS = ('precise', 'trusty') | 46 SUPPORTED_VERSIONS = ('precise', 'trusty') |
| 47 | 47 |
| 48 FALLBACK_PATHS = {} | 48 FALLBACK_PATHS = {} |
| 49 FALLBACK_PATHS['trusty'] = ['linux'] + win.WinPort.latest_platform_fallback_
path() | 49 FALLBACK_PATHS['trusty'] = ['linux'] + win.WinPort.latest_platform_fallback_
path() |
| 50 FALLBACK_PATHS['precise'] = ['linux-precise'] + FALLBACK_PATHS['trusty'] | 50 FALLBACK_PATHS['precise'] = ['linux-precise'] + FALLBACK_PATHS['trusty'] |
| 51 | 51 |
| 52 DEFAULT_BUILD_DIRECTORIES = ('out',) | 52 DEFAULT_BUILD_DIRECTORIES = ('out',) |
| 53 | 53 |
| 54 BUILD_REQUIREMENTS_URL = 'https://chromium.googlesource.com/chromium/src/+/m
aster/docs/linux_build_instructions.md' | 54 BUILD_REQUIREMENTS_URL = 'https://chromium.googlesource.com/chromium/src/+/m
aster/docs/linux_build_instructions.md' |
| 55 |
| 55 @classmethod | 56 @classmethod |
| 56 def determine_full_port_name(cls, host, options, port_name): | 57 def determine_full_port_name(cls, host, options, port_name): |
| 57 if port_name.endswith('linux'): | 58 if port_name.endswith('linux'): |
| 58 assert host.platform.is_linux() | 59 assert host.platform.is_linux() |
| 59 version = host.platform.os_version | 60 version = host.platform.os_version |
| 60 return port_name + '-' + version | 61 return port_name + '-' + version |
| 61 return port_name | 62 return port_name |
| 62 | 63 |
| 63 | |
| 64 def __init__(self, host, port_name, **kwargs): | 64 def __init__(self, host, port_name, **kwargs): |
| 65 super(LinuxPort, self).__init__(host, port_name, **kwargs) | 65 super(LinuxPort, self).__init__(host, port_name, **kwargs) |
| 66 self._version = port_name[port_name.index('linux-') + len('linux-'):] | 66 self._version = port_name[port_name.index('linux-') + len('linux-'):] |
| 67 self._architecture = "x86_64" | 67 self._architecture = "x86_64" |
| 68 assert self._version in self.SUPPORTED_VERSIONS | 68 assert self._version in self.SUPPORTED_VERSIONS |
| 69 | 69 |
| 70 if not self.get_option('disable_breakpad'): | 70 if not self.get_option('disable_breakpad'): |
| 71 self._dump_reader = DumpReaderLinux(host, self._build_path()) | 71 self._dump_reader = DumpReaderLinux(host, self._build_path()) |
| 72 | 72 |
| 73 def additional_driver_flag(self): | 73 def additional_driver_flag(self): |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 def _wdiff_missing_message(self): | 121 def _wdiff_missing_message(self): |
| 122 return 'wdiff is not installed; please install using "sudo apt-get insta
ll wdiff"' | 122 return 'wdiff is not installed; please install using "sudo apt-get insta
ll wdiff"' |
| 123 | 123 |
| 124 def _path_to_driver(self, target=None): | 124 def _path_to_driver(self, target=None): |
| 125 binary_name = self.driver_name() | 125 binary_name = self.driver_name() |
| 126 return self._build_path_with_target(target, binary_name) | 126 return self._build_path_with_target(target, binary_name) |
| 127 | 127 |
| 128 def _path_to_helper(self): | 128 def _path_to_helper(self): |
| 129 return None | 129 return None |
| OLD | NEW |