2008-04-19 08:02:52 -07: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/.
|
2008-04-19 08:02:52 -07:00
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2008-04-19 08:02:52 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
LIBRARY_NAME = widget_qt
|
|
|
|
EXPORT_LIBRARY = 1
|
|
|
|
IS_COMPONENT = 1
|
|
|
|
MODULE_NAME = nsWidgetQtModule
|
|
|
|
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 \
|
2012-08-16 08:31:47 -07:00
|
|
|
mozqglwidgetwrapper.cpp \
|
2008-04-19 08:02:52 -07:00
|
|
|
$(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
|
|
|
|
|
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
|
|
|
|
|
2012-05-25 23:44:00 -07:00
|
|
|
CXXFLAGS += $(MOZ_QT_CFLAGS) $(GLIB_CFLAGS) $(MOZ_CAIRO_CFLAGS) \
|
|
|
|
$(MOZ_PIXMAN_CFLAGS) $(MOZ_PLATFORM_MAEMO_CFLAGS)
|
|
|
|
CFLAGS += $(MOZ_QT_CFLAGS) $(GLIB_CFLAGS) $(MOZ_CAIRO_CFLAGS) \
|
|
|
|
$(MOZ_PIXMAN_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
|