2009-02-28 04:47:40 +03:00
|
|
|
#
|
2012-05-21 15:12:37 +04: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/.
|
2001-07-26 02:05:10 +04:00
|
|
|
|
2012-08-04 22:26:44 +04:00
|
|
|
DEPTH = @DEPTH@
|
2001-07-26 02:05:10 +04: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
|
2002-12-28 04:15:07 +03:00
|
|
|
GRE_MODULE = 1
|
2004-12-09 22:28:35 +03:00
|
|
|
LIBXUL_LIBRARY = 1
|
2002-12-28 04:15:07 +03:00
|
|
|
|
2005-08-23 06:11:54 +04:00
|
|
|
NATIVE_THEME_SUPPORT = 1
|
|
|
|
|
2001-07-26 02:05:10 +04:00
|
|
|
|
2008-08-07 00:48:55 +04:00
|
|
|
|
2001-12-07 08:23:56 +03:00
|
|
|
CSRCS = \
|
|
|
|
mozcontainer.c \
|
|
|
|
$(NULL)
|
2001-07-26 02:05:10 +04:00
|
|
|
|
2006-07-13 09:49:45 +04:00
|
|
|
ifdef ACCESSIBILITY
|
|
|
|
CSRCS += maiRedundantObjectFactory.c
|
|
|
|
endif
|
|
|
|
|
2011-03-03 19:20:02 +03: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 20:35:31 +04:00
|
|
|
|
2008-08-07 00:48:55 +04:00
|
|
|
ifdef MOZ_X11
|
2008-07-26 01:34:30 +04:00
|
|
|
CPPSRCS += nsIdleServiceGTK.cpp
|
|
|
|
endif
|
2008-07-02 20:35:31 +04:00
|
|
|
|
|
|
|
ifdef NS_PRINTING
|
|
|
|
CPPSRCS += \
|
|
|
|
nsDeviceContextSpecG.cpp \
|
|
|
|
nsPrintOptionsGTK.cpp \
|
2008-01-21 06:47:25 +03:00
|
|
|
nsPrintDialogGTK.cpp \
|
|
|
|
nsPrintSettingsGTK.cpp \
|
2010-06-28 21:36:17 +04:00
|
|
|
nsCUPSShim.cpp \
|
|
|
|
nsPaperPS.cpp \
|
|
|
|
nsPSPrinters.cpp \
|
2007-08-31 23:08:09 +04:00
|
|
|
$(NULL)
|
2008-07-02 20:35:31 +04:00
|
|
|
endif
|
2007-08-26 00:01:03 +04:00
|
|
|
|
2008-08-07 00:48:55 +04:00
|
|
|
ifdef MOZ_X11
|
|
|
|
CPPSRCS += nsClipboard.cpp \
|
|
|
|
nsDragService.cpp \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2002-10-30 04:04:59 +03:00
|
|
|
# build our subdirs, too
|
|
|
|
|
2006-03-02 17:31:25 +03:00
|
|
|
SHARED_LIBRARY_LIBS = ../xpwidgets/libxpwidgets_s.a
|
2001-07-26 02:05:10 +04:00
|
|
|
|
2001-12-07 08:23:56 +03:00
|
|
|
EXPORTS = \
|
2007-02-09 04:33:26 +03:00
|
|
|
nsGTKToolkit.h \
|
2006-06-16 22:38:39 +04:00
|
|
|
nsIImageToPixbuf.h \
|
2001-12-07 08:23:56 +03:00
|
|
|
mozcontainer.h \
|
|
|
|
$(NULL)
|
|
|
|
|
2005-08-23 06:11:54 +04:00
|
|
|
ifdef NATIVE_THEME_SUPPORT
|
|
|
|
CSRCS += gtk2drawing.c
|
|
|
|
CPPSRCS += nsNativeThemeGTK.cpp
|
|
|
|
DEFINES += -DNATIVE_THEME_SUPPORT
|
|
|
|
endif
|
|
|
|
|
2010-09-24 05:00:06 +04:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
2001-07-26 02:05:10 +04:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2007-02-09 04:33:26 +03:00
|
|
|
CFLAGS += $(MOZ_GTK2_CFLAGS) $(MOZ_STARTUP_NOTIFICATION_CFLAGS)
|
2012-05-26 10:44:00 +04:00
|
|
|
CXXFLAGS += $(MOZ_CAIRO_CFLAGS) $(MOZ_PIXMAN_CFLAGS) \
|
|
|
|
$(MOZ_GTK2_CFLAGS) $(MOZ_STARTUP_NOTIFICATION_CFLAGS)
|
2001-10-14 23:02:05 +04:00
|
|
|
|
2010-02-09 22:02:11 +03:00
|
|
|
ifdef MOZ_PLATFORM_MAEMO
|
2009-02-28 04:47:40 +03:00
|
|
|
ifdef MOZ_ENABLE_GCONF
|
|
|
|
CXXFLAGS += $(MOZ_GCONF_CFLAGS)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2012-01-11 02:37:40 +04:00
|
|
|
DEFINES += -DCAIRO_GFX -DMOZ_APP_NAME='"$(MOZ_APP_NAME)"'
|
2005-08-23 06:11:54 +04:00
|
|
|
|
2001-07-26 02:05:10 +04:00
|
|
|
INCLUDES += \
|
|
|
|
-I$(srcdir)/../xpwidgets \
|
2010-06-26 01:51:17 +04:00
|
|
|
-I$(srcdir)/../shared \
|
2011-07-11 18:05:07 +04:00
|
|
|
-I$(topsrcdir)/layout/generic \
|
|
|
|
-I$(topsrcdir)/layout/xul/base/src \
|
2006-08-24 07:22:00 +04:00
|
|
|
-I$(topsrcdir)/other-licenses/atk-1.0 \
|
2001-07-26 02:05:10 +04:00
|
|
|
$(NULL)
|
2010-08-26 22:11:54 +04:00
|
|
|
ifdef MOZ_X11
|
|
|
|
INCLUDES += -I$(srcdir)/../shared/x11
|
2010-08-28 01:20:44 +04:00
|
|
|
endif
|