зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1256988 - Replace tests on MOZ_ENABLE_GTK with tests on MOZ_WIDGET_TOOLKIT containing gtk. r=chmanchester
This commit is contained in:
Родитель
45e34d9474
Коммит
7f131dbc35
|
@ -43,7 +43,7 @@ LOCAL_INCLUDES += [
|
|||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
if CONFIG['MOZ_ENABLE_GTK']:
|
||||
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
CFLAGS += CONFIG['TK_CFLAGS']
|
||||
CXXFLAGS += CONFIG['TK_CFLAGS']
|
||||
|
||||
|
|
|
@ -73,10 +73,11 @@ LOCAL_INCLUDES += [
|
|||
'/layout/xul/tree/',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_ENABLE_GTK']:
|
||||
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
LOCAL_INCLUDES += [
|
||||
'/accessible/atk',
|
||||
]
|
||||
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
|
||||
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
||||
LOCAL_INCLUDES += [
|
||||
'/accessible/windows/ia2',
|
||||
|
@ -93,7 +94,4 @@ else:
|
|||
|
||||
FINAL_LIBRARY = 'xul'
|
||||
|
||||
if CONFIG['MOZ_ENABLE_GTK']:
|
||||
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
|
||||
|
||||
include('/ipc/chromium/chromium-config.mozbuild')
|
||||
|
|
|
@ -36,7 +36,7 @@ LOCAL_INCLUDES += [
|
|||
'/layout/xul',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_ENABLE_GTK']:
|
||||
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
LOCAL_INCLUDES += [
|
||||
'/accessible/atk',
|
||||
]
|
||||
|
|
|
@ -24,7 +24,7 @@ LOCAL_INCLUDES += [
|
|||
'/layout/xul',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_ENABLE_GTK']:
|
||||
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
LOCAL_INCLUDES += [
|
||||
'/accessible/atk',
|
||||
]
|
||||
|
|
|
@ -27,7 +27,7 @@ if CONFIG['ACCESSIBILITY']:
|
|||
'../xpcom',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_ENABLE_GTK']:
|
||||
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
LOCAL_INCLUDES += [
|
||||
'/accessible/atk',
|
||||
]
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
toolkit = CONFIG['MOZ_WIDGET_TOOLKIT']
|
||||
|
||||
if CONFIG['MOZ_ENABLE_GTK']:
|
||||
if 'gtk' in toolkit:
|
||||
DIRS += ['atk']
|
||||
elif toolkit == 'windows':
|
||||
DIRS += ['windows']
|
||||
|
|
|
@ -33,7 +33,7 @@ LOCAL_INCLUDES += [
|
|||
'/accessible/generic',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_ENABLE_GTK']:
|
||||
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
LOCAL_INCLUDES += [
|
||||
'/accessible/atk',
|
||||
]
|
||||
|
|
|
@ -29,7 +29,7 @@ LOCAL_INCLUDES += [
|
|||
'/layout/xul/tree',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_ENABLE_GTK']:
|
||||
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
LOCAL_INCLUDES += [
|
||||
'/accessible/atk',
|
||||
]
|
||||
|
|
|
@ -36,5 +36,5 @@ LOCAL_INCLUDES += [
|
|||
'/xpcom/components'
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_ENABLE_GTK']:
|
||||
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
CXXFLAGS += CONFIG['TK_CFLAGS']
|
||||
|
|
|
@ -72,7 +72,7 @@ else:
|
|||
UNIFIED_SOURCES += [
|
||||
'nsPluginsDirUnix.cpp',
|
||||
]
|
||||
if CONFIG['MOZ_ENABLE_GTK']:
|
||||
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
# This file cannot be built in unified mode because of name clashes in X11 headers.
|
||||
SOURCES += [
|
||||
'nsPluginNativeWindowGtk.cpp',
|
||||
|
|
|
@ -3431,7 +3431,6 @@ windows)
|
|||
;;
|
||||
|
||||
gtk3)
|
||||
MOZ_ENABLE_GTK=1
|
||||
MOZ_ENABLE_XREMOTE=1
|
||||
MOZ_GL_DEFAULT_PROVIDER=GLX
|
||||
|
||||
|
@ -3446,7 +3445,6 @@ gtk3)
|
|||
;;
|
||||
|
||||
gtk2)
|
||||
MOZ_ENABLE_GTK=1
|
||||
MOZ_ENABLE_XREMOTE=1
|
||||
MOZ_GL_DEFAULT_PROVIDER=GLX
|
||||
|
||||
|
@ -3532,6 +3530,14 @@ if test "$MOZ_INSTRUMENT_EVENT_LOOP"; then
|
|||
AC_DEFINE(MOZ_INSTRUMENT_EVENT_LOOP)
|
||||
fi
|
||||
|
||||
dnl there are a lot of tests on MOZ_ENABLE_GTK below, that are more convenient
|
||||
dnl to keep that way than testing against MOZ_WIDGET_TOOLKIT
|
||||
case "$MOZ_WIDGET_TOOLKIT" in
|
||||
gtk*)
|
||||
MOZ_ENABLE_GTK=1
|
||||
;;
|
||||
esac
|
||||
|
||||
if test "$COMPILE_ENVIRONMENT"; then
|
||||
if test "$MOZ_WIDGET_TOOLKIT" = gtk3; then
|
||||
PKG_CHECK_MODULES(MOZ_GTK3, gtk+-3.0 >= $GTK3_VERSION gtk+-unix-print-3.0 glib-2.0 gobject-2.0 $GDK_PACKAGES)
|
||||
|
@ -3792,7 +3798,6 @@ AC_SUBST(GTK_CONFIG)
|
|||
AC_SUBST_LIST(TK_CFLAGS)
|
||||
AC_SUBST_LIST(TK_LIBS)
|
||||
|
||||
AC_SUBST(MOZ_ENABLE_GTK)
|
||||
AC_SUBST(MOZ_ENABLE_QT)
|
||||
AC_SUBST(MOZ_ENABLE_QTNETWORK)
|
||||
AC_SUBST(MOZ_ENABLE_QMSYSTEM2)
|
||||
|
|
|
@ -14,7 +14,7 @@ SOURCES += [
|
|||
'nsXRemoteService.cpp',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_ENABLE_GTK']:
|
||||
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
SOURCES += [
|
||||
'nsGTKRemoteService.cpp',
|
||||
]
|
||||
|
|
|
@ -49,7 +49,7 @@ elif CONFIG['OS_ARCH'] == 'SunOS':
|
|||
'breakpad_solaris_common_s',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_ENABLE_GTK']:
|
||||
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
UNIFIED_SOURCES += [
|
||||
'crashreporter_gtk_common.cpp',
|
||||
'crashreporter_linux.cpp',
|
||||
|
|
|
@ -67,7 +67,7 @@ else:
|
|||
'bz2',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_ENABLE_GTK']:
|
||||
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
have_progressui = 1
|
||||
srcs += [
|
||||
'progressui_gtk.cpp',
|
||||
|
|
|
@ -33,7 +33,7 @@ CXXFLAGS += CONFIG['MOZ_GIO_CFLAGS']
|
|||
CXXFLAGS += CONFIG['GLIB_CFLAGS']
|
||||
CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
|
||||
|
||||
if CONFIG['MOZ_ENABLE_GTK']:
|
||||
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
CXXFLAGS += CONFIG['TK_CFLAGS']
|
||||
|
||||
if CONFIG['GNU_CXX']:
|
||||
|
|
|
@ -155,7 +155,7 @@ DIRS += [
|
|||
'/toolkit/library',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_ENABLE_GTK']:
|
||||
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
DIRS += ['/toolkit/system/gnome']
|
||||
|
||||
DIRS += ['/addon-sdk']
|
||||
|
|
|
@ -52,7 +52,7 @@ elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'qt':
|
|||
'nsNativeAppSupportQt.cpp',
|
||||
'nsQAppInstance.cpp',
|
||||
]
|
||||
elif CONFIG['MOZ_ENABLE_GTK']:
|
||||
elif 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
UNIFIED_SOURCES += [
|
||||
'nsNativeAppSupportUnix.cpp',
|
||||
]
|
||||
|
|
|
@ -78,7 +78,7 @@ else:
|
|||
osdir + '/nsOSHelperAppService.cpp',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_ENABLE_GTK']:
|
||||
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
UNIFIED_SOURCES += [
|
||||
'unix/nsGNOMERegistry.cpp',
|
||||
'unix/nsMIMEInfoUnix.cpp',
|
||||
|
|
|
@ -49,7 +49,7 @@ TEST_DIRS += ['tests']
|
|||
# multiple implementations of widget can be built on the same
|
||||
# source tree.
|
||||
#
|
||||
if CONFIG['MOZ_ENABLE_GTK']:
|
||||
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
|
||||
DIRS += ['gtk']
|
||||
|
||||
if CONFIG['MOZ_X11']:
|
||||
|
|
Загрузка…
Ссылка в новой задаче