Bug 1671598 [wpt PR 26128] - [AspectRatio] Fix divide by zero with a small float...
[gecko.git] / widget / windows / moz.build
blob8a46e81a7bdbac626f4c72eac0e2412dcdda3ffe
1 # -*- Mode: python; 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 with Files("**"):
8     BUG_COMPONENT = ("Core", "Widget: Win32")
9     SCHEDULES.exclusive = ['windows']
11 with Files("*CompositorWidget*"):
12     BUG_COMPONENT = ("Core", "Graphics")
14 with Files("*IMEHandler*"):
15     BUG_COMPONENT = ("Core", "DOM: UI Events & Focus Handling")
17 with Files("*IMMHandler*"):
18     BUG_COMPONENT = ("Core", "DOM: UI Events & Focus Handling")
20 with Files("*KeyboardLayout*"):
21     BUG_COMPONENT = ("Core", "DOM: UI Events & Focus Handling")
23 with Files("OSK*"):
24     BUG_COMPONENT = ("Core", "DOM: UI Events & Focus Handling")
26 with Files("*TSFTextStore*"):
27     BUG_COMPONENT = ("Core", "DOM: UI Events & Focus Handling")
29 TEST_DIRS += ['tests']
31 EXPORTS += [
32     'nsdefs.h',
33     'WindowHook.h',
34     'WinUtils.h',
37 EXPORTS.mozilla += [
38     'ShellHeaderOnlyUtils.h',
39     'UrlmonHeaderOnlyUtils.h',
40     'WindowsConsole.h',
41     'WinHeaderOnlyUtils.h',
44 EXPORTS.mozilla.widget += [
45     'AudioSession.h',
46     'CompositorWidgetChild.h',
47     'CompositorWidgetParent.h',
48     'InProcessWinCompositorWidget.h',
49     'WinCompositorWidget.h',
50     'WinCompositorWindowThread.h',
51     'WinContentSystemParameters.h',
52     'WindowsEMF.h',
53     'WindowsSMTCProvider.h',
54     'WinMessages.h',
55     'WinModifierKeyState.h',
56     'WinNativeEventData.h',
59 UNIFIED_SOURCES += [
60     'AudioSession.cpp',
61     'CompositorWidgetChild.cpp',
62     'GfxInfo.cpp',
63     'IconLoaderHelperWin.cpp',
64     'IEnumFE.cpp',
65     'IMMHandler.cpp',
66     'InkCollector.cpp',
67     'JumpListItem.cpp',
68     'KeyboardLayout.cpp',
69     'LSPAnnotator.cpp',
70     'nsAppShell.cpp',
71     'nsClipboard.cpp',
72     'nsColorPicker.cpp',
73     'nsDataObj.cpp',
74     'nsDataObjCollection.cpp',
75     'nsDragService.cpp',
76     'nsLookAndFeel.cpp',
77     'nsNativeBasicThemeWin.cpp',
78     'nsNativeDragSource.cpp',
79     'nsNativeDragTarget.cpp',
80     'nsNativeThemeWin.cpp',
81     'nsSound.cpp',
82     'nsToolkit.cpp',
83     'nsUserIdleServiceWin.cpp',
84     'nsUXThemeData.cpp',
85     'nsWindow.cpp',
86     'nsWindowBase.cpp',
87     'nsWindowDbg.cpp',
88     'nsWindowGfx.cpp',
89     'nsWinGesture.cpp',
90     'ProcInfo.cpp',
91     'RemoteBackbuffer.cpp',
92     'ScreenHelperWin.cpp',
93     'SystemStatusBar.cpp',
94     'TaskbarPreview.cpp',
95     'TaskbarPreviewButton.cpp',
96     'TaskbarTabPreview.cpp',
97     'TaskbarWindowPreview.cpp',
98     'WidgetTraceEvent.cpp',
99     'WinCompositorWindowThread.cpp',
100     'WindowHook.cpp',
101     'WindowsConsole.cpp',
102     'WinIMEHandler.cpp',
103     'WinPointerEvents.cpp',
104     'WinTaskbar.cpp',
105     'WinTextEventDispatcherListener.cpp',
106     'WinUtils.cpp',
109 # The following files cannot be built in unified mode because of name clashes.
110 SOURCES += [
111     'CompositorWidgetParent.cpp',
112     'InProcessWinCompositorWidget.cpp',
113     'JumpListBuilder.cpp',
114     'MediaKeysEventSourceFactory.cpp',
115     'nsBidiKeyboard.cpp',
116     'nsFilePicker.cpp',
117     'nsSharePicker.cpp',
118     'nsWidgetFactory.cpp',
119     'OSKInputPaneManager.cpp',
120     'WinCompositorWidget.cpp',
121     'WinContentSystemParameters.cpp',
122     'WindowsSMTCProvider.cpp',
123     'WindowsUIUtils.cpp',
124     'WinMouseScrollHandler.cpp',
127 # These files redefine the winsdk api version macro and we don't want it to leak to other files.
128 SOURCES += [
129     'DirectManipulationOwner.cpp',
132 # Needs INITGUID and we don't allow INITGUID in unified sources since bug 970429.
133 SOURCES += [
134     'InputDeviceUtils.cpp',
137 if CONFIG['NS_PRINTING']:
138     UNIFIED_SOURCES += [
139         'nsDeviceContextSpecWin.cpp',
140         'nsPrintDialogUtil.cpp',
141         'nsPrintDialogWin.cpp',
142         'nsPrinterWin.cpp',
143         'nsPrintSettingsServiceWin.cpp',
144         'nsPrintSettingsWin.cpp',
145     ]
147 if CONFIG['MOZ_ENABLE_SKIA_PDF']:
148     UNIFIED_SOURCES += [
149         'WindowsEMF.cpp',
150     ]
152 if CONFIG['NS_ENABLE_TSF']:
153     SOURCES += [
154         'TSFTextStore.cpp',
155     ]
157 XPCOM_MANIFESTS += [
158     'components.conf',
161 include('/ipc/chromium/chromium-config.mozbuild')
163 FINAL_LIBRARY = 'xul'
165 if CONFIG['MOZ_ENABLE_SKIA_PDF']:
166   LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']
168 LOCAL_INCLUDES += [
169     '/layout/forms',
170     '/layout/generic',
171     '/layout/style',
172     '/layout/xul',
173     '/toolkit/xre',
174     '/widget',
175     '/widget/headless',
176     '/xpcom/base',
179 DEFINES['MOZ_UNICODE'] = True
181 for var in ('MOZ_ENABLE_D3D10_LAYER'):
182     if CONFIG[var]:
183         DEFINES[var] = True
185 CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
187 OS_LIBS += [
188     'rpcrt4',
189     'urlmon',
192 if CONFIG['CC_TYPE'] == 'clang-cl':
193     SOURCES += [
194         'ToastNotification.cpp',
195         'ToastNotificationHandler.cpp',
196     ]