Enabled building of embedding/browser/qt and widget/src/qt modules for cairo-qt build configuration

This commit is contained in:
romaxa@romaxa.research.nokia.com 2008-04-19 16:21:59 +03:00
Родитель 4443878b3b
Коммит 020a628dd9
7 изменённых файлов: 70 добавлений и 0 удалений

Просмотреть файл

@ -55,6 +55,10 @@ ifneq (,$(filter gtk2,$(MOZ_WIDGET_TOOLKIT)))
DIRS += system/unixproxy
endif
ifneq (,$(filter qt,$(MOZ_WIDGET_TOOLKIT)))
DIRS += system/unixproxy
endif
ifdef MOZ_CRASHREPORTER
DIRS += crashreporter
endif

Просмотреть файл

@ -77,6 +77,10 @@ ifeq (photon,$(MOZ_WIDGET_TOOLKIT))
CPPSRCS += nsPhRemoteService.cpp
endif
ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
CPPSRCS += nsQtRemoteService.cpp
endif
include $(topsrcdir)/config/rules.mk
EXTRA_DSO_LDOPTS += $(MOZ_COMPONENT_LIBS) $(TK_LIBS)

Просмотреть файл

@ -88,6 +88,13 @@ SHARED_LIBRARY_LIBS += \
$(DEPTH)/embedding/browser/gtk/src/$(LIB_PREFIX)gtkembedmoz.$(LIB_SUFFIX)
DEFINES += -DMOZ_ENABLE_GTK2
endif
ifneq (,$(MOZ_ENABLE_QT))
ifdef MOZ_ENABLE_LIBXUL
SHARED_LIBRARY_LIBS += \
$(DEPTH)/embedding/browser/qt/src/$(LIB_PREFIX)qgeckoembed.$(LIB_SUFFIX)
DEFINES += -DMOZ_ENABLE_QT
endif
endif
SHARED_LIBRARY_LIBS += \
$(DEPTH)/toolkit/xre/$(LIB_PREFIX)xulapp_s.$(LIB_SUFFIX) \
@ -218,6 +225,11 @@ EXTRA_DSO_LDOPTS += $(XLDFLAGS) $(XLIBS) $(MOZ_XFT_LIBS) $(MOZ_GTK2_LIBS) $(XT_L
EXTRA_DSO_LDOPTS += $(FT2_LIBS)
endif
ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
EXTRA_DSO_LDOPTS += $(XLDFLAGS) $(XLIBS) $(MOZ_XFT_LIBS) $(XT_LIBS) $(MOZ_QT_LIBS) -lgthread-2.0
EXTRA_DSO_LDOPTS += $(FT2_LIBS)
endif
ifdef MOZ_ENABLE_STARTUP_NOTIFICATION
EXTRA_DSO_LDOPTS += $(MOZ_STARTUP_NOTIFICATION_LIBS)
endif
@ -245,6 +257,10 @@ ifdef MOZ_JPROF
EXTRA_DSO_LDOPTS += -ljprof
endif
ifdef MOZ_ENABLE_QT
EXTRA_DSO_LDOPTS += $(MOZ_QT_LDFLAGS)
endif
ifdef MOZ_JAVAXPCOM
dlldeps-javaxpcom.cpp: $(topsrcdir)/extensions/java/xpcom/src/dlldeps-javaxpcom.cpp
$(INSTALL) $^ .

Просмотреть файл

@ -155,6 +155,14 @@ COMPONENT_LIBS += \
endif
endif
ifdef MOZ_XUL
ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
COMPONENT_LIBS += \
unixproxy \
$(NULL)
endif
endif
ifdef MOZ_PERF_METRICS
EXTRA_DSO_LIBS += mozutil_s
endif
@ -306,6 +314,9 @@ endif
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
COMPONENT_LIBS += widget_mac
endif
ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
COMPONENT_LIBS += widget_qt
endif
ifdef MOZ_ENABLE_PHOTON
COMPONENT_LIBS += widget_photon

Просмотреть файл

@ -93,6 +93,8 @@
# define WIDGET_MODULES MODULE(nsWidgetGtk2Module)
#elif defined(MOZ_WIDGET_PHOTON)
# define WIDGET_MODULES MODULE(nsWidgetPhModule)
#elif defined(MOZ_WIDGET_QT)
# define WIDGET_MODULES MODULE(nsWidgetQtModule)
#else
# error Unknown widget module.
#endif
@ -250,6 +252,9 @@
#ifdef MOZ_ENABLE_GTK2
#define UNIXPROXY_MODULE MODULE(nsUnixProxyModule)
#endif
#if defined(MOZ_WIDGET_QT)
#define UNIXPROXY_MODULE MODULE(nsUnixProxyModule)
#endif
#endif
#ifndef UNIXPROXY_MODULE
#define UNIXPROXY_MODULE

Просмотреть файл

@ -245,6 +245,11 @@ ifdef MOZ_XUL_APP
ifneq (,$(MOZ_ENABLE_GTK2))
tier_toolkit_dirs += embedding/browser/gtk
endif
ifdef MOZ_ENABLE_LIBXUL
ifneq (,$(MOZ_ENABLE_QT))
tier_toolkit_dirs += embedding/browser/qt
endif
endif
endif
endif
@ -254,10 +259,27 @@ tier_toolkit_dirs += toolkit/library
endif
endif
ifndef BUILD_STATIC_LIBS
ifdef MOZ_XUL_APP
ifndef MOZ_ENABLE_LIBXUL
#ifneq (,$(MOZ_ENABLE_GTK2))
#tier_toolkit_dirs += embedding/browser/gtk
#endif
ifneq (,$(MOZ_ENABLE_QT))
tier_toolkit_dirs += embedding/browser/qt
endif
endif
endif
endif
ifdef MOZ_ENABLE_LIBXUL
tier_toolkit_dirs += xpcom/stub
endif
ifneq (,$(MOZ_ENABLE_QT))
tier_toolkit_dirs += embedding/browser/qt/tests
endif
ifdef NS_TRACE_MALLOC
tier_toolkit_dirs += tools/trace-malloc
endif

Просмотреть файл

@ -51,6 +51,11 @@
#include "nsAppRunner.h"
#include "nsUpdateDriver.h"
#if defined(MOZ_WIDGET_QT)
#include <qwidget.h>
#include <qapplication.h>
#endif
#ifdef XP_MACOSX
#include "MacLaunchHelper.h"
#include "MacApplicationDelegate.h"
@ -2774,6 +2779,9 @@ XRE_main(int argc, char* argv[], const nsXREAppData* aAppData)
}
#endif
#if defined(MOZ_WIDGET_QT)
QApplication app(gArgc, gArgv);
#endif
#if defined(MOZ_WIDGET_GTK2)
g_thread_init(NULL);
// setup for private colormap. Ideally we'd like to do this