Hide X11 dependencies when use_x11=0.

When using a non X11 build with Ozone, we still have dependencies on
X11. This patch tries to hide X11 and related dependencies when
use_x11=0

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251981 0039d316-1c4b-4281-b951-d872f2087c98
parent 1554e827
This diff is collapsed.
...@@ -3450,7 +3450,6 @@ ...@@ -3450,7 +3450,6 @@
'dependencies': [ 'dependencies': [
'../build/linux/system.gyp:dbus', '../build/linux/system.gyp:dbus',
'../build/linux/system.gyp:fontconfig', '../build/linux/system.gyp:fontconfig',
'../build/linux/system.gyp:x11',
'../dbus/dbus.gyp:dbus', '../dbus/dbus.gyp:dbus',
], ],
'sources/': [ 'sources/': [
...@@ -3463,6 +3462,12 @@ ...@@ -3463,6 +3462,12 @@
['exclude', '^browser/lifetime/application_lifetime_stub.cc'], ['exclude', '^browser/lifetime/application_lifetime_stub.cc'],
], ],
}], }],
# x11 build
['use_x11==1', {
'dependencies': [
'../build/linux/system.gyp:x11',
],
}],
], ],
}], }],
['enable_plugin_installation==0', { ['enable_plugin_installation==0', {
......
...@@ -1038,14 +1038,23 @@ ...@@ -1038,14 +1038,23 @@
'../ui/keyboard/keyboard.gyp:keyboard_resources', '../ui/keyboard/keyboard.gyp:keyboard_resources',
], ],
}], }],
['OS=="linux" and use_aura==1', { ['OS=="linux"', {
'conditions': [
['use_aura==1', {
'dependencies': [ 'dependencies': [
'../build/linux/system.gyp:dbus', '../build/linux/system.gyp:dbus',
'../build/linux/system.gyp:fontconfig', '../build/linux/system.gyp:fontconfig',
'../build/linux/system.gyp:x11',
'../dbus/dbus.gyp:dbus', '../dbus/dbus.gyp:dbus',
], ],
}], }],
# x11 build
['use_x11==1', {
'dependencies': [
'../build/linux/system.gyp:x11',
],
}],
],
}],
['safe_browsing==1', { ['safe_browsing==1', {
'defines': [ 'defines': [
'FULL_SAFE_BROWSING', 'FULL_SAFE_BROWSING',
......
...@@ -3326,7 +3326,6 @@ ...@@ -3326,7 +3326,6 @@
'dependencies': [ 'dependencies': [
'../build/linux/system.gyp:dbus', '../build/linux/system.gyp:dbus',
'../build/linux/system.gyp:fontconfig', '../build/linux/system.gyp:fontconfig',
'../build/linux/system.gyp:x11',
'../dbus/dbus.gyp:dbus', '../dbus/dbus.gyp:dbus',
], ],
}], }],
...@@ -3337,6 +3336,12 @@ ...@@ -3337,6 +3336,12 @@
['exclude', '^browser/ui/views/notifications/balloon_collection_views.cc'], ['exclude', '^browser/ui/views/notifications/balloon_collection_views.cc'],
], ],
}], }],
# x11 build
['use_x11==1', {
'dependencies': [
'../build/linux/system.gyp:x11',
],
}],
], ],
}], }],
# On chromeos, file manager extension handles the file open/save dialog. # On chromeos, file manager extension handles the file open/save dialog.
......
...@@ -201,13 +201,18 @@ ...@@ -201,13 +201,18 @@
'<@(chromium_child_dependencies)', '<@(chromium_child_dependencies)',
'../content/content.gyp:content_app_both', '../content/content.gyp:content_app_both',
# Needed for chrome_main.cc initialization of libraries. # Needed for chrome_main.cc initialization of libraries.
'../build/linux/system.gyp:x11',
'../build/linux/system.gyp:pangocairo', '../build/linux/system.gyp:pangocairo',
'../build/linux/system.gyp:xext',
# Needed to use the master_preferences functions # Needed to use the master_preferences functions
'installer_util', 'installer_util',
], ],
}], }],
# x11 build. Needed for chrome_main.cc initialization of libraries.
['use_x11==1', {
'dependencies': [
'../build/linux/system.gyp:x11',
'../build/linux/system.gyp:xext',
],
}],
], ],
'sources': [ 'sources': [
'app/chrome_dll_resource.h', 'app/chrome_dll_resource.h',
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
'targets': [ 'targets': [
], ],
'conditions': [ 'conditions': [
['OS == "linux" and target_arch != "arm"', { ['OS == "linux" and target_arch != "arm" and use_x11==1', {
'targets': [ 'targets': [
{ {
'target_name': 'compositor_model_bench', 'target_name': 'compositor_model_bench',
......
...@@ -184,7 +184,7 @@ ...@@ -184,7 +184,7 @@
'<(DEPTH)/media/cast/test/receiver.cc', '<(DEPTH)/media/cast/test/receiver.cc',
], ],
'conditions': [ 'conditions': [
['OS == "linux"', { ['OS == "linux" and use_x11==1', {
'dependencies': [ 'dependencies': [
'<(DEPTH)/build/linux/system.gyp:x11', '<(DEPTH)/build/linux/system.gyp:x11',
'<(DEPTH)/build/linux/system.gyp:xext', '<(DEPTH)/build/linux/system.gyp:xext',
......
...@@ -62,7 +62,6 @@ ...@@ -62,7 +62,6 @@
'toolsets': ['host'], 'toolsets': ['host'],
'dependencies': [ 'dependencies': [
'../../../base/base.gyp:base', '../../../base/base.gyp:base',
'../../../build/linux/system.gyp:x11',
'../common/common.gyp:android_tools_common', '../common/common.gyp:android_tools_common',
], ],
'include_dirs': [ 'include_dirs': [
...@@ -78,8 +77,8 @@ ...@@ -78,8 +77,8 @@
'host_forwarder_main.cc', 'host_forwarder_main.cc',
'pipe_notifier.cc', 'pipe_notifier.cc',
'socket.cc', 'socket.cc',
# TODO(pliard): Remove this and x11 dependency above. This is needed # TODO(pliard): Remove this. This is needed to avoid undefined
# to avoid undefined references at link time. # references at link time.
'../../../base/message_loop/message_pump_glib.cc', '../../../base/message_loop/message_pump_glib.cc',
'../../../base/message_loop/message_pump_gtk.cc', '../../../base/message_loop/message_pump_gtk.cc',
], ],
......
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