2009-02-27 17:47:40 -08:00
|
|
|
#
|
2012-05-21 04:12:37 -07:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-01-03 19:09:29 -08:00
|
|
|
DEPTH = ../..
|
2007-03-22 10:30:00 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
MODULE = widget
|
|
|
|
LIBRARY_NAME = widget_gtk2
|
|
|
|
EXPORT_LIBRARY = 1
|
|
|
|
IS_COMPONENT = 1
|
|
|
|
MODULE_NAME = nsWidgetGtk2Module
|
|
|
|
GRE_MODULE = 1
|
|
|
|
LIBXUL_LIBRARY = 1
|
|
|
|
|
|
|
|
NATIVE_THEME_SUPPORT = 1
|
|
|
|
|
|
|
|
|
2008-08-06 13:48:55 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
CSRCS = \
|
|
|
|
mozcontainer.c \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifdef ACCESSIBILITY
|
|
|
|
CSRCS += maiRedundantObjectFactory.c
|
|
|
|
endif
|
|
|
|
|
2011-03-03 08:20:02 -08:00
|
|
|
CPPSRCS = \
|
|
|
|
nsWindow.cpp \
|
|
|
|
nsAppShell.cpp \
|
|
|
|
nsWidgetFactory.cpp \
|
|
|
|
nsToolkit.cpp \
|
|
|
|
nsBidiKeyboard.cpp \
|
|
|
|
nsLookAndFeel.cpp \
|
|
|
|
nsGtkKeyUtils.cpp \
|
|
|
|
nsFilePicker.cpp \
|
|
|
|
nsSound.cpp \
|
|
|
|
nsNativeKeyBindings.cpp \
|
|
|
|
nsScreenGtk.cpp \
|
|
|
|
nsScreenManagerGtk.cpp \
|
|
|
|
nsImageToPixbuf.cpp \
|
|
|
|
nsGtkIMModule.cpp \
|
|
|
|
WidgetTraceEvent.cpp \
|
|
|
|
$(NULL)
|
2008-07-02 09:35:31 -07:00
|
|
|
|
2008-08-06 13:48:55 -07:00
|
|
|
ifdef MOZ_X11
|
2008-07-25 14:34:30 -07:00
|
|
|
CPPSRCS += nsIdleServiceGTK.cpp
|
|
|
|
endif
|
2008-07-02 09:35:31 -07:00
|
|
|
|
|
|
|
ifdef NS_PRINTING
|
|
|
|
CPPSRCS += \
|
|
|
|
nsDeviceContextSpecG.cpp \
|
|
|
|
nsPrintOptionsGTK.cpp \
|
2008-01-20 19:47:25 -08:00
|
|
|
nsPrintDialogGTK.cpp \
|
|
|
|
nsPrintSettingsGTK.cpp \
|
2010-06-28 10:36:17 -07:00
|
|
|
nsCUPSShim.cpp \
|
|
|
|
nsPaperPS.cpp \
|
|
|
|
nsPSPrinters.cpp \
|
2007-08-31 12:08:09 -07:00
|
|
|
$(NULL)
|
2008-07-02 09:35:31 -07:00
|
|
|
endif
|
2007-08-25 13:01:03 -07:00
|
|
|
|
2008-08-06 13:48:55 -07:00
|
|
|
ifdef MOZ_X11
|
|
|
|
CPPSRCS += nsClipboard.cpp \
|
|
|
|
nsDragService.cpp \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
# build our subdirs, too
|
|
|
|
|
|
|
|
SHARED_LIBRARY_LIBS = ../xpwidgets/libxpwidgets_s.a
|
|
|
|
|
|
|
|
EXPORTS = \
|
|
|
|
nsGTKToolkit.h \
|
|
|
|
nsIImageToPixbuf.h \
|
|
|
|
mozcontainer.h \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifdef NATIVE_THEME_SUPPORT
|
|
|
|
CSRCS += gtk2drawing.c
|
|
|
|
CPPSRCS += nsNativeThemeGTK.cpp
|
|
|
|
DEFINES += -DNATIVE_THEME_SUPPORT
|
|
|
|
endif
|
|
|
|
|
2010-09-23 18:00:06 -07:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
2007-03-22 10:30:00 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
CFLAGS += $(MOZ_GTK2_CFLAGS) $(MOZ_STARTUP_NOTIFICATION_CFLAGS)
|
2012-05-25 23:44:00 -07:00
|
|
|
CXXFLAGS += $(MOZ_CAIRO_CFLAGS) $(MOZ_PIXMAN_CFLAGS) \
|
|
|
|
$(MOZ_GTK2_CFLAGS) $(MOZ_STARTUP_NOTIFICATION_CFLAGS)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2010-02-09 11:02:11 -08:00
|
|
|
ifdef MOZ_PLATFORM_MAEMO
|
2009-02-27 17:47:40 -08:00
|
|
|
ifdef MOZ_ENABLE_GCONF
|
|
|
|
CXXFLAGS += $(MOZ_GCONF_CFLAGS)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2012-01-10 14:37:40 -08:00
|
|
|
DEFINES += -DCAIRO_GFX -DMOZ_APP_NAME='"$(MOZ_APP_NAME)"'
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
INCLUDES += \
|
|
|
|
-I$(srcdir)/../xpwidgets \
|
2010-06-25 14:51:17 -07:00
|
|
|
-I$(srcdir)/../shared \
|
2011-07-11 07:05:07 -07:00
|
|
|
-I$(topsrcdir)/layout/generic \
|
|
|
|
-I$(topsrcdir)/layout/xul/base/src \
|
2007-03-22 10:30:00 -07:00
|
|
|
-I$(topsrcdir)/other-licenses/atk-1.0 \
|
|
|
|
$(NULL)
|
2010-08-26 11:11:54 -07:00
|
|
|
ifdef MOZ_X11
|
|
|
|
INCLUDES += -I$(srcdir)/../shared/x11
|
2010-08-27 14:20:44 -07:00
|
|
|
endif
|