summaryrefslogtreecommitdiffstats
path: root/build/SConscript.main
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-06 01:36:34 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-06 01:36:34 +0000
commit284308e941b0781ee4817e8b1c1c2b7ece4502d0 (patch)
tree86e9bbcc65f2cc20b4dce79bc9d444d4a7ef0557 /build/SConscript.main
parentd878bab389753cb876231717217a7e470b5a261f (diff)
downloadchromium_src-284308e941b0781ee4817e8b1c1c2b7ece4502d0.zip
chromium_src-284308e941b0781ee4817e8b1c1c2b7ece4502d0.tar.gz
chromium_src-284308e941b0781ee4817e8b1c1c2b7ece4502d0.tar.bz2
A more friendly build error on linux
when packages are not found by pkg-config. Review URL: http://codereview.chromium.org/9618 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4856 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/SConscript.main')
-rw-r--r--build/SConscript.main15
1 files changed, 12 insertions, 3 deletions
diff --git a/build/SConscript.main b/build/SConscript.main
index 49cd36a..0bb1d32 100644
--- a/build/SConscript.main
+++ b/build/SConscript.main
@@ -510,9 +510,18 @@ if ARGUMENTS.get('COVERAGE') == '1':
# Build with system-provided NSS and GTK.
if root_env['PLATFORM'] in ['linux', 'linux2', 'posix']:
- linux_env.ParseConfig('pkg-config --cflags --libs nss')
- linux_env.ParseConfig('pkg-config --cflags --libs gtk+-2.0')
- linux_env.ParseConfig('pkg-config --cflags --libs pangoft2')
+ try:
+ linux_env.ParseConfig('pkg-config --cflags --libs nss')
+ linux_env.ParseConfig('pkg-config --cflags --libs gtk+-2.0')
+ linux_env.ParseConfig('pkg-config --cflags --libs pangoft2')
+ except OSError, e:
+ print ('\n'
+ 'Failed to find a package dependency. Please install all the\n'
+ 'packages listed at\n'
+ 'http://code.google.com/p/chromium/wiki/LinuxBuildInstructions'
+ '#Software_Requirements')
+
+ sys.exit(1)
# --------------------------------------------------------------------------