Skip to content

Commit

Permalink
Bug 1256988 - Replace tests on MOZ_ENABLE_GTK with tests on MOZ_WIDGE…
Browse files Browse the repository at this point in the history
…T_TOOLKIT containing gtk. r=chmanchester
  • Loading branch information
glandium committed Mar 16, 2016
1 parent 45e34d9 commit 7f131db
Show file tree
Hide file tree
Showing 19 changed files with 27 additions and 24 deletions.
2 changes: 1 addition & 1 deletion accessible/atk/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -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']

Expand Down
6 changes: 2 additions & 4 deletions accessible/base/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -93,7 +94,4 @@ else:

FINAL_LIBRARY = 'xul'

if CONFIG['MOZ_ENABLE_GTK']:
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']

include('/ipc/chromium/chromium-config.mozbuild')
2 changes: 1 addition & 1 deletion accessible/generic/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ LOCAL_INCLUDES += [
'/layout/xul',
]

if CONFIG['MOZ_ENABLE_GTK']:
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
LOCAL_INCLUDES += [
'/accessible/atk',
]
Expand Down
2 changes: 1 addition & 1 deletion accessible/html/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ LOCAL_INCLUDES += [
'/layout/xul',
]

if CONFIG['MOZ_ENABLE_GTK']:
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
LOCAL_INCLUDES += [
'/accessible/atk',
]
Expand Down
2 changes: 1 addition & 1 deletion accessible/ipc/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if CONFIG['ACCESSIBILITY']:
'../xpcom',
]

if CONFIG['MOZ_ENABLE_GTK']:
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
LOCAL_INCLUDES += [
'/accessible/atk',
]
Expand Down
2 changes: 1 addition & 1 deletion accessible/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
2 changes: 1 addition & 1 deletion accessible/xpcom/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ LOCAL_INCLUDES += [
'/accessible/generic',
]

if CONFIG['MOZ_ENABLE_GTK']:
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
LOCAL_INCLUDES += [
'/accessible/atk',
]
Expand Down
2 changes: 1 addition & 1 deletion accessible/xul/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]
Expand Down
2 changes: 1 addition & 1 deletion chrome/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ LOCAL_INCLUDES += [
'/xpcom/components'
]

if CONFIG['MOZ_ENABLE_GTK']:
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
CXXFLAGS += CONFIG['TK_CFLAGS']
2 changes: 1 addition & 1 deletion dom/plugins/base/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
11 changes: 8 additions & 3 deletions old-configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -3431,7 +3431,6 @@ windows)
;;

gtk3)
MOZ_ENABLE_GTK=1
MOZ_ENABLE_XREMOTE=1
MOZ_GL_DEFAULT_PROVIDER=GLX

Expand All @@ -3446,7 +3445,6 @@ gtk3)
;;

gtk2)
MOZ_ENABLE_GTK=1
MOZ_ENABLE_XREMOTE=1
MOZ_GL_DEFAULT_PROVIDER=GLX

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion toolkit/components/remote/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ SOURCES += [
'nsXRemoteService.cpp',
]

if CONFIG['MOZ_ENABLE_GTK']:
if 'gtk' in CONFIG['MOZ_WIDGET_TOOLKIT']:
SOURCES += [
'nsGTKRemoteService.cpp',
]
Expand Down
2 changes: 1 addition & 1 deletion toolkit/crashreporter/client/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion toolkit/mozapps/update/updater/updater-common.build
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion toolkit/system/gnome/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -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']:
Expand Down
2 changes: 1 addition & 1 deletion toolkit/toolkit.mozbuild
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
2 changes: 1 addition & 1 deletion toolkit/xre/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]
Expand Down
2 changes: 1 addition & 1 deletion uriloader/exthandler/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion widget/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -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']:
Expand Down

0 comments on commit 7f131db

Please sign in to comment.