michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: DIRS += ['shared', 'xpwidgets'] michael@0: michael@0: toolkit = CONFIG['MOZ_WIDGET_TOOLKIT'] michael@0: michael@0: if toolkit in ('cocoa', 'qt', 'android', 'gonk'): michael@0: DIRS += [toolkit] michael@0: if toolkit in ('qt', 'android', 'gonk', 'gtk2', 'gtk3'): michael@0: EXPORTS += ['nsIPrintDialogService.h'] michael@0: michael@0: if toolkit == 'windows': michael@0: DIRS += ['windows'] michael@0: michael@0: XPIDL_SOURCES += [ michael@0: 'nsIJumpListBuilder.idl', michael@0: 'nsIJumpListItem.idl', michael@0: 'nsIPrintSettingsWin.idl', michael@0: 'nsITaskbarOverlayIconController.idl', michael@0: 'nsITaskbarPreview.idl', michael@0: 'nsITaskbarPreviewButton.idl', michael@0: 'nsITaskbarPreviewController.idl', michael@0: 'nsITaskbarProgress.idl', michael@0: 'nsITaskbarTabPreview.idl', michael@0: 'nsITaskbarWindowPreview.idl', michael@0: 'nsIWinTaskbar.idl', michael@0: ] michael@0: elif toolkit == 'cocoa': michael@0: XPIDL_SOURCES += [ michael@0: 'nsIMacDockSupport.idl', michael@0: 'nsIMacWebAppUtils.idl', michael@0: 'nsIStandaloneNativeMenu.idl', michael@0: 'nsITaskbarProgress.idl', michael@0: ] michael@0: EXPORTS += [ michael@0: 'nsINativeMenuService.h', michael@0: 'nsIPrintDialogService.h', michael@0: ] michael@0: michael@0: TEST_TOOL_DIRS += ['tests'] michael@0: michael@0: # Don't build the DSO under the 'build' directory as windows does. michael@0: # michael@0: # The DSOs get built in the toolkit dir itself. Do this so that michael@0: # multiple implementations of widget can be built on the same michael@0: # source tree. michael@0: # michael@0: if CONFIG['MOZ_ENABLE_GTK']: michael@0: DIRS += ['gtk'] michael@0: michael@0: if CONFIG['MOZ_X11']: michael@0: DIRS += ['gtkxtbin'] michael@0: michael@0: XPIDL_SOURCES += [ michael@0: 'nsIAppShell.idl', michael@0: 'nsIBaseWindow.idl', michael@0: 'nsIBidiKeyboard.idl', michael@0: 'nsIClipboard.idl', michael@0: 'nsIClipboardDragDropHookList.idl', michael@0: 'nsIClipboardDragDropHooks.idl', michael@0: 'nsIClipboardHelper.idl', michael@0: 'nsIClipboardOwner.idl', michael@0: 'nsIColorPicker.idl', michael@0: 'nsIDragService.idl', michael@0: 'nsIDragSession.idl', michael@0: 'nsIFilePicker.idl', michael@0: 'nsIFormatConverter.idl', michael@0: 'nsIGfxInfo.idl', michael@0: 'nsIGfxInfoDebug.idl', michael@0: 'nsIIdleService.idl', michael@0: 'nsIIdleServiceInternal.idl', michael@0: 'nsIIMEPicker.idl', michael@0: 'nsIPrintOptions.idl', michael@0: 'nsIPrintSession.idl', michael@0: 'nsIPrintSettings.idl', michael@0: 'nsIPrintSettingsService.idl', michael@0: 'nsIScreen.idl', michael@0: 'nsIScreenManager.idl', michael@0: 'nsISound.idl', michael@0: 'nsITransferable.idl', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_METRO']: michael@0: XPIDL_SOURCES += [ michael@0: 'MetroUIUtils.idl', michael@0: 'nsIWinMetroUtils.idl', michael@0: ] michael@0: michael@0: XPIDL_MODULE = 'widget' michael@0: michael@0: EXPORTS += [ michael@0: 'InputData.h', michael@0: 'nsIDeviceContextSpec.h', michael@0: 'nsIPluginWidget.h', michael@0: 'nsIRollupListener.h', michael@0: 'nsIWidget.h', michael@0: 'nsIWidgetListener.h', michael@0: 'nsWidgetInitData.h', michael@0: 'nsWidgetsCID.h', michael@0: ] michael@0: michael@0: EXPORTS.mozilla += [ michael@0: 'BasicEvents.h', michael@0: 'CommandList.h', michael@0: 'ContentEvents.h', michael@0: 'EventClassList.h', michael@0: 'EventForwards.h', michael@0: 'LookAndFeel.h', michael@0: 'MiscEvents.h', michael@0: 'MouseEvents.h', michael@0: 'TextEvents.h', michael@0: 'TextRange.h', michael@0: 'TouchEvents.h', michael@0: 'WidgetUtils.h', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_INSTRUMENT_EVENT_LOOP']: michael@0: EXPORTS.mozilla += [ michael@0: 'WidgetTraceEvent.h', michael@0: ] michael@0: michael@0: EXPORTS.ipc = ['nsGUIEventIPC.h'] michael@0: