diff --git a/build/linux/system.gyp b/build/linux/system.gyp index 1e534f5e3b8c44..e8e3287e5eb326 100644 --- a/build/linux/system.gyp +++ b/build/linux/system.gyp @@ -473,29 +473,29 @@ ['_toolset=="target"', { 'direct_dependent_settings': { 'cflags': [ - ' +#elif defined(OS_LINUX) +#include +#include +#endif + int main(int argc, char** argv) { #if defined(OS_WIN) OleInitialize(NULL); @@ -31,7 +38,7 @@ int main(int argc, char** argv) { // Initializes gtk stuff. g_thread_init(NULL); g_type_init(); -#if !defined(USE_WAYLAND) +#if defined(TOOLKIT_USES_GTK) && !defined(USE_WAYLAND) gtk_init(&argc, &argv); #endif #endif diff --git a/views/views.gyp b/views/views.gyp index 12c294aaaed0d8..e3bce086bf464f 100644 --- a/views/views.gyp +++ b/views/views.gyp @@ -23,6 +23,7 @@ 'sources/': [ ['exclude', '_win\\.(h|cc)$'], ['exclude', '_gtk\\.(h|cc)$'], ['exclude', '_x\\.(h|cc)$'] ], + 'dependencies': [ '../ui/aura/aura.gyp:aura', ], }], ], }, @@ -428,9 +429,6 @@ ], }], ['use_aura==1', { - 'dependencies': [ - '../ui/aura/aura.gyp:aura', - ], 'sources/': [ ['exclude', '_(gtk|x)\\.cc$'], ['exclude', '/(gtk|x)_[^/]*\\.cc$'], @@ -854,6 +852,12 @@ ['toolkit_uses_gtk == 1', { 'dependencies': [ '../build/linux/system.gyp:gtk', + ], + }, + ], + ['use_glib == 1', { + 'dependencies': [ + '../build/linux/system.gyp:glib', '../chrome/chrome.gyp:packed_resources', ], 'conditions': [ @@ -863,8 +867,7 @@ ], }], ], - }, - ], + }], ['OS=="win"', { 'link_settings': { 'libraries': [