2009-02-28 04:47:40 +03:00
|
|
|
#
|
2004-04-19 02:01:16 +04:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
#
|
|
|
|
# The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
# http://www.mozilla.org/MPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
# for the specific language governing rights and limitations under the
|
|
|
|
# License.
|
|
|
|
#
|
2001-07-26 02:05:10 +04:00
|
|
|
# The Original Code is mozilla.org code.
|
2004-04-19 02:01:16 +04:00
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is
|
2007-10-06 16:08:39 +04:00
|
|
|
# Christopher Blizzard.
|
2004-04-19 02:01:16 +04:00
|
|
|
# Portions created by the Initial Developer are Copyright (C) 2001
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
2001-07-26 02:05:10 +04:00
|
|
|
# Contributor(s):
|
2004-04-19 02:01:16 +04:00
|
|
|
#
|
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
|
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
# use your version of this file under the terms of the MPL, indicate your
|
|
|
|
# decision by deleting the provisions above and replace them with the notice
|
|
|
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
# the provisions above, a recipient may use your version of this file under
|
|
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
#
|
|
|
|
# ***** END LICENSE BLOCK *****
|
2001-07-26 02:05:10 +04:00
|
|
|
|
2012-01-04 07:09:29 +04:00
|
|
|
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)
|
2009-12-14 00:01:33 +03:00
|
|
|
CXXFLAGS += $(MOZ_CAIRO_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
|