Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 DIRS += ['shared', 'xpwidgets']
9 toolkit = CONFIG['MOZ_WIDGET_TOOLKIT']
11 if toolkit in ('cocoa', 'qt', 'android', 'gonk'):
12 DIRS += [toolkit]
13 if toolkit in ('qt', 'android', 'gonk', 'gtk2', 'gtk3'):
14 EXPORTS += ['nsIPrintDialogService.h']
16 if toolkit == 'windows':
17 DIRS += ['windows']
19 XPIDL_SOURCES += [
20 'nsIJumpListBuilder.idl',
21 'nsIJumpListItem.idl',
22 'nsIPrintSettingsWin.idl',
23 'nsITaskbarOverlayIconController.idl',
24 'nsITaskbarPreview.idl',
25 'nsITaskbarPreviewButton.idl',
26 'nsITaskbarPreviewController.idl',
27 'nsITaskbarProgress.idl',
28 'nsITaskbarTabPreview.idl',
29 'nsITaskbarWindowPreview.idl',
30 'nsIWinTaskbar.idl',
31 ]
32 elif toolkit == 'cocoa':
33 XPIDL_SOURCES += [
34 'nsIMacDockSupport.idl',
35 'nsIMacWebAppUtils.idl',
36 'nsIStandaloneNativeMenu.idl',
37 'nsITaskbarProgress.idl',
38 ]
39 EXPORTS += [
40 'nsINativeMenuService.h',
41 'nsIPrintDialogService.h',
42 ]
44 TEST_TOOL_DIRS += ['tests']
46 # Don't build the DSO under the 'build' directory as windows does.
47 #
48 # The DSOs get built in the toolkit dir itself. Do this so that
49 # multiple implementations of widget can be built on the same
50 # source tree.
51 #
52 if CONFIG['MOZ_ENABLE_GTK']:
53 DIRS += ['gtk']
55 if CONFIG['MOZ_X11']:
56 DIRS += ['gtkxtbin']
58 XPIDL_SOURCES += [
59 'nsIAppShell.idl',
60 'nsIBaseWindow.idl',
61 'nsIBidiKeyboard.idl',
62 'nsIClipboard.idl',
63 'nsIClipboardDragDropHookList.idl',
64 'nsIClipboardDragDropHooks.idl',
65 'nsIClipboardHelper.idl',
66 'nsIClipboardOwner.idl',
67 'nsIColorPicker.idl',
68 'nsIDragService.idl',
69 'nsIDragSession.idl',
70 'nsIFilePicker.idl',
71 'nsIFormatConverter.idl',
72 'nsIGfxInfo.idl',
73 'nsIGfxInfoDebug.idl',
74 'nsIIdleService.idl',
75 'nsIIdleServiceInternal.idl',
76 'nsIIMEPicker.idl',
77 'nsIPrintOptions.idl',
78 'nsIPrintSession.idl',
79 'nsIPrintSettings.idl',
80 'nsIPrintSettingsService.idl',
81 'nsIScreen.idl',
82 'nsIScreenManager.idl',
83 'nsISound.idl',
84 'nsITransferable.idl',
85 ]
87 if CONFIG['MOZ_METRO']:
88 XPIDL_SOURCES += [
89 'MetroUIUtils.idl',
90 'nsIWinMetroUtils.idl',
91 ]
93 XPIDL_MODULE = 'widget'
95 EXPORTS += [
96 'InputData.h',
97 'nsIDeviceContextSpec.h',
98 'nsIPluginWidget.h',
99 'nsIRollupListener.h',
100 'nsIWidget.h',
101 'nsIWidgetListener.h',
102 'nsWidgetInitData.h',
103 'nsWidgetsCID.h',
104 ]
106 EXPORTS.mozilla += [
107 'BasicEvents.h',
108 'CommandList.h',
109 'ContentEvents.h',
110 'EventClassList.h',
111 'EventForwards.h',
112 'LookAndFeel.h',
113 'MiscEvents.h',
114 'MouseEvents.h',
115 'TextEvents.h',
116 'TextRange.h',
117 'TouchEvents.h',
118 'WidgetUtils.h',
119 ]
121 if CONFIG['MOZ_INSTRUMENT_EVENT_LOOP']:
122 EXPORTS.mozilla += [
123 'WidgetTraceEvent.h',
124 ]
126 EXPORTS.ipc = ['nsGUIEventIPC.h']