x11: Include X11 dependencies only when building with X11.
BUG=none
Review URL: https://codereview.chromium.org/12563002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186816 0039d316-1c4b-4281-b951-d872f2087c98
CrOS-Libchrome-Original-Commit: 3c0b199de26ed495312901fa56567d0ff9a21ed5
diff --git a/base/base.gyp b/base/base.gyp
index 1355944..0b08c90 100644
--- a/base/base.gyp
+++ b/base/base.gyp
@@ -62,7 +62,6 @@
'dependencies': [
'symbolize',
'../build/linux/system.gyp:glib',
- '../build/linux/system.gyp:x11',
'xdg_mime',
],
'defines': [
@@ -73,7 +72,6 @@
],
'export_dependent_settings': [
'../build/linux/system.gyp:glib',
- '../build/linux/system.gyp:x11',
],
}, { # use_glib!=1
'sources/': [
@@ -81,6 +79,14 @@
['exclude', '_nss\\.cc$'],
],
}],
+ ['use_x11==1', {
+ 'dependencies': [
+ '../build/linux/system.gyp:x11',
+ ],
+ 'export_dependent_settings': [
+ '../build/linux/system.gyp:x11',
+ ],
+ }],
['OS == "android" and _toolset == "host"', {
# Base for host support is the minimum required to run the
# ssl false start blacklist tool. It requires further changes