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) 2001
|
|
|
|
# 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 = widget_windows
|
2012-01-03 19:10:06 -08:00
|
|
|
EXPORT_LIBRARY = 1
|
|
|
|
IS_COMPONENT = 1
|
|
|
|
RESFILE = widget.res
|
|
|
|
MODULE_NAME = nsWidgetWinModule
|
2007-03-22 10:30:00 -07:00
|
|
|
LIBXUL_LIBRARY = 1
|
|
|
|
|
2011-03-03 08:20:02 -08:00
|
|
|
CPPSRCS = \
|
|
|
|
nsWindow.cpp \
|
|
|
|
nsWindowGfx.cpp \
|
|
|
|
nsWindowDbg.cpp \
|
|
|
|
nsAppShell.cpp \
|
|
|
|
nsToolkit.cpp \
|
|
|
|
nsFilePicker.cpp \
|
|
|
|
nsScreenWin.cpp \
|
|
|
|
nsScreenManagerWin.cpp \
|
|
|
|
nsLookAndFeel.cpp \
|
|
|
|
nsUXThemeData.cpp \
|
|
|
|
nsNativeThemeWin.cpp \
|
|
|
|
nsWinGesture.cpp \
|
|
|
|
nsIdleServiceWin.cpp \
|
|
|
|
nsSound.cpp \
|
|
|
|
nsIMM32Handler.cpp \
|
|
|
|
WindowHook.cpp \
|
|
|
|
WinTaskbar.cpp \
|
|
|
|
TaskbarPreview.cpp \
|
|
|
|
TaskbarTabPreview.cpp \
|
|
|
|
TaskbarWindowPreview.cpp \
|
|
|
|
TaskbarPreviewButton.cpp \
|
|
|
|
JumpListBuilder.cpp \
|
|
|
|
JumpListItem.cpp \
|
|
|
|
GfxInfo.cpp \
|
|
|
|
WidgetTraceEvent.cpp \
|
2011-06-24 07:20:03 -07:00
|
|
|
AudioSession.cpp \
|
2012-01-03 19:10:06 -08:00
|
|
|
nsWidgetFactory.cpp \
|
2012-01-04 02:21:44 -08:00
|
|
|
WinUtils.cpp \
|
2011-03-03 08:20:02 -08:00
|
|
|
$(NULL)
|
2008-02-21 12:49:24 -08:00
|
|
|
|
2010-11-21 16:29:47 -08:00
|
|
|
ifdef MOZ_CRASHREPORTER
|
|
|
|
CPPSRCS += LSPAnnotator.cpp
|
|
|
|
endif
|
|
|
|
|
2008-02-21 12:49:24 -08:00
|
|
|
ifdef NS_PRINTING
|
|
|
|
CPPSRCS += \
|
2007-03-22 10:30:00 -07:00
|
|
|
nsPrintOptionsWin.cpp \
|
|
|
|
nsPrintSettingsWin.cpp \
|
|
|
|
nsDeviceContextSpecWin.cpp \
|
|
|
|
$(NULL)
|
2008-02-21 12:49:24 -08:00
|
|
|
endif
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
CPPSRCS += \
|
2010-07-27 05:47:42 -07:00
|
|
|
KeyboardLayout.cpp \
|
2009-01-05 10:17:44 -08:00
|
|
|
IEnumFE.cpp \
|
|
|
|
nsDataObj.cpp \
|
|
|
|
nsDataObjCollection.cpp \
|
2007-03-22 10:30:00 -07:00
|
|
|
nsNativeDragTarget.cpp \
|
|
|
|
nsNativeDragSource.cpp \
|
|
|
|
nsDragService.cpp \
|
2009-01-05 10:17:44 -08:00
|
|
|
nsClipboard.cpp \
|
2007-03-22 10:30:00 -07:00
|
|
|
nsImageClipboard.cpp \
|
|
|
|
nsBidiKeyboard.cpp \
|
|
|
|
$(NULL)
|
2009-08-25 12:13:42 -07:00
|
|
|
ifdef NS_ENABLE_TSF
|
|
|
|
CPPSRCS += nsTextStore.cpp
|
|
|
|
endif
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
DEFINES += -D_IMPL_NS_WIDGET -DMOZ_UNICODE
|
|
|
|
|
2010-06-06 03:37:44 -07:00
|
|
|
ifdef MOZ_ENABLE_D3D9_LAYER
|
|
|
|
DEFINES += -DMOZ_ENABLE_D3D9_LAYER
|
|
|
|
endif
|
|
|
|
|
2010-09-30 15:53:47 -07:00
|
|
|
ifdef MOZ_ENABLE_D3D10_LAYER
|
|
|
|
DEFINES += -DMOZ_ENABLE_D3D10_LAYER
|
|
|
|
endif
|
|
|
|
|
2012-01-03 19:10:06 -08:00
|
|
|
SHARED_LIBRARY_LIBS = \
|
|
|
|
../xpwidgets/$(LIB_PREFIX)xpwidgets_s.$(LIB_SUFFIX) \
|
|
|
|
$(NULL)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2009-08-13 16:04:39 -07:00
|
|
|
EXPORTS = nsdefs.h WindowHook.h
|
2011-06-24 07:20:03 -07:00
|
|
|
EXPORTS_NAMESPACES = mozilla/widget
|
|
|
|
EXPORTS_mozilla/widget = AudioSession.h
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
LOCAL_INCLUDES = \
|
|
|
|
-I. \
|
|
|
|
-I$(srcdir)/../xpwidgets \
|
|
|
|
-I$(srcdir) \
|
2011-07-11 07:05:07 -07:00
|
|
|
-I$(topsrcdir)/layout/generic \
|
|
|
|
-I$(topsrcdir)/layout/xul/base/src \
|
2009-06-16 11:59:35 -07:00
|
|
|
-I$(topsrcdir)/toolkit/xre \
|
2011-02-11 17:56:11 -08:00
|
|
|
-I$(topsrcdir)/xpcom/base \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
FORCE_STATIC_LIB = 1
|
|
|
|
|
2009-11-06 14:33:12 -08:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
include $(topsrcdir)/ipc/chromium/chromium-config.mk
|
|
|
|
|
2009-12-09 21:15:56 -08:00
|
|
|
ifdef ENABLE_TESTS
|
|
|
|
TOOL_DIRS += tests
|
|
|
|
endif
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2009-05-18 11:15:05 -07:00
|
|
|
|
|
|
|
CXXFLAGS += $(MOZ_CAIRO_CFLAGS)
|