2007-03-22 10:30:00 -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):
|
|
|
|
#
|
|
|
|
# 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 = ../..
|
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 \
|
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 \
|
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)
|