Backed out changeset 8517afe50156 (bug 540456) for reftest failures.
[gecko.git] / widget / moz.build
blob7342b3dfb5f375509fcde18698befface3439302
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 ('os2', '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     ]
43 elif toolkit == 'os2':
44     XPIDL_SOURCES += [
45         'nsIRwsService.idl',
46     ]
47     EXPORTS += ['nsIDragSessionOS2.h']
49 TEST_TOOL_DIRS += ['tests']
51 # Don't build the DSO under the 'build' directory as windows does.
53 # The DSOs get built in the toolkit dir itself.  Do this so that
54 # multiple implementations of widget can be built on the same
55 # source tree.
57 if CONFIG['MOZ_ENABLE_GTK']:
58     DIRS += ['gtk']
60     if CONFIG['MOZ_X11']:
61         DIRS += ['gtkxtbin']
63 XPIDL_SOURCES += [
64     'nsIAppShell.idl',
65     'nsIBaseWindow.idl',
66     'nsIBidiKeyboard.idl',
67     'nsIClipboard.idl',
68     'nsIClipboardDragDropHookList.idl',
69     'nsIClipboardDragDropHooks.idl',
70     'nsIClipboardHelper.idl',
71     'nsIClipboardOwner.idl',
72     'nsIColorPicker.idl',
73     'nsIDragService.idl',
74     'nsIDragSession.idl',
75     'nsIFilePicker.idl',
76     'nsIFormatConverter.idl',
77     'nsIGfxInfo.idl',
78     'nsIGfxInfoDebug.idl',
79     'nsIIMEPicker.idl',
80     'nsIIdleService.idl',
81     'nsIIdleServiceInternal.idl',
82     'nsIPrintOptions.idl',
83     'nsIPrintSession.idl',
84     'nsIPrintSettings.idl',
85     'nsIPrintSettingsService.idl',
86     'nsIScreen.idl',
87     'nsIScreenManager.idl',
88     'nsISound.idl',
89     'nsITransferable.idl',
92 if CONFIG['MOZ_METRO']:
93     XPIDL_SOURCES += [
94         'MetroUIUtils.idl',
95         'nsIWinMetroUtils.idl',
96     ]
98 MODULE = 'widget'
100 EXPORTS += [
101     'InputData.h',
102     'nsIDeviceContextSpec.h',
103     'nsINativeKeyBindings.h',
104     'nsIPluginWidget.h',
105     'nsIRollupListener.h',
106     'nsIWidget.h',
107     'nsIWidgetListener.h',
108     'nsWidgetInitData.h',
109     'nsWidgetsCID.h',
112 EXPORTS.mozilla += [
113     'BasicEvents.h',
114     'ContentEvents.h',
115     'EventForwards.h',
116     'LookAndFeel.h',
117     'MiscEvents.h',
118     'MouseEvents.h',
119     'TextEvents.h',
120     'TouchEvents.h',
121     'WidgetUtils.h',
124 if CONFIG['MOZ_INSTRUMENT_EVENT_LOOP']:
125     EXPORTS.mozilla += [
126         'WidgetTraceEvent.h',
127     ]
129 EXPORTS.ipc = ['nsGUIEventIPC.h']