michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: EXPORTS += [ michael@0: 'mozAutoDocUpdate.h', michael@0: 'nsAtomListUtils.h', michael@0: 'nsAttrAndChildArray.h', michael@0: 'nsAttrName.h', michael@0: 'nsAttrValue.h', michael@0: 'nsAttrValueInlines.h', michael@0: 'nsContentList.h', michael@0: 'nsContentListDeclarations.h', michael@0: 'nsContentSink.h', michael@0: 'nsCrossSiteListenerProxy.h', michael@0: 'nsDOMAttributeMap.h', michael@0: 'nsFrameMessageManager.h', michael@0: 'nsGenericDOMDataNode.h', michael@0: 'nsGkAtomList.h', michael@0: 'nsGkAtoms.h', michael@0: 'nsImageLoadingContent.h', michael@0: 'nsMappedAttributeElement.h', michael@0: 'nsNodeInfoManager.h', michael@0: 'nsNodeUtils.h', michael@0: 'nsPropertyTable.h', michael@0: 'nsRange.h', michael@0: 'nsSandboxFlags.h', michael@0: 'nsScriptLoader.h', michael@0: 'nsStubDocumentObserver.h', michael@0: 'nsStubMutationObserver.h', michael@0: 'nsStyledElement.h', michael@0: 'nsTextFragment.h', michael@0: 'nsTraversal.h', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_WEBRTC']: michael@0: EXPORTS += [ michael@0: 'nsDOMDataChannel.h', michael@0: 'nsDOMDataChannelDeclarations.h', michael@0: ] michael@0: SOURCES += [ michael@0: 'nsDOMDataChannel.cpp', michael@0: ] michael@0: LOCAL_INCLUDES += [ michael@0: '/netwerk/sctp/datachannel', michael@0: ] michael@0: michael@0: # Are we targeting x86-32 or x86-64? If so, we want to include SSE2 code for michael@0: # nsTextFragment.cpp michael@0: if CONFIG['INTEL_ARCHITECTURE']: michael@0: SOURCES += ['nsTextFragmentSSE2.cpp'] michael@0: SOURCES['nsTextFragmentSSE2.cpp'].flags += CONFIG['SSE2_FLAGS'] michael@0: michael@0: EXPORTS.mozilla += [ michael@0: 'FeedWriterEnabled.h', michael@0: ] michael@0: michael@0: EXPORTS.mozilla.dom += [ michael@0: 'Attr.h', michael@0: 'Comment.h', michael@0: 'DocumentFragment.h', michael@0: 'DocumentType.h', michael@0: 'DOMImplementation.h', michael@0: 'DOMParser.h', michael@0: 'DOMPoint.h', michael@0: 'DOMQuad.h', michael@0: 'DOMRect.h', michael@0: 'DOMStringList.h', michael@0: 'EventSource.h', michael@0: 'Link.h', michael@0: 'NodeIterator.h', michael@0: 'ShadowRoot.h', michael@0: 'StyleSheetList.h', michael@0: 'Text.h', michael@0: 'TreeWalker.h', michael@0: ] michael@0: michael@0: UNIFIED_SOURCES += [ michael@0: 'Attr.cpp', michael@0: 'ChildIterator.cpp', michael@0: 'Comment.cpp', michael@0: 'DirectionalityUtils.cpp', michael@0: 'DocumentFragment.cpp', michael@0: 'DocumentType.cpp', michael@0: 'DOMImplementation.cpp', michael@0: 'DOMParser.cpp', michael@0: 'DOMPoint.cpp', michael@0: 'DOMQuad.cpp', michael@0: 'DOMRect.cpp', michael@0: 'DOMStringList.cpp', michael@0: 'Element.cpp', michael@0: 'EventSource.cpp', michael@0: 'FileIOObject.cpp', michael@0: 'FragmentOrElement.cpp', michael@0: 'Link.cpp', michael@0: 'NodeIterator.cpp', michael@0: 'nsAtomListUtils.cpp', michael@0: 'nsAttrAndChildArray.cpp', michael@0: 'nsAttrValue.cpp', michael@0: 'nsAttrValueOrString.cpp', michael@0: 'nsCCUncollectableMarker.cpp', michael@0: 'nsChannelPolicy.cpp', michael@0: 'nsContentAreaDragDrop.cpp', michael@0: 'nsContentIterator.cpp', michael@0: 'nsContentList.cpp', michael@0: 'nsContentPolicy.cpp', michael@0: 'nsContentSink.cpp', michael@0: 'nsCopySupport.cpp', michael@0: 'nsCrossSiteListenerProxy.cpp', michael@0: 'nsCSPService.cpp', michael@0: 'nsDataDocumentContentPolicy.cpp', michael@0: 'nsDocumentEncoder.cpp', michael@0: 'nsDOMAttributeMap.cpp', michael@0: 'nsDOMBlobBuilder.cpp', michael@0: 'nsDOMCaretPosition.cpp', michael@0: 'nsDOMFile.cpp', michael@0: 'nsDOMFileReader.cpp', michael@0: 'nsDOMMutationObserver.cpp', michael@0: 'nsDOMSerializer.cpp', michael@0: 'nsDOMSettableTokenList.cpp', michael@0: 'nsDOMTokenList.cpp', michael@0: 'nsFormData.cpp', michael@0: 'nsFrameLoader.cpp', michael@0: 'nsFrameMessageManager.cpp', michael@0: 'nsGenConImageContent.cpp', michael@0: 'nsGenericDOMDataNode.cpp', michael@0: 'nsGkAtoms.cpp', michael@0: 'nsHostObjectProtocolHandler.cpp', michael@0: 'nsHostObjectURI.cpp', michael@0: 'nsHTMLContentSerializer.cpp', michael@0: 'nsImageLoadingContent.cpp', michael@0: 'nsINode.cpp', michael@0: 'nsInProcessTabChildGlobal.cpp', michael@0: 'nsLineBreaker.cpp', michael@0: 'nsMappedAttributeElement.cpp', michael@0: 'nsMappedAttributes.cpp', michael@0: 'nsMixedContentBlocker.cpp', michael@0: 'nsNameSpaceManager.cpp', michael@0: 'nsNoDataProtocolContentPolicy.cpp', michael@0: 'nsNodeInfo.cpp', michael@0: 'nsNodeUtils.cpp', michael@0: 'nsPlainTextSerializer.cpp', michael@0: 'nsPropertyTable.cpp', michael@0: 'nsRange.cpp', michael@0: 'nsReferencedElement.cpp', michael@0: 'nsScriptElement.cpp', michael@0: 'nsScriptLoader.cpp', michael@0: 'nsStubDocumentObserver.cpp', michael@0: 'nsStubMutationObserver.cpp', michael@0: 'nsStyledElement.cpp', michael@0: 'nsStyleLinkElement.cpp', michael@0: 'nsSyncLoadService.cpp', michael@0: 'nsTextFragment.cpp', michael@0: 'nsTextNode.cpp', michael@0: 'nsTraversal.cpp', michael@0: 'nsTreeSanitizer.cpp', michael@0: 'nsViewportInfo.cpp', michael@0: 'nsXHTMLContentSerializer.cpp', michael@0: 'nsXMLContentSerializer.cpp', michael@0: 'nsXMLHttpRequest.cpp', michael@0: 'nsXMLNameSpaceMap.cpp', michael@0: 'ShadowRoot.cpp', michael@0: 'StyleSheetList.cpp', michael@0: 'Text.cpp', michael@0: 'ThirdPartyUtil.cpp', michael@0: 'TreeWalker.cpp', michael@0: 'WebSocket.cpp', michael@0: ] michael@0: michael@0: # These files cannot be built in unified mode because they use FORCE_PR_LOG michael@0: SOURCES += [ michael@0: 'nsDocument.cpp', michael@0: 'nsNodeInfoManager.cpp', michael@0: ] michael@0: michael@0: # These files cannot be built in unified mode because of OS X headers. michael@0: SOURCES += [ michael@0: 'nsContentUtils.cpp', michael@0: 'nsObjectLoadingContent.cpp', michael@0: ] michael@0: michael@0: EXTRA_COMPONENTS += [ michael@0: 'contentAreaDropListener.js', michael@0: 'contentAreaDropListener.manifest', michael@0: 'contentSecurityPolicy.manifest', michael@0: 'messageWakeupService.js', michael@0: 'messageWakeupService.manifest', michael@0: ] michael@0: michael@0: EXTRA_PP_COMPONENTS += [ michael@0: 'contentSecurityPolicy.js', michael@0: ] michael@0: michael@0: EXTRA_JS_MODULES += [ michael@0: 'CSPUtils.jsm', michael@0: ] michael@0: michael@0: FAIL_ON_WARNINGS = True michael@0: michael@0: MSVC_ENABLE_PGO = True michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: FINAL_LIBRARY = 'gklayout' michael@0: LOCAL_INCLUDES += [ michael@0: '/caps/include', michael@0: '/content/html/content/src', michael@0: '/content/html/document/src', michael@0: '/content/svg/content/src', michael@0: '/content/xml/content/src', michael@0: '/content/xml/document/src', michael@0: '/content/xul/content/src', michael@0: '/content/xul/document/src', michael@0: '/docshell/base', michael@0: '/dom/base', michael@0: '/dom/ipc', michael@0: '/dom/workers', michael@0: '/dom/xbl', michael@0: '/dom/xslt/xpath', michael@0: '/image/src', michael@0: '/js/ipc', michael@0: '/js/xpconnect/src', michael@0: '/js/xpconnect/wrappers', michael@0: '/layout/base', michael@0: '/layout/generic', michael@0: '/layout/style', michael@0: '/layout/svg', michael@0: '/layout/xul', michael@0: '/netwerk/base/src', michael@0: '/xpcom/ds', michael@0: ] michael@0: michael@0: if CONFIG['GNU_CC'] and CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android': michael@0: # Work around bug 986928 michael@0: CXXFLAGS += ['-Wno-error=format']