content/base/src/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/base/src/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,237 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +EXPORTS += [
    1.11 +    'mozAutoDocUpdate.h',
    1.12 +    'nsAtomListUtils.h',
    1.13 +    'nsAttrAndChildArray.h',
    1.14 +    'nsAttrName.h',
    1.15 +    'nsAttrValue.h',
    1.16 +    'nsAttrValueInlines.h',
    1.17 +    'nsContentList.h',
    1.18 +    'nsContentListDeclarations.h',
    1.19 +    'nsContentSink.h',
    1.20 +    'nsCrossSiteListenerProxy.h',
    1.21 +    'nsDOMAttributeMap.h',
    1.22 +    'nsFrameMessageManager.h',
    1.23 +    'nsGenericDOMDataNode.h',
    1.24 +    'nsGkAtomList.h',
    1.25 +    'nsGkAtoms.h',
    1.26 +    'nsImageLoadingContent.h',
    1.27 +    'nsMappedAttributeElement.h',
    1.28 +    'nsNodeInfoManager.h',
    1.29 +    'nsNodeUtils.h',
    1.30 +    'nsPropertyTable.h',
    1.31 +    'nsRange.h',
    1.32 +    'nsSandboxFlags.h',
    1.33 +    'nsScriptLoader.h',
    1.34 +    'nsStubDocumentObserver.h',
    1.35 +    'nsStubMutationObserver.h',
    1.36 +    'nsStyledElement.h',
    1.37 +    'nsTextFragment.h',
    1.38 +    'nsTraversal.h',
    1.39 +]
    1.40 +
    1.41 +if CONFIG['MOZ_WEBRTC']:
    1.42 +    EXPORTS += [
    1.43 +        'nsDOMDataChannel.h',
    1.44 +        'nsDOMDataChannelDeclarations.h',
    1.45 +    ]
    1.46 +    SOURCES += [
    1.47 +        'nsDOMDataChannel.cpp',
    1.48 +    ]
    1.49 +    LOCAL_INCLUDES += [
    1.50 +        '/netwerk/sctp/datachannel',
    1.51 +    ]
    1.52 +
    1.53 +# Are we targeting x86-32 or x86-64?  If so, we want to include SSE2 code for
    1.54 +# nsTextFragment.cpp
    1.55 +if CONFIG['INTEL_ARCHITECTURE']:
    1.56 +    SOURCES += ['nsTextFragmentSSE2.cpp']
    1.57 +    SOURCES['nsTextFragmentSSE2.cpp'].flags += CONFIG['SSE2_FLAGS']
    1.58 +
    1.59 +EXPORTS.mozilla += [
    1.60 +    'FeedWriterEnabled.h',
    1.61 +]
    1.62 +
    1.63 +EXPORTS.mozilla.dom += [
    1.64 +    'Attr.h',
    1.65 +    'Comment.h',
    1.66 +    'DocumentFragment.h',
    1.67 +    'DocumentType.h',
    1.68 +    'DOMImplementation.h',
    1.69 +    'DOMParser.h',
    1.70 +    'DOMPoint.h',
    1.71 +    'DOMQuad.h',
    1.72 +    'DOMRect.h',
    1.73 +    'DOMStringList.h',
    1.74 +    'EventSource.h',
    1.75 +    'Link.h',
    1.76 +    'NodeIterator.h',
    1.77 +    'ShadowRoot.h',
    1.78 +    'StyleSheetList.h',
    1.79 +    'Text.h',
    1.80 +    'TreeWalker.h',
    1.81 +]
    1.82 +
    1.83 +UNIFIED_SOURCES += [
    1.84 +    'Attr.cpp',
    1.85 +    'ChildIterator.cpp',
    1.86 +    'Comment.cpp',
    1.87 +    'DirectionalityUtils.cpp',
    1.88 +    'DocumentFragment.cpp',
    1.89 +    'DocumentType.cpp',
    1.90 +    'DOMImplementation.cpp',
    1.91 +    'DOMParser.cpp',
    1.92 +    'DOMPoint.cpp',
    1.93 +    'DOMQuad.cpp',
    1.94 +    'DOMRect.cpp',
    1.95 +    'DOMStringList.cpp',
    1.96 +    'Element.cpp',
    1.97 +    'EventSource.cpp',
    1.98 +    'FileIOObject.cpp',
    1.99 +    'FragmentOrElement.cpp',
   1.100 +    'Link.cpp',
   1.101 +    'NodeIterator.cpp',
   1.102 +    'nsAtomListUtils.cpp',
   1.103 +    'nsAttrAndChildArray.cpp',
   1.104 +    'nsAttrValue.cpp',
   1.105 +    'nsAttrValueOrString.cpp',
   1.106 +    'nsCCUncollectableMarker.cpp',
   1.107 +    'nsChannelPolicy.cpp',
   1.108 +    'nsContentAreaDragDrop.cpp',
   1.109 +    'nsContentIterator.cpp',
   1.110 +    'nsContentList.cpp',
   1.111 +    'nsContentPolicy.cpp',
   1.112 +    'nsContentSink.cpp',
   1.113 +    'nsCopySupport.cpp',
   1.114 +    'nsCrossSiteListenerProxy.cpp',
   1.115 +    'nsCSPService.cpp',
   1.116 +    'nsDataDocumentContentPolicy.cpp',
   1.117 +    'nsDocumentEncoder.cpp',
   1.118 +    'nsDOMAttributeMap.cpp',
   1.119 +    'nsDOMBlobBuilder.cpp',
   1.120 +    'nsDOMCaretPosition.cpp',
   1.121 +    'nsDOMFile.cpp',
   1.122 +    'nsDOMFileReader.cpp',
   1.123 +    'nsDOMMutationObserver.cpp',
   1.124 +    'nsDOMSerializer.cpp',
   1.125 +    'nsDOMSettableTokenList.cpp',
   1.126 +    'nsDOMTokenList.cpp',
   1.127 +    'nsFormData.cpp',
   1.128 +    'nsFrameLoader.cpp',
   1.129 +    'nsFrameMessageManager.cpp',
   1.130 +    'nsGenConImageContent.cpp',
   1.131 +    'nsGenericDOMDataNode.cpp',
   1.132 +    'nsGkAtoms.cpp',
   1.133 +    'nsHostObjectProtocolHandler.cpp',
   1.134 +    'nsHostObjectURI.cpp',
   1.135 +    'nsHTMLContentSerializer.cpp',
   1.136 +    'nsImageLoadingContent.cpp',
   1.137 +    'nsINode.cpp',
   1.138 +    'nsInProcessTabChildGlobal.cpp',
   1.139 +    'nsLineBreaker.cpp',
   1.140 +    'nsMappedAttributeElement.cpp',
   1.141 +    'nsMappedAttributes.cpp',
   1.142 +    'nsMixedContentBlocker.cpp',
   1.143 +    'nsNameSpaceManager.cpp',
   1.144 +    'nsNoDataProtocolContentPolicy.cpp',
   1.145 +    'nsNodeInfo.cpp',
   1.146 +    'nsNodeUtils.cpp',
   1.147 +    'nsPlainTextSerializer.cpp',
   1.148 +    'nsPropertyTable.cpp',
   1.149 +    'nsRange.cpp',
   1.150 +    'nsReferencedElement.cpp',
   1.151 +    'nsScriptElement.cpp',
   1.152 +    'nsScriptLoader.cpp',
   1.153 +    'nsStubDocumentObserver.cpp',
   1.154 +    'nsStubMutationObserver.cpp',
   1.155 +    'nsStyledElement.cpp',
   1.156 +    'nsStyleLinkElement.cpp',
   1.157 +    'nsSyncLoadService.cpp',
   1.158 +    'nsTextFragment.cpp',
   1.159 +    'nsTextNode.cpp',
   1.160 +    'nsTraversal.cpp',
   1.161 +    'nsTreeSanitizer.cpp',
   1.162 +    'nsViewportInfo.cpp',
   1.163 +    'nsXHTMLContentSerializer.cpp',
   1.164 +    'nsXMLContentSerializer.cpp',
   1.165 +    'nsXMLHttpRequest.cpp',
   1.166 +    'nsXMLNameSpaceMap.cpp',
   1.167 +    'ShadowRoot.cpp',
   1.168 +    'StyleSheetList.cpp',
   1.169 +    'Text.cpp',
   1.170 +    'ThirdPartyUtil.cpp',
   1.171 +    'TreeWalker.cpp',
   1.172 +    'WebSocket.cpp',
   1.173 +]
   1.174 +
   1.175 +# These files cannot be built in unified mode because they use FORCE_PR_LOG
   1.176 +SOURCES += [
   1.177 +    'nsDocument.cpp',
   1.178 +    'nsNodeInfoManager.cpp',
   1.179 +]
   1.180 +
   1.181 +# These files cannot be built in unified mode because of OS X headers.
   1.182 +SOURCES += [
   1.183 +    'nsContentUtils.cpp',
   1.184 +    'nsObjectLoadingContent.cpp',
   1.185 +]
   1.186 +
   1.187 +EXTRA_COMPONENTS += [
   1.188 +    'contentAreaDropListener.js',
   1.189 +    'contentAreaDropListener.manifest',
   1.190 +    'contentSecurityPolicy.manifest',
   1.191 +    'messageWakeupService.js',
   1.192 +    'messageWakeupService.manifest',
   1.193 +]
   1.194 +
   1.195 +EXTRA_PP_COMPONENTS += [
   1.196 +    'contentSecurityPolicy.js',
   1.197 +]
   1.198 +
   1.199 +EXTRA_JS_MODULES += [
   1.200 +    'CSPUtils.jsm',
   1.201 +]
   1.202 +
   1.203 +FAIL_ON_WARNINGS = True
   1.204 +
   1.205 +MSVC_ENABLE_PGO = True
   1.206 +
   1.207 +include('/ipc/chromium/chromium-config.mozbuild')
   1.208 +
   1.209 +FINAL_LIBRARY = 'gklayout'
   1.210 +LOCAL_INCLUDES += [
   1.211 +    '/caps/include',
   1.212 +    '/content/html/content/src',
   1.213 +    '/content/html/document/src',
   1.214 +    '/content/svg/content/src',
   1.215 +    '/content/xml/content/src',
   1.216 +    '/content/xml/document/src',
   1.217 +    '/content/xul/content/src',
   1.218 +    '/content/xul/document/src',
   1.219 +    '/docshell/base',
   1.220 +    '/dom/base',
   1.221 +    '/dom/ipc',
   1.222 +    '/dom/workers',
   1.223 +    '/dom/xbl',
   1.224 +    '/dom/xslt/xpath',
   1.225 +    '/image/src',
   1.226 +    '/js/ipc',
   1.227 +    '/js/xpconnect/src',
   1.228 +    '/js/xpconnect/wrappers',
   1.229 +    '/layout/base',
   1.230 +    '/layout/generic',
   1.231 +    '/layout/style',
   1.232 +    '/layout/svg',
   1.233 +    '/layout/xul',
   1.234 +    '/netwerk/base/src',
   1.235 +    '/xpcom/ds',
   1.236 +]
   1.237 +
   1.238 +if CONFIG['GNU_CC'] and CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
   1.239 +    # Work around bug 986928
   1.240 +    CXXFLAGS += ['-Wno-error=format']

mercurial