2008-04-19 08:02:52 -07: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.
|
|
|
|
#
|
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Netscape Communications Corporation.
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 1998
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
|
|
|
# John C. Griggs <johng@corel.com>
|
|
|
|
#
|
|
|
|
# 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 *****
|
|
|
|
|
2012-01-03 19:09:29 -08:00
|
|
|
DEPTH = ../..
|
2008-04-19 08:02:52 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
MODULE = widget
|
|
|
|
LIBRARY_NAME = widget_qt
|
|
|
|
EXPORT_LIBRARY = 1
|
|
|
|
IS_COMPONENT = 1
|
|
|
|
MODULE_NAME = nsWidgetQtModule
|
|
|
|
GRE_MODULE = 1
|
|
|
|
LIBXUL_LIBRARY = 1
|
|
|
|
|
|
|
|
|
2008-04-19 08:43:36 -07:00
|
|
|
MOCSRCS = \
|
2011-10-17 17:52:56 -07:00
|
|
|
moc_moziqwidget.cpp \
|
2008-04-19 08:43:36 -07:00
|
|
|
moc_mozqwidget.cpp \
|
|
|
|
moc_nsAppShell.cpp \
|
|
|
|
$(NULL)
|
2008-04-19 08:10:45 -07:00
|
|
|
|
2011-09-14 06:16:28 -07:00
|
|
|
ifdef MOZ_ENABLE_CONTENTMANAGER
|
|
|
|
MOCSRCS += moc_nsMFilePicker.cpp \
|
|
|
|
$(NULL)
|
|
|
|
CPPSRCS += nsMFilePicker.cpp \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
CPPSRCS += \
|
2008-04-19 08:33:54 -07:00
|
|
|
$(MOCSRCS) \
|
|
|
|
nsAppShell.cpp \
|
2008-04-19 08:02:52 -07:00
|
|
|
nsWidgetFactory.cpp \
|
2008-04-19 08:33:54 -07:00
|
|
|
nsWindow.cpp \
|
|
|
|
nsLookAndFeel.cpp \
|
|
|
|
nsScreenQt.cpp \
|
|
|
|
nsScreenManagerQt.cpp \
|
2008-04-19 08:37:34 -07:00
|
|
|
nsQtKeyUtils.cpp \
|
2008-04-19 08:40:33 -07:00
|
|
|
nsClipboard.cpp \
|
2008-04-19 08:40:58 -07:00
|
|
|
nsBidiKeyboard.cpp \
|
2008-04-19 08:41:14 -07:00
|
|
|
nsIdleServiceQt.cpp \
|
2008-04-19 08:41:02 -07:00
|
|
|
nsDragService.cpp \
|
2008-04-19 08:43:48 -07:00
|
|
|
nsNativeThemeQt.cpp \
|
2008-04-19 08:33:54 -07:00
|
|
|
mozqwidget.cpp \
|
2010-10-08 23:08:42 -07:00
|
|
|
mozSwipeGesture.cpp \
|
2008-04-19 08:43:36 -07:00
|
|
|
nsSound.cpp \
|
2008-04-19 08:44:21 -07:00
|
|
|
nsFilePicker.cpp \
|
2010-10-07 12:19:33 -07:00
|
|
|
nsPrintOptionsQt.cpp \
|
|
|
|
nsPrintSettingsQt.cpp \
|
|
|
|
nsPrintDialogQt.cpp \
|
|
|
|
nsDeviceContextSpecQt.cpp \
|
2008-04-19 08:02:52 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2011-08-29 09:26:24 -07:00
|
|
|
EXPORTS = \
|
|
|
|
nsQtKeyUtils.h \
|
|
|
|
$(NULL)
|
|
|
|
|
2011-03-15 21:41:53 -07:00
|
|
|
ifdef MOZ_ENABLE_QTMOBILITY
|
|
|
|
MOCSRCS += moc_mozqorientationsensorfilter.cpp
|
|
|
|
CPPSRCS += mozqorientationsensorfilter.cpp
|
|
|
|
endif
|
|
|
|
|
2008-04-19 08:02:52 -07:00
|
|
|
SHARED_LIBRARY_LIBS = ../xpwidgets/libxpwidgets_s.a
|
|
|
|
|
|
|
|
# If not primary toolkit, install in secondary path
|
|
|
|
ifneq (qt,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
INACTIVE_COMPONENT = 1
|
|
|
|
endif
|
|
|
|
|
2011-10-28 05:13:57 -07:00
|
|
|
DIRS += faststartupqt
|
|
|
|
|
2010-10-26 21:56:31 -07:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
2008-04-19 08:02:52 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2011-09-14 06:16:28 -07:00
|
|
|
CXXFLAGS += $(MOZ_QT_CFLAGS) $(GLIB_CFLAGS) $(MOZ_CAIRO_CFLAGS) $(MOZ_PLATFORM_MAEMO_CFLAGS)
|
|
|
|
CFLAGS += $(MOZ_QT_CFLAGS) $(GLIB_CFLAGS) $(MOZ_CAIRO_CFLAGS) $(MOZ_PLATFORM_MAEMO_CFLAGS)
|
2008-04-19 08:02:52 -07:00
|
|
|
|
2008-04-19 08:28:43 -07:00
|
|
|
DEFINES += -D_IMPL_NS_WIDGET
|
|
|
|
#DEFINES += -DDEBUG_WIDGETS
|
2008-04-19 08:02:52 -07:00
|
|
|
|
|
|
|
ifeq ($(OS_ARCH), Linux)
|
|
|
|
DEFINES += -D_BSD_SOURCE
|
|
|
|
endif
|
|
|
|
ifeq ($(OS_ARCH), SunOS)
|
|
|
|
ifndef GNU_CC
|
|
|
|
# When using Sun's WorkShop compiler, including
|
|
|
|
# /wherever/workshop-5.0/SC5.0/include/CC/std/time.h
|
|
|
|
# causes most of these compiles to fail with:
|
|
|
|
# line 29: Error: Multiple declaration for std::tm.
|
|
|
|
# So, this gets around the problem.
|
|
|
|
DEFINES += -D_TIME_H=1
|
|
|
|
endif
|
|
|
|
endif
|
2008-04-19 08:05:49 -07:00
|
|
|
|
|
|
|
LOCAL_INCLUDES += \
|
2012-01-03 19:09:29 -08:00
|
|
|
-I$(topsrcdir)/widget/xpwidgets \
|
|
|
|
-I$(topsrcdir)/widget/qt/faststartupqt \
|
2008-04-19 08:02:52 -07:00
|
|
|
-I$(srcdir) \
|
|
|
|
$(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
|
2011-08-24 09:15:58 -07:00
|
|
|
INCLUDES += -I$(srcdir)/../shared
|