|
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/. |
|
6 |
|
7 if CONFIG['MOZ_METRO']: |
|
8 DIRS += ['winrt'] |
|
9 |
|
10 TEST_DIRS += ['tests'] |
|
11 |
|
12 EXPORTS += [ |
|
13 'nsdefs.h', |
|
14 'WindowHook.h', |
|
15 'WinUtils.h', |
|
16 ] |
|
17 |
|
18 EXPORTS.mozilla.widget += [ |
|
19 'AudioSession.h', |
|
20 ] |
|
21 |
|
22 UNIFIED_SOURCES += [ |
|
23 'AudioSession.cpp', |
|
24 'GfxInfo.cpp', |
|
25 'IEnumFE.cpp', |
|
26 'JumpListItem.cpp', |
|
27 'KeyboardLayout.cpp', |
|
28 'nsAppShell.cpp', |
|
29 'nsClipboard.cpp', |
|
30 'nsColorPicker.cpp', |
|
31 'nsDataObj.cpp', |
|
32 'nsDataObjCollection.cpp', |
|
33 'nsDragService.cpp', |
|
34 'nsIdleServiceWin.cpp', |
|
35 'nsImageClipboard.cpp', |
|
36 'nsLookAndFeel.cpp', |
|
37 'nsNativeDragSource.cpp', |
|
38 'nsNativeDragTarget.cpp', |
|
39 'nsNativeThemeWin.cpp', |
|
40 'nsScreenManagerWin.cpp', |
|
41 'nsScreenWin.cpp', |
|
42 'nsSound.cpp', |
|
43 'nsToolkit.cpp', |
|
44 'nsUXThemeData.cpp', |
|
45 'nsWindow.cpp', |
|
46 'nsWindowBase.cpp', |
|
47 'nsWindowDbg.cpp', |
|
48 'nsWindowGfx.cpp', |
|
49 'nsWinGesture.cpp', |
|
50 'TaskbarPreview.cpp', |
|
51 'TaskbarPreviewButton.cpp', |
|
52 'TaskbarTabPreview.cpp', |
|
53 'TaskbarWindowPreview.cpp', |
|
54 'WidgetTraceEvent.cpp', |
|
55 'WindowHook.cpp', |
|
56 'WinIMEHandler.cpp', |
|
57 'WinTaskbar.cpp', |
|
58 ] |
|
59 |
|
60 # The following files cannot be built in unified mode because they force NSPR logging. |
|
61 SOURCES += [ |
|
62 'nsIMM32Handler.cpp', |
|
63 'WinMouseScrollHandler.cpp', |
|
64 'WinUtils.cpp', |
|
65 ] |
|
66 |
|
67 # The following files cannot be built in unified mode because of name clashes. |
|
68 SOURCES += [ |
|
69 'JumpListBuilder.cpp', |
|
70 'nsBidiKeyboard.cpp', |
|
71 'nsFilePicker.cpp', |
|
72 'nsWidgetFactory.cpp', |
|
73 ] |
|
74 |
|
75 if CONFIG['MOZ_CRASHREPORTER']: |
|
76 UNIFIED_SOURCES += [ |
|
77 'LSPAnnotator.cpp', |
|
78 ] |
|
79 |
|
80 if CONFIG['NS_PRINTING']: |
|
81 UNIFIED_SOURCES += [ |
|
82 'nsDeviceContextSpecWin.cpp', |
|
83 'nsPrintOptionsWin.cpp', |
|
84 'nsPrintSettingsWin.cpp', |
|
85 ] |
|
86 |
|
87 if CONFIG['NS_ENABLE_TSF']: |
|
88 SOURCES += [ |
|
89 'nsTextStore.cpp', |
|
90 ] |
|
91 |
|
92 MSVC_ENABLE_PGO = True |
|
93 |
|
94 LIBRARY_NAME = 'widget_windows' |
|
95 |
|
96 include('/ipc/chromium/chromium-config.mozbuild') |
|
97 |
|
98 FINAL_LIBRARY = 'xul' |
|
99 |
|
100 LOCAL_INCLUDES += [ |
|
101 '../shared', |
|
102 '../xpwidgets', |
|
103 '/layout/generic', |
|
104 '/layout/xul', |
|
105 '/toolkit/xre', |
|
106 '/xpcom/base', |
|
107 ] |
|
108 |
|
109 DEFINES['MOZ_UNICODE'] = True |
|
110 |
|
111 for var in ('MOZ_ENABLE_D3D9_LAYER', 'MOZ_ENABLE_D3D10_LAYER'): |
|
112 if CONFIG[var]: |
|
113 DEFINES[var] = True |
|
114 |
|
115 RESFILE = 'widget.res' |