2013-04-01 18:36:59 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 21:20:02 +00:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# 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/.
|
|
|
|
|
|
|
|
DIRS += ['shared', 'xpwidgets']
|
|
|
|
|
|
|
|
toolkit = CONFIG['MOZ_WIDGET_TOOLKIT']
|
|
|
|
|
|
|
|
if toolkit in ('os2', 'cocoa', 'qt', 'android', 'gonk'):
|
|
|
|
DIRS += [toolkit]
|
2013-06-10 12:36:26 +00:00
|
|
|
if toolkit in ('qt', 'android', 'gonk', 'gtk2', 'gtk3'):
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS += ['nsIPrintDialogService.h']
|
2013-02-25 21:20:02 +00:00
|
|
|
|
|
|
|
if toolkit == 'windows':
|
|
|
|
DIRS += ['windows']
|
|
|
|
|
2013-03-12 17:20:41 +00:00
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIJumpListBuilder.idl',
|
|
|
|
'nsIJumpListItem.idl',
|
|
|
|
'nsIPrintSettingsWin.idl',
|
2013-05-16 22:37:18 +00:00
|
|
|
'nsITaskbarOverlayIconController.idl',
|
2013-03-12 17:20:41 +00:00
|
|
|
'nsITaskbarPreview.idl',
|
2013-05-16 17:22:02 +00:00
|
|
|
'nsITaskbarPreviewButton.idl',
|
2013-05-16 22:37:18 +00:00
|
|
|
'nsITaskbarPreviewController.idl',
|
2013-05-16 17:22:02 +00:00
|
|
|
'nsITaskbarProgress.idl',
|
2013-05-16 22:37:18 +00:00
|
|
|
'nsITaskbarTabPreview.idl',
|
|
|
|
'nsITaskbarWindowPreview.idl',
|
2013-03-12 17:20:41 +00:00
|
|
|
'nsIWinTaskbar.idl',
|
|
|
|
]
|
|
|
|
elif toolkit == 'cocoa':
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIMacDockSupport.idl',
|
|
|
|
'nsIMacWebAppUtils.idl',
|
|
|
|
'nsIStandaloneNativeMenu.idl',
|
|
|
|
'nsITaskbarProgress.idl',
|
|
|
|
]
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS += [
|
|
|
|
'nsINativeMenuService.h',
|
|
|
|
'nsIPrintDialogService.h',
|
|
|
|
]
|
2013-03-12 17:20:41 +00:00
|
|
|
elif toolkit == 'os2':
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIRwsService.idl',
|
|
|
|
]
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS += ['nsIDragSessionOS2.h']
|
2013-03-12 17:20:41 +00:00
|
|
|
|
2013-02-25 21:20:02 +00:00
|
|
|
TEST_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.
|
|
|
|
#
|
2013-06-10 12:36:26 +00:00
|
|
|
if CONFIG['MOZ_ENABLE_GTK']:
|
2013-09-23 13:21:57 +00:00
|
|
|
DIRS += ['gtk']
|
2013-02-25 21:20:02 +00:00
|
|
|
|
|
|
|
if CONFIG['MOZ_X11']:
|
|
|
|
DIRS += ['gtkxtbin']
|
2013-03-12 17:17:46 +00:00
|
|
|
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIAppShell.idl',
|
|
|
|
'nsIBaseWindow.idl',
|
|
|
|
'nsIBidiKeyboard.idl',
|
|
|
|
'nsIClipboard.idl',
|
|
|
|
'nsIClipboardDragDropHookList.idl',
|
|
|
|
'nsIClipboardDragDropHooks.idl',
|
|
|
|
'nsIClipboardHelper.idl',
|
|
|
|
'nsIClipboardOwner.idl',
|
2013-07-03 10:17:26 +00:00
|
|
|
'nsIColorPicker.idl',
|
2013-03-12 17:17:46 +00:00
|
|
|
'nsIDragService.idl',
|
|
|
|
'nsIDragSession.idl',
|
|
|
|
'nsIFilePicker.idl',
|
|
|
|
'nsIFormatConverter.idl',
|
|
|
|
'nsIGfxInfo.idl',
|
|
|
|
'nsIGfxInfoDebug.idl',
|
|
|
|
'nsIIdleService.idl',
|
|
|
|
'nsIIdleServiceInternal.idl',
|
2013-10-23 23:05:43 +00:00
|
|
|
'nsIIMEPicker.idl',
|
2013-03-12 17:17:46 +00:00
|
|
|
'nsIPrintOptions.idl',
|
|
|
|
'nsIPrintSession.idl',
|
|
|
|
'nsIPrintSettings.idl',
|
|
|
|
'nsIPrintSettingsService.idl',
|
|
|
|
'nsIScreen.idl',
|
|
|
|
'nsIScreenManager.idl',
|
|
|
|
'nsISound.idl',
|
|
|
|
'nsITransferable.idl',
|
|
|
|
]
|
|
|
|
|
2013-03-12 17:20:41 +00:00
|
|
|
if CONFIG['MOZ_METRO']:
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'MetroUIUtils.idl',
|
|
|
|
'nsIWinMetroUtils.idl',
|
|
|
|
]
|
|
|
|
|
2013-11-19 02:47:43 +00:00
|
|
|
XPIDL_MODULE = 'widget'
|
2013-03-19 18:47:00 +00:00
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS += [
|
|
|
|
'InputData.h',
|
|
|
|
'nsIDeviceContextSpec.h',
|
|
|
|
'nsINativeKeyBindings.h',
|
|
|
|
'nsIPluginWidget.h',
|
|
|
|
'nsIRollupListener.h',
|
|
|
|
'nsIWidget.h',
|
|
|
|
'nsIWidgetListener.h',
|
|
|
|
'nsWidgetInitData.h',
|
|
|
|
'nsWidgetsCID.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla += [
|
2013-09-24 10:04:14 +00:00
|
|
|
'BasicEvents.h',
|
2013-09-24 10:04:15 +00:00
|
|
|
'ContentEvents.h',
|
2013-10-18 06:10:20 +00:00
|
|
|
'EventClassList.h',
|
2013-09-24 10:04:14 +00:00
|
|
|
'EventForwards.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'LookAndFeel.h',
|
2013-09-24 10:04:15 +00:00
|
|
|
'MiscEvents.h',
|
2013-09-24 10:04:15 +00:00
|
|
|
'MouseEvents.h',
|
2013-09-24 10:04:15 +00:00
|
|
|
'TextEvents.h',
|
2013-10-22 13:27:36 +00:00
|
|
|
'TextRange.h',
|
2013-09-24 10:04:15 +00:00
|
|
|
'TouchEvents.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
'WidgetUtils.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_INSTRUMENT_EVENT_LOOP']:
|
|
|
|
EXPORTS.mozilla += [
|
|
|
|
'WidgetTraceEvent.h',
|
|
|
|
]
|
|
|
|
|
2013-07-10 19:08:23 +00:00
|
|
|
EXPORTS.ipc = ['nsGUIEventIPC.h']
|
2013-04-16 19:24:43 +00:00
|
|
|
|