Bug 1256988 - Move MOZ_WIDGET_* defines to moz.configure. r=chmanchester

This commit is contained in:
Mike Hommey 2016-03-16 14:14:25 +09:00
Родитель 0a771514a8
Коммит 730bb6b0f9
2 изменённых файлов: 7 добавлений и 7 удалений

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

@ -3436,7 +3436,6 @@ gtk3)
MOZ_X11=1 MOZ_X11=1
USE_FC_FREETYPE=1 USE_FC_FREETYPE=1
AC_DEFINE_UNQUOTED(MOZ_WIDGET_GTK,3)
MOZ_PDF_PRINTING=1 MOZ_PDF_PRINTING=1
MOZ_INSTRUMENT_EVENT_LOOP=1 MOZ_INSTRUMENT_EVENT_LOOP=1
;; ;;
@ -3449,7 +3448,6 @@ gtk2)
MOZ_X11=1 MOZ_X11=1
USE_FC_FREETYPE=1 USE_FC_FREETYPE=1
AC_DEFINE_UNQUOTED(MOZ_WIDGET_GTK,2)
MOZ_PDF_PRINTING=1 MOZ_PDF_PRINTING=1
MOZ_INSTRUMENT_EVENT_LOOP=1 MOZ_INSTRUMENT_EVENT_LOOP=1
;; ;;
@ -3465,13 +3463,11 @@ qt)
fi fi
USE_FC_FREETYPE=1 USE_FC_FREETYPE=1
AC_DEFINE(MOZ_WIDGET_QT)
MOZ_PDF_PRINTING=1 MOZ_PDF_PRINTING=1
AC_DEFINE(QT_NO_KEYWORDS) AC_DEFINE(QT_NO_KEYWORDS)
;; ;;
cocoa) cocoa)
AC_DEFINE(MOZ_WIDGET_COCOA)
LDFLAGS="$LDFLAGS -framework Cocoa -lobjc" LDFLAGS="$LDFLAGS -framework Cocoa -lobjc"
# Use -Wl as a trick to avoid -framework and framework names from # Use -Wl as a trick to avoid -framework and framework names from
# being separated by AC_SUBST_LIST. # being separated by AC_SUBST_LIST.
@ -3485,7 +3481,6 @@ cocoa)
;; ;;
uikit) uikit)
AC_DEFINE(MOZ_WIDGET_UIKIT)
LDFLAGS="$LDFLAGS -framework UIKit -lobjc" LDFLAGS="$LDFLAGS -framework UIKit -lobjc"
TK_CFLAGS="-DNO_X11" TK_CFLAGS="-DNO_X11"
TK_LIBS='-Wl,-framework,Foundation -Wl,-framework,CoreFoundation -Wl,-framework,CoreGraphics -Wl,-framework,CoreText -Wl,-framework,AVFoundation -Wl,-framework,AudioToolbox -Wl,-framework,CoreMedia -Wl,-framework,CoreVideo -Wl,-framework,OpenGLES -Wl,-framework,QuartzCore' TK_LIBS='-Wl,-framework,Foundation -Wl,-framework,CoreFoundation -Wl,-framework,CoreGraphics -Wl,-framework,CoreText -Wl,-framework,AVFoundation -Wl,-framework,AudioToolbox -Wl,-framework,CoreMedia -Wl,-framework,CoreVideo -Wl,-framework,OpenGLES -Wl,-framework,QuartzCore'
@ -3496,13 +3491,11 @@ uikit)
;; ;;
android) android)
AC_DEFINE(MOZ_WIDGET_ANDROID)
MOZ_PDF_PRINTING=1 MOZ_PDF_PRINTING=1
MOZ_INSTRUMENT_EVENT_LOOP=1 MOZ_INSTRUMENT_EVENT_LOOP=1
;; ;;
gonk) gonk)
AC_DEFINE(MOZ_WIDGET_GONK)
AC_DEFINE(MOZ_TOUCH) AC_DEFINE(MOZ_TOUCH)
MOZ_PDF_PRINTING=1 MOZ_PDF_PRINTING=1
MOZ_TOUCH=1 MOZ_TOUCH=1

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

@ -61,4 +61,11 @@ def toolkit(toolkit):
set_config('MOZ_WIDGET_TOOLKIT', widget_toolkit) set_config('MOZ_WIDGET_TOOLKIT', widget_toolkit)
add_old_configure_assignment('MOZ_WIDGET_TOOLKIT', widget_toolkit) add_old_configure_assignment('MOZ_WIDGET_TOOLKIT', widget_toolkit)
if widget_toolkit == 'gtk2':
set_define('MOZ_WIDGET_GTK', '2')
elif widget_toolkit == 'gtk3':
set_define('MOZ_WIDGET_GTK', '3')
elif widget_toolkit != 'windows':
set_define('MOZ_WIDGET_%s' % widget_toolkit.upper(), '1')
return widget_toolkit return widget_toolkit