|
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 MOCHITEST_MANIFESTS += ['test/mochitest.ini'] |
|
8 MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini'] |
|
9 |
|
10 XPIDL_SOURCES += [ |
|
11 'nsIEventListenerService.idl', |
|
12 ] |
|
13 |
|
14 XPIDL_MODULE = 'content_events' |
|
15 |
|
16 EXPORTS.mozilla += [ |
|
17 'AsyncEventDispatcher.h', |
|
18 'DOMEventTargetHelper.h', |
|
19 'EventDispatcher.h', |
|
20 'EventListenerManager.h', |
|
21 'EventNameList.h', |
|
22 'EventStateManager.h', |
|
23 'EventStates.h', |
|
24 'IMEStateManager.h', |
|
25 'InternalMutationEvent.h', |
|
26 'JSEventHandler.h', |
|
27 'KeyNameList.h', |
|
28 'TextComposition.h', |
|
29 'VirtualKeyCodeList.h', |
|
30 ] |
|
31 |
|
32 EXPORTS.mozilla.dom += [ |
|
33 'AnimationEvent.h', |
|
34 'BeforeUnloadEvent.h', |
|
35 'ClipboardEvent.h', |
|
36 'CommandEvent.h', |
|
37 'CompositionEvent.h', |
|
38 'DataContainerEvent.h', |
|
39 'DataTransfer.h', |
|
40 'DeviceMotionEvent.h', |
|
41 'DragEvent.h', |
|
42 'Event.h', |
|
43 'EventTarget.h', |
|
44 'FocusEvent.h', |
|
45 'InputEvent.h', |
|
46 'KeyboardEvent.h', |
|
47 'MessageEvent.h', |
|
48 'MouseEvent.h', |
|
49 'MouseScrollEvent.h', |
|
50 'MutationEvent.h', |
|
51 'NotifyPaintEvent.h', |
|
52 'PaintRequest.h', |
|
53 'PointerEvent.h', |
|
54 'ScrollAreaEvent.h', |
|
55 'SimpleGestureEvent.h', |
|
56 'Touch.h', |
|
57 'TouchEvent.h', |
|
58 'TransitionEvent.h', |
|
59 'UIEvent.h', |
|
60 'WheelEvent.h', |
|
61 'XULCommandEvent.h', |
|
62 ] |
|
63 |
|
64 if CONFIG['MOZ_WEBSPEECH']: |
|
65 EXPORTS.mozilla.dom += ['SpeechRecognitionError.h'] |
|
66 |
|
67 UNIFIED_SOURCES += [ |
|
68 'AnimationEvent.cpp', |
|
69 'AsyncEventDispatcher.cpp', |
|
70 'BeforeUnloadEvent.cpp', |
|
71 'ClipboardEvent.cpp', |
|
72 'CommandEvent.cpp', |
|
73 'CompositionEvent.cpp', |
|
74 'ContentEventHandler.cpp', |
|
75 'DataContainerEvent.cpp', |
|
76 'DataTransfer.cpp', |
|
77 'DeviceMotionEvent.cpp', |
|
78 'DOMEventTargetHelper.cpp', |
|
79 'DragEvent.cpp', |
|
80 'Event.cpp', |
|
81 'EventDispatcher.cpp', |
|
82 'EventListenerManager.cpp', |
|
83 'EventListenerService.cpp', |
|
84 'EventTarget.cpp', |
|
85 'FocusEvent.cpp', |
|
86 'IMEContentObserver.cpp', |
|
87 'IMEStateManager.cpp', |
|
88 'InputEvent.cpp', |
|
89 'JSEventHandler.cpp', |
|
90 'KeyboardEvent.cpp', |
|
91 'MessageEvent.cpp', |
|
92 'MouseEvent.cpp', |
|
93 'MouseScrollEvent.cpp', |
|
94 'MutationEvent.cpp', |
|
95 'NotifyPaintEvent.cpp', |
|
96 'PaintRequest.cpp', |
|
97 'PointerEvent.cpp', |
|
98 'ScrollAreaEvent.cpp', |
|
99 'SimpleGestureEvent.cpp', |
|
100 'TextComposition.cpp', |
|
101 'Touch.cpp', |
|
102 'TouchEvent.cpp', |
|
103 'TransitionEvent.cpp', |
|
104 'UIEvent.cpp', |
|
105 'WheelEvent.cpp', |
|
106 'WheelHandlingHelper.cpp', |
|
107 'XULCommandEvent.cpp', |
|
108 ] |
|
109 |
|
110 # nsEventStateManager.cpp should be built separately because of Mac OS X headers. |
|
111 SOURCES += [ |
|
112 'EventStateManager.cpp', |
|
113 ] |
|
114 |
|
115 if CONFIG['MOZ_WEBSPEECH']: |
|
116 UNIFIED_SOURCES += ['SpeechRecognitionError.cpp'] |
|
117 |
|
118 FAIL_ON_WARNINGS = True |
|
119 |
|
120 MSVC_ENABLE_PGO = True |
|
121 |
|
122 include('/ipc/chromium/chromium-config.mozbuild') |
|
123 |
|
124 FINAL_LIBRARY = 'gklayout' |
|
125 LOCAL_INCLUDES += [ |
|
126 '/content/base/src', |
|
127 '/content/html/content/src', |
|
128 '/content/xml/content/src', |
|
129 '/content/xul/content/src', |
|
130 '/dom/base', |
|
131 '/dom/settings', |
|
132 '/dom/src/storage', |
|
133 '/dom/workers', |
|
134 '/js/xpconnect/wrappers', |
|
135 '/layout/generic', |
|
136 '/layout/xul', |
|
137 '/layout/xul/tree/', |
|
138 ] |
|
139 |
|
140 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': |
|
141 LOCAL_INCLUDES += [ |
|
142 '/dom/wifi', |
|
143 ] |
|
144 |
|
145 if CONFIG['MOZ_JSDEBUGGER']: |
|
146 DEFINES['MOZ_JSDEBUGGER'] = True |