content/base/src/moz.build
author Robert O'Callahan <robert@ocallahan.org>
Fri, 10 Jan 2014 16:03:25 +1300
changeset 180086 243259fda9aba5900ae1492c991a0e7a541a584d
parent 179346 67ff9392766b53c51bb876b5f74e5e6602347668
child 180453 35dddd51e275f6a296a79bfaea84db81b3c6ffb2
permissions -rw-r--r--
Bug 946065. Part 4: Move content/xbl to dom/ and flatten away 'src' directory. r=Ms2ger

# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

EXPORTS += [
    'mozAutoDocUpdate.h',
    'nsAtomListUtils.h',
    'nsAttrAndChildArray.h',
    'nsAttrName.h',
    'nsAttrValue.h',
    'nsAttrValueInlines.h',
    'nsContentList.h',
    'nsContentListDeclarations.h',
    'nsContentSink.h',
    'nsCrossSiteListenerProxy.h',
    'nsDOMAttributeMap.h',
    'nsFrameMessageManager.h',
    'nsGkAtomList.h',
    'nsGkAtoms.h',
    'nsImageLoadingContent.h',
    'nsMappedAttributeElement.h',
    'nsNodeInfoManager.h',
    'nsNodeUtils.h',
    'nsPropertyTable.h',
    'nsRange.h',
    'nsSandboxFlags.h',
    'nsScriptLoader.h',
    'nsStubDocumentObserver.h',
    'nsStubMutationObserver.h',
    'nsStyledElement.h',
    'nsTextFragment.h',
]

if CONFIG['MOZ_WEBRTC']:
    EXPORTS += [
        'nsDOMDataChannel.h',
        'nsDOMDataChannelDeclarations.h',
    ]
    SOURCES += [
        'nsDOMDataChannel.cpp',
    ]
    LOCAL_INCLUDES += [
        '/netwerk/sctp/datachannel',
    ]

# Are we targeting x86-32 or x86-64?  If so, we want to include SSE2 code for
# nsTextFragment.cpp
if CONFIG['INTEL_ARCHITECTURE']:
    SOURCES += [
        'nsTextFragmentSSE2.cpp',
    ]

EXPORTS.mozilla.dom += [
    'Attr.h',
    'Comment.h',
    'DocumentFragment.h',
    'DocumentType.h',
    'DOMImplementation.h',
    'DOMParser.h',
    'DOMRect.h',
    'EventSource.h',
    'Link.h',
    'NodeIterator.h',
    'ShadowRoot.h',
    'Text.h',
    'TreeWalker.h',
]

UNIFIED_SOURCES += [
    'Attr.cpp',
    'ChildIterator.cpp',
    'Comment.cpp',
    'DirectionalityUtils.cpp',
    'DocumentFragment.cpp',
    'DocumentType.cpp',
    'DOMImplementation.cpp',
    'DOMParser.cpp',
    'DOMRect.cpp',
    'Element.cpp',
    'EventSource.cpp',
    'FileIOObject.cpp',
    'FragmentOrElement.cpp',
    'Link.cpp',
    'NodeIterator.cpp',
    'nsAtomListUtils.cpp',
    'nsAttrAndChildArray.cpp',
    'nsAttrValue.cpp',
    'nsAttrValueOrString.cpp',
    'nsCCUncollectableMarker.cpp',
    'nsChannelPolicy.cpp',
    'nsContentAreaDragDrop.cpp',
    'nsContentIterator.cpp',
    'nsContentList.cpp',
    'nsContentPolicy.cpp',
    'nsContentSink.cpp',
    'nsCopySupport.cpp',
    'nsCrossSiteListenerProxy.cpp',
    'nsCSPService.cpp',
    'nsDataDocumentContentPolicy.cpp',
    'nsDocumentEncoder.cpp',
    'nsDOMAttributeMap.cpp',
    'nsDOMBlobBuilder.cpp',
    'nsDOMCaretPosition.cpp',
    'nsDOMFile.cpp',
    'nsDOMFileReader.cpp',
    'nsDOMLists.cpp',
    'nsDOMMutationObserver.cpp',
    'nsDOMSerializer.cpp',
    'nsDOMSettableTokenList.cpp',
    'nsDOMTokenList.cpp',
    'nsFormData.cpp',
    'nsFrameLoader.cpp',
    'nsFrameMessageManager.cpp',
    'nsGenConImageContent.cpp',
    'nsGenericDOMDataNode.cpp',
    'nsGkAtoms.cpp',
    'nsHostObjectProtocolHandler.cpp',
    'nsHostObjectURI.cpp',
    'nsHTMLContentSerializer.cpp',
    'nsImageLoadingContent.cpp',
    'nsINode.cpp',
    'nsInProcessTabChildGlobal.cpp',
    'nsLineBreaker.cpp',
    'nsMappedAttributeElement.cpp',
    'nsMappedAttributes.cpp',
    'nsMixedContentBlocker.cpp',
    'nsNameSpaceManager.cpp',
    'nsNoDataProtocolContentPolicy.cpp',
    'nsNodeInfo.cpp',
    'nsNodeUtils.cpp',
    'nsPlainTextSerializer.cpp',
    'nsPropertyTable.cpp',
    'nsRange.cpp',
    'nsReferencedElement.cpp',
    'nsScriptElement.cpp',
    'nsScriptLoader.cpp',
    'nsStubDocumentObserver.cpp',
    'nsStubMutationObserver.cpp',
    'nsStyledElement.cpp',
    'nsStyleLinkElement.cpp',
    'nsSyncLoadService.cpp',
    'nsTextFragment.cpp',
    'nsTextNode.cpp',
    'nsTraversal.cpp',
    'nsTreeSanitizer.cpp',
    'nsViewportInfo.cpp',
    'nsXHTMLContentSerializer.cpp',
    'nsXMLContentSerializer.cpp',
    'nsXMLHttpRequest.cpp',
    'nsXMLNameSpaceMap.cpp',
    'ShadowRoot.cpp',
    'Text.cpp',
    'ThirdPartyUtil.cpp',
    'TreeWalker.cpp',
    'WebSocket.cpp',
]

# These files cannot be built in unified mode because they use FORCE_PR_LOG
SOURCES += [
    'nsDocument.cpp',
    'nsNodeInfoManager.cpp',
]

# These files cannot be built in unified mode because of OS X headers.
SOURCES += [
    'nsContentUtils.cpp',
    'nsObjectLoadingContent.cpp',
]

EXTRA_COMPONENTS += [
    'contentAreaDropListener.js',
    'contentAreaDropListener.manifest',
    'contentSecurityPolicy.manifest',
    'messageWakeupService.js',
    'messageWakeupService.manifest',
]

EXTRA_PP_COMPONENTS += [
    'contentSecurityPolicy.js',
]

EXTRA_JS_MODULES += [
    'CSPUtils.jsm',
]

FAIL_ON_WARNINGS = True

MSVC_ENABLE_PGO = True

include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'gklayout'
LOCAL_INCLUDES += [
    '/caps/include',
    '/content/events/src',
    '/content/html/content/src',
    '/content/html/document/src',
    '/content/xml/content/src',
    '/content/xml/document/src',
    '/content/xul/content/src',
    '/content/xul/document/src',
    '/docshell/base',
    '/dom/base',
    '/dom/ipc',
    '/dom/workers',
    '/dom/xbl',
    '/dom/xslt/xpath',
    '/image/src',
    '/js/ipc',
    '/js/xpconnect/src',
    '/js/xpconnect/wrappers',
    '/layout/base',
    '/layout/generic',
    '/layout/style',
    '/layout/svg',
    '/layout/xul',
    '/netwerk/base/src',
]