2007-03-22 10:30:00 -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/.
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2007-03-22 10:30:00 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
MODULE = widget
|
|
|
|
LIBRARY_NAME = xpwidgets_s
|
|
|
|
LIBXUL_LIBRARY = 1
|
|
|
|
|
2011-11-02 13:53:59 -07:00
|
|
|
EXPORTS = \
|
|
|
|
GfxInfoCollector.h \
|
|
|
|
$(NULL)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2009-06-30 09:02:37 -07:00
|
|
|
DEFINES += \
|
|
|
|
-D_IMPL_NS_WIDGET \
|
|
|
|
-DNO_NSPR_10_SUPPORT=1 \
|
|
|
|
$(NULL)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
CPPSRCS = \
|
|
|
|
nsBaseAppShell.cpp \
|
2012-01-04 18:12:48 -08:00
|
|
|
nsBaseScreen.cpp \
|
2007-03-22 10:30:00 -07:00
|
|
|
nsBaseWidget.cpp \
|
|
|
|
nsTransferable.cpp \
|
|
|
|
nsHTMLFormatConverter.cpp \
|
|
|
|
nsBaseDragService.cpp \
|
|
|
|
nsPrimitiveHelpers.cpp \
|
|
|
|
nsXPLookAndFeel.cpp \
|
|
|
|
nsClipboardHelper.cpp \
|
|
|
|
nsPrintOptionsImpl.cpp \
|
|
|
|
nsPrintSettingsImpl.cpp \
|
|
|
|
nsPrintSession.cpp \
|
|
|
|
nsIdleService.cpp \
|
2009-01-30 00:13:17 -08:00
|
|
|
nsClipboardPrivacyHandler.cpp \
|
2010-12-16 12:49:54 -08:00
|
|
|
GfxInfoWebGL.cpp \
|
2011-01-19 17:21:07 -08:00
|
|
|
GfxDriverInfo.cpp \
|
2011-01-19 17:30:12 -08:00
|
|
|
GfxInfoBase.cpp \
|
2010-08-20 16:24:40 -07:00
|
|
|
PuppetWidget.cpp \
|
2010-10-20 08:19:24 -07:00
|
|
|
nsFilePickerProxy.cpp \
|
2012-07-24 12:01:09 -07:00
|
|
|
WidgetUtils.cpp \
|
2010-08-20 16:24:40 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2011-05-03 13:07:17 -07:00
|
|
|
ifdef MOZ_X11
|
|
|
|
CPPSRCS += \
|
|
|
|
GfxInfoX11.cpp
|
|
|
|
endif
|
|
|
|
|
Bug 627277 - Remove (broken) BeOS support. r=biesi,dwitte,gavin,joe,jorendorff,josh,khuey,mfinkle,neil,Pike,roc,shaver,smontagu,taras
2011-02-19 11:10:24 -08:00
|
|
|
ifneq (,$(filter os2 cocoa windows,$(MOZ_WIDGET_TOOLKIT)))
|
2007-03-22 10:30:00 -07:00
|
|
|
CPPSRCS += nsBaseClipboard.cpp
|
|
|
|
endif
|
|
|
|
|
2011-11-10 16:17:46 -08:00
|
|
|
ifneq (,$(filter qt gtk2 os2 cocoa windows android gonk,$(MOZ_WIDGET_TOOLKIT)))
|
2007-03-22 10:30:00 -07:00
|
|
|
CPPSRCS += nsBaseFilePicker.cpp
|
|
|
|
endif
|
|
|
|
|
2008-04-19 06:26:02 -07:00
|
|
|
ifneq (,$(filter qt gtk2 windows cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
2007-03-22 10:30:00 -07:00
|
|
|
CPPSRCS += nsNativeTheme.cpp
|
|
|
|
endif
|
|
|
|
|
2010-06-25 14:51:17 -07:00
|
|
|
SHARED_LIBRARY_LIBS = ../shared/$(LIB_PREFIX)widget_shared.$(LIB_SUFFIX)
|
2010-08-26 11:11:54 -07:00
|
|
|
ifdef MOZ_X11
|
|
|
|
SHARED_LIBRARY_LIBS += ../shared/x11/$(LIB_PREFIX)widget_shared_x11.$(LIB_SUFFIX)
|
2010-08-26 14:09:43 -07:00
|
|
|
endif
|
2010-06-25 14:51:17 -07:00
|
|
|
|
2011-08-09 12:38:27 -07:00
|
|
|
ifdef MOZ_ENABLE_D3D10_LAYER
|
|
|
|
DEFINES += -DMOZ_ENABLE_D3D10_LAYER
|
|
|
|
endif
|
|
|
|
|
2009-06-30 09:02:37 -07:00
|
|
|
LOCAL_INCLUDES += \
|
2007-03-22 10:30:00 -07:00
|
|
|
-I$(srcdir)/../$(MOZ_WIDGET_TOOLKIT) \
|
2010-06-25 14:51:17 -07:00
|
|
|
-I$(srcdir)/../shared \
|
2011-05-06 03:00:30 -07:00
|
|
|
-I$(topsrcdir)/layout/forms \
|
|
|
|
-I$(topsrcdir)/layout/generic \
|
|
|
|
-I$(topsrcdir)/layout/xul/base/src \
|
2012-08-15 11:52:35 -07:00
|
|
|
-I$(topsrcdir)/view/src \
|
2007-03-22 10:30:00 -07:00
|
|
|
-I$(srcdir) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
# we don't want the shared lib, but we want to force the creation of a static lib.
|
|
|
|
FORCE_STATIC_LIB = 1
|
|
|
|
|
2009-06-30 09:02:37 -07:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
2007-03-22 10:30:00 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
CXXFLAGS += $(TK_CFLAGS)
|