#
# 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/.
DEPTH = @DEPTH@
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
MODULE = widget
XPIDL_MODULE = widget
GRE_MODULE = 1
include $(DEPTH)/config/autoconf.mk
DIRS = shared xpwidgets
ifneq (,$(filter os2 cocoa qt android gonk,$(MOZ_WIDGET_TOOLKIT)))
DIRS += $(MOZ_WIDGET_TOOLKIT)
endif
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
DIRS += windows
ifdef ENABLE_TESTS
TOOL_DIRS += tests
# Don't build the DSO under the 'build' directory as windows does.
# The DSOs get built in the toolkit dir itself. Do this so that
# multiple implementations of widget can be built on the same
# source tree.
ifdef MOZ_ENABLE_GTK2
DIRS += gtk2
ifdef MOZ_X11
DIRS += gtkxtbin
EXPORTS_NAMESPACES = IPC mozilla
EXPORTS_IPC = \
nsGUIEventIPC.h \
$(NULL)
EXPORTS_mozilla = \
LookAndFeel.h \
WidgetUtils.h \
ifdef MOZ_INSTRUMENT_EVENT_LOOP
EXPORTS_mozilla += \
WidgetTraceEvent.h \
EXPORTS = \
InputData.h \
nsIWidget.h \
nsGUIEvent.h \
nsEvent.h \
nsNativeWidget.h \
nsWidgetInitData.h \
nsWidgetsCID.h \
nsIPluginWidget.h \
nsINativeKeyBindings.h \
nsIDeviceContextSpec.h \
nsIRollupListener.h \
nsIWidgetListener.h \
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
EXPORTS += \
nsINativeMenuService.h \
nsIPrintDialogService.h \
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
EXPORTS += nsIDragSessionOS2.h
ifneq (,$(filter android gonk,$(MOZ_WIDGET_TOOLKIT)))
ifneq (,$(filter qt gtk2,$(MOZ_WIDGET_TOOLKIT)))
XPIDLSRCS = \
nsIAppShell.idl \
nsIFilePicker.idl \
nsISound.idl \
nsITransferable.idl \
nsIClipboardDragDropHooks.idl \
nsIClipboardDragDropHookList.idl \
nsIDragSession.idl \
nsIDragService.idl \
nsIFormatConverter.idl \
nsIClipboard.idl \
nsIClipboardHelper.idl \
nsIClipboardOwner.idl \
nsIBaseWindow.idl \
nsIBidiKeyboard.idl \
nsIScreen.idl \
nsIScreenManager.idl \
nsIPrintSession.idl \
nsIPrintSettings.idl \
nsIPrintSettingsService.idl \
nsIPrintOptions.idl \
nsIIdleService.idl \
nsIIdleServiceInternal.idl \
nsIGfxInfo.idl \
nsIGfxInfoDebug.idl \
nsIIMEPicker.idl \
XPIDLSRCS += nsIPrintSettingsWin.idl \
nsIWinTaskbar.idl \
nsITaskbarPreview.idl \
nsITaskbarTabPreview.idl \
nsITaskbarWindowPreview.idl \
nsITaskbarPreviewController.idl \
nsITaskbarPreviewButton.idl \
nsITaskbarProgress.idl \
nsITaskbarOverlayIconController.idl \
nsIJumpListBuilder.idl \
nsIJumpListItem.idl \
XPIDLSRCS += nsIMacDockSupport.idl \
nsIStandaloneNativeMenu.idl \
nsIMacWebAppUtils.idl \
XPIDLSRCS += nsIRwsService.idl
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
include $(topsrcdir)/config/rules.mk