Commit 456c6242 authored by mlamouri@chromium.org's avatar mlamouri@chromium.org

Point to build requirements page when there is a dependency check failure.

BUG=None

Review URL: https://codereview.chromium.org/196413027

git-svn-id: svn://svn.chromium.org/blink/trunk@169952 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent d879445d
......@@ -412,6 +412,8 @@ class AndroidPort(base.Port):
# Android has aac and mp3 codecs built in.
PORT_HAS_AUDIO_CODECS_BUILT_IN = True
BUILD_REQUIREMENTS_URL = 'https://code.google.com/p/chromium/wiki/AndroidBuildInstructions'
def __init__(self, host, port_name, **kwargs):
super(AndroidPort, self).__init__(host, port_name, **kwargs)
......
......@@ -130,6 +130,9 @@ class Port(object):
SUPPORTED_VERSIONS = []
# URL to the build requirements page.
BUILD_REQUIREMENTS_URL = ''
@classmethod
def latest_platform_fallback_path(cls):
return cls.FALLBACK_PATHS[cls.SUPPORTED_VERSIONS[-1]]
......@@ -383,6 +386,10 @@ class Port(object):
_log.error('To override, invoke with --nocheck-sys-deps')
_log.error('')
_log.error(output)
if self.BUILD_REQUIREMENTS_URL is not '':
_log.error('')
_log.error('For complete build requirements, please see:')
_log.error(self.BUILD_REQUIREMENTS_URL)
return test_run_results.SYS_DEPS_EXIT_STATUS
return test_run_results.OK_EXIT_STATUS
......
......@@ -50,6 +50,8 @@ class LinuxPort(base.Port):
DEFAULT_BUILD_DIRECTORIES = ('out',)
BUILD_REQUIREMENTS_URL = 'https://code.google.com/p/chromium/wiki/LinuxBuildInstructions'
@classmethod
def _determine_driver_path_statically(cls, host, options):
config_object = config.Config(host.executive, host.filesystem)
......
......@@ -59,6 +59,8 @@ class MacPort(base.Port):
CONTENT_SHELL_NAME = 'Content Shell'
BUILD_REQUIREMENTS_URL = 'https://code.google.com/p/chromium/wiki/MacBuildInstructions'
@classmethod
def determine_full_port_name(cls, host, options, port_name):
if port_name.endswith('mac'):
......
......@@ -58,6 +58,8 @@ class WinPort(base.Port):
DEFAULT_BUILD_DIRECTORIES = ('build', 'out')
BUILD_REQUIREMENTS_URL = 'http://www.chromium.org/developers/how-tos/build-instructions-windows'
@classmethod
def determine_full_port_name(cls, host, options, port_name):
if port_name.endswith('win'):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment