Reland 102005 and 102009: aura: Explicitly disable GTK.

Explicitly disable GTK by setting TOOLKIT_USES_GTK. This is the first in a
series of changes required to have chrome on aura build and link without GTK.
This CL makes base/ build without GTK. Subsequent CLs will do this for other
components.

TBR=evan@chromium.org
BUG=97131
TEST=none

Review URL: http://codereview.chromium.org/7983022

git-svn-id: http://src.chromium.org/svn/trunk/src/build@102058 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
sadrul@chromium.org 2011-09-21 00:17:19 +00:00
Родитель 17492745b4
Коммит ef323b60a0
3 изменённых файлов: 48 добавлений и 20 удалений

Просмотреть файл

@ -45,7 +45,7 @@
// A flag derived from the above flags, used to cover GTK code in
// both TOOLKIT_GTK and TOOLKIT_VIEWS.
#if defined(TOOLKIT_GTK) || (defined(TOOLKIT_VIEWS) && !defined(OS_WIN))
#if defined(TOOLKIT_GTK) || (defined(TOOLKIT_VIEWS) && !defined(OS_WIN) && !defined(USE_AURA))
#define TOOLKIT_USES_GTK 1
#endif

Просмотреть файл

@ -235,18 +235,21 @@
'os_posix%': 1,
}],
# Flag to use X11 on non-Mac POSIX platforms
# Flags to use X11 on non-Mac POSIX platforms
['OS=="win" or OS=="mac" or OS=="android"', {
'use_glib%': 0,
'toolkit_uses_gtk%': 0,
'use_x11%': 0,
}, {
# TODO(dnicoara) Wayland build should have these disabled, but
# currently GTK and X is too spread and it's hard to completely
# remove every dependency.
'use_glib%': 1,
'toolkit_uses_gtk%': 1,
'use_x11%': 1,
}],
# Flag to use Gtk on non-Aura and non-Mac POSIX platforms
['OS=="win" or OS=="mac" or OS=="android" or use_aura==1', {
['use_aura==1 and OS!="win"', {
'toolkit_uses_gtk%': 0,
}, {
'toolkit_uses_gtk%': 1,
}],
# A flag to enable or disable our compile-time dependency
@ -310,6 +313,7 @@
'views_compositor%': '<(views_compositor)',
'use_aura%': '<(use_aura)',
'os_posix%': '<(os_posix)',
'use_glib%': '<(use_glib)',
'toolkit_uses_gtk%': '<(toolkit_uses_gtk)',
'use_skia%': '<(use_skia)',
'use_x11%': '<(use_x11)',

Просмотреть файл

@ -468,19 +468,43 @@
{
'target_name': 'glib',
'type': 'settings',
'direct_dependent_settings': {
'cflags': [
'<!@(<(pkg-config) --cflags glib-2.0)',
],
},
'link_settings': {
'ldflags': [
'<!@(<(pkg-config) --libs-only-L --libs-only-other glib-2.0)',
],
'libraries': [
'<!@(<(pkg-config) --libs-only-l glib-2.0)',
],
},
'toolsets': ['host', 'target'],
'conditions': [
['_toolset=="target"', {
'direct_dependent_settings': {
'cflags': [
'<!@(<(pkg-config) --cflags glib-2.0)',
],
},
'link_settings': {
'ldflags': [
'<!@(<(pkg-config) --libs-only-L --libs-only-other glib-2.0)',
],
'libraries': [
'<!@(<(pkg-config) --libs-only-l glib-2.0)',
],
},
}, {
'direct_dependent_settings': {
'cflags': [
'<!@(pkg-config --cflags glib-2.0)',
],
},
'link_settings': {
'ldflags': [
'<!@(pkg-config --libs-only-L --libs-only-other glib-2.0)',
],
'libraries': [
'<!@(pkg-config --libs-only-l glib-2.0)',
],
},
}],
['chromeos==1', {
'link_settings': {
'libraries': [ '-lXtst' ]
}
}],
],
},
{
'target_name': 'libresolv',