From e45e2af927bee03e7f2209b4d717a8c3555cde23 Mon Sep 17 00:00:00 2001 From: Andras Becsi Date: Mon, 24 Mar 2014 18:41:20 +0100 Subject: Get rid of the gtk/pango/cairo dependency This also removes the aura dependency to chrome resources since we repack the needed resources ourselves. Reviewed-by: Zeno Albisser Change-Id: I0368bb36948ba9612040ed869ef818d4b8471b9b --- chromium/build/linux/system.gyp | 6 +++++- chromium/content/browser/renderer_host/render_sandbox_host_linux.cc | 2 +- chromium/content/renderer/npapi/webplugin_delegate_proxy.cc | 2 +- chromium/ui/aura/aura.gyp | 1 - 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/chromium/build/linux/system.gyp b/chromium/build/linux/system.gyp index 4a7e857efc1..1451afbd214 100644 --- a/chromium/build/linux/system.gyp +++ b/chromium/build/linux/system.gyp @@ -29,7 +29,7 @@ 'use_system_ssl%': 1, }, }], - [ 'chromeos==0', { + [ 'chromeos==0 and use_qt==0', { # Hide GTK and related dependencies for Chrome OS, so they won't get # added back to Chrome OS. Don't try to use GTK on Chrome OS. 'targets': [ @@ -659,6 +659,8 @@ 'target_name': 'pangocairo', 'type': 'none', 'toolsets': ['host', 'target'], + 'conditions': [ + ['use_pango==1', { 'conditions': [ ['_toolset=="target"', { 'direct_dependent_settings': { @@ -690,6 +692,8 @@ }, }], ], + }], + ], }, { 'target_name': 'ssl', diff --git a/chromium/content/browser/renderer_host/render_sandbox_host_linux.cc b/chromium/content/browser/renderer_host/render_sandbox_host_linux.cc index 19cbc5b4b35..f4e1cfc6e41 100644 --- a/chromium/content/browser/renderer_host/render_sandbox_host_linux.cc +++ b/chromium/content/browser/renderer_host/render_sandbox_host_linux.cc @@ -709,7 +709,7 @@ void RenderSandboxHostLinux::Init(const std::string& sandbox_path) { childs_lifeline_fd_ = pipefds[1]; // We need to be monothreaded before we fork(). -#if !defined(TOOLKIT_GTK) +#if !defined(TOOLKIT_GTK) && !defined(TOOLKIT_QT) // Exclude gtk port as TestSuite in base/tests/test_suite.cc is calling // gtk_init. // TODO(oshima): Remove ifdef when above issues are resolved. diff --git a/chromium/content/renderer/npapi/webplugin_delegate_proxy.cc b/chromium/content/renderer/npapi/webplugin_delegate_proxy.cc index d7f847240b0..a6418fb5a8f 100644 --- a/chromium/content/renderer/npapi/webplugin_delegate_proxy.cc +++ b/chromium/content/renderer/npapi/webplugin_delegate_proxy.cc @@ -6,7 +6,7 @@ #if defined(TOOLKIT_GTK) #include -#elif defined(USE_X11) +#elif defined(USE_CAIRO) #include #endif diff --git a/chromium/ui/aura/aura.gyp b/chromium/ui/aura/aura.gyp index 68164d4321a..139e0469ef2 100644 --- a/chromium/ui/aura/aura.gyp +++ b/chromium/ui/aura/aura.gyp @@ -243,7 +243,6 @@ 'type': 'executable', 'dependencies': [ '../../base/base.gyp:test_support_base', - '../../chrome/chrome_resources.gyp:packed_resources', '../../skia/skia.gyp:skia', '../../testing/gtest.gyp:gtest', '../compositor/compositor.gyp:compositor', -- cgit v1.2.1