Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
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 EXPORTS += [
8 'mozAutoDocUpdate.h',
9 'nsAtomListUtils.h',
10 'nsAttrAndChildArray.h',
11 'nsAttrName.h',
12 'nsAttrValue.h',
13 'nsAttrValueInlines.h',
14 'nsContentList.h',
15 'nsContentListDeclarations.h',
16 'nsContentSink.h',
17 'nsCrossSiteListenerProxy.h',
18 'nsDOMAttributeMap.h',
19 'nsFrameMessageManager.h',
20 'nsGenericDOMDataNode.h',
21 'nsGkAtomList.h',
22 'nsGkAtoms.h',
23 'nsImageLoadingContent.h',
24 'nsMappedAttributeElement.h',
25 'nsNodeInfoManager.h',
26 'nsNodeUtils.h',
27 'nsPropertyTable.h',
28 'nsRange.h',
29 'nsSandboxFlags.h',
30 'nsScriptLoader.h',
31 'nsStubDocumentObserver.h',
32 'nsStubMutationObserver.h',
33 'nsStyledElement.h',
34 'nsTextFragment.h',
35 'nsTraversal.h',
36 ]
38 if CONFIG['MOZ_WEBRTC']:
39 EXPORTS += [
40 'nsDOMDataChannel.h',
41 'nsDOMDataChannelDeclarations.h',
42 ]
43 SOURCES += [
44 'nsDOMDataChannel.cpp',
45 ]
46 LOCAL_INCLUDES += [
47 '/netwerk/sctp/datachannel',
48 ]
50 # Are we targeting x86-32 or x86-64? If so, we want to include SSE2 code for
51 # nsTextFragment.cpp
52 if CONFIG['INTEL_ARCHITECTURE']:
53 SOURCES += ['nsTextFragmentSSE2.cpp']
54 SOURCES['nsTextFragmentSSE2.cpp'].flags += CONFIG['SSE2_FLAGS']
56 EXPORTS.mozilla += [
57 'FeedWriterEnabled.h',
58 ]
60 EXPORTS.mozilla.dom += [
61 'Attr.h',
62 'Comment.h',
63 'DocumentFragment.h',
64 'DocumentType.h',
65 'DOMImplementation.h',
66 'DOMParser.h',
67 'DOMPoint.h',
68 'DOMQuad.h',
69 'DOMRect.h',
70 'DOMStringList.h',
71 'EventSource.h',
72 'Link.h',
73 'NodeIterator.h',
74 'ShadowRoot.h',
75 'StyleSheetList.h',
76 'Text.h',
77 'TreeWalker.h',
78 ]
80 UNIFIED_SOURCES += [
81 'Attr.cpp',
82 'ChildIterator.cpp',
83 'Comment.cpp',
84 'DirectionalityUtils.cpp',
85 'DocumentFragment.cpp',
86 'DocumentType.cpp',
87 'DOMImplementation.cpp',
88 'DOMParser.cpp',
89 'DOMPoint.cpp',
90 'DOMQuad.cpp',
91 'DOMRect.cpp',
92 'DOMStringList.cpp',
93 'Element.cpp',
94 'EventSource.cpp',
95 'FileIOObject.cpp',
96 'FragmentOrElement.cpp',
97 'Link.cpp',
98 'NodeIterator.cpp',
99 'nsAtomListUtils.cpp',
100 'nsAttrAndChildArray.cpp',
101 'nsAttrValue.cpp',
102 'nsAttrValueOrString.cpp',
103 'nsCCUncollectableMarker.cpp',
104 'nsChannelPolicy.cpp',
105 'nsContentAreaDragDrop.cpp',
106 'nsContentIterator.cpp',
107 'nsContentList.cpp',
108 'nsContentPolicy.cpp',
109 'nsContentSink.cpp',
110 'nsCopySupport.cpp',
111 'nsCrossSiteListenerProxy.cpp',
112 'nsCSPService.cpp',
113 'nsDataDocumentContentPolicy.cpp',
114 'nsDocumentEncoder.cpp',
115 'nsDOMAttributeMap.cpp',
116 'nsDOMBlobBuilder.cpp',
117 'nsDOMCaretPosition.cpp',
118 'nsDOMFile.cpp',
119 'nsDOMFileReader.cpp',
120 'nsDOMMutationObserver.cpp',
121 'nsDOMSerializer.cpp',
122 'nsDOMSettableTokenList.cpp',
123 'nsDOMTokenList.cpp',
124 'nsFormData.cpp',
125 'nsFrameLoader.cpp',
126 'nsFrameMessageManager.cpp',
127 'nsGenConImageContent.cpp',
128 'nsGenericDOMDataNode.cpp',
129 'nsGkAtoms.cpp',
130 'nsHostObjectProtocolHandler.cpp',
131 'nsHostObjectURI.cpp',
132 'nsHTMLContentSerializer.cpp',
133 'nsImageLoadingContent.cpp',
134 'nsINode.cpp',
135 'nsInProcessTabChildGlobal.cpp',
136 'nsLineBreaker.cpp',
137 'nsMappedAttributeElement.cpp',
138 'nsMappedAttributes.cpp',
139 'nsMixedContentBlocker.cpp',
140 'nsNameSpaceManager.cpp',
141 'nsNoDataProtocolContentPolicy.cpp',
142 'nsNodeInfo.cpp',
143 'nsNodeUtils.cpp',
144 'nsPlainTextSerializer.cpp',
145 'nsPropertyTable.cpp',
146 'nsRange.cpp',
147 'nsReferencedElement.cpp',
148 'nsScriptElement.cpp',
149 'nsScriptLoader.cpp',
150 'nsStubDocumentObserver.cpp',
151 'nsStubMutationObserver.cpp',
152 'nsStyledElement.cpp',
153 'nsStyleLinkElement.cpp',
154 'nsSyncLoadService.cpp',
155 'nsTextFragment.cpp',
156 'nsTextNode.cpp',
157 'nsTraversal.cpp',
158 'nsTreeSanitizer.cpp',
159 'nsViewportInfo.cpp',
160 'nsXHTMLContentSerializer.cpp',
161 'nsXMLContentSerializer.cpp',
162 'nsXMLHttpRequest.cpp',
163 'nsXMLNameSpaceMap.cpp',
164 'ShadowRoot.cpp',
165 'StyleSheetList.cpp',
166 'Text.cpp',
167 'ThirdPartyUtil.cpp',
168 'TreeWalker.cpp',
169 'WebSocket.cpp',
170 ]
172 # These files cannot be built in unified mode because they use FORCE_PR_LOG
173 SOURCES += [
174 'nsDocument.cpp',
175 'nsNodeInfoManager.cpp',
176 ]
178 # These files cannot be built in unified mode because of OS X headers.
179 SOURCES += [
180 'nsContentUtils.cpp',
181 'nsObjectLoadingContent.cpp',
182 ]
184 EXTRA_COMPONENTS += [
185 'contentAreaDropListener.js',
186 'contentAreaDropListener.manifest',
187 'contentSecurityPolicy.manifest',
188 'messageWakeupService.js',
189 'messageWakeupService.manifest',
190 ]
192 EXTRA_PP_COMPONENTS += [
193 'contentSecurityPolicy.js',
194 ]
196 EXTRA_JS_MODULES += [
197 'CSPUtils.jsm',
198 ]
200 FAIL_ON_WARNINGS = True
202 MSVC_ENABLE_PGO = True
204 include('/ipc/chromium/chromium-config.mozbuild')
206 FINAL_LIBRARY = 'gklayout'
207 LOCAL_INCLUDES += [
208 '/caps/include',
209 '/content/html/content/src',
210 '/content/html/document/src',
211 '/content/svg/content/src',
212 '/content/xml/content/src',
213 '/content/xml/document/src',
214 '/content/xul/content/src',
215 '/content/xul/document/src',
216 '/docshell/base',
217 '/dom/base',
218 '/dom/ipc',
219 '/dom/workers',
220 '/dom/xbl',
221 '/dom/xslt/xpath',
222 '/image/src',
223 '/js/ipc',
224 '/js/xpconnect/src',
225 '/js/xpconnect/wrappers',
226 '/layout/base',
227 '/layout/generic',
228 '/layout/style',
229 '/layout/svg',
230 '/layout/xul',
231 '/netwerk/base/src',
232 '/xpcom/ds',
233 ]
235 if CONFIG['GNU_CC'] and CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
236 # Work around bug 986928
237 CXXFLAGS += ['-Wno-error=format']