Skip to content

Commit

Permalink
Bug 806819 - Part 4: Add files that were excluded from unified builds…
Browse files Browse the repository at this point in the history
… back in. r=ehsan
  • Loading branch information
EricRahm committed Oct 6, 2014
1 parent 512a340 commit 81d6d42
Show file tree
Hide file tree
Showing 30 changed files with 92 additions and 143 deletions.
10 changes: 3 additions & 7 deletions content/base/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if CONFIG['MOZ_WEBRTC']:
'nsDOMDataChannel.h',
'nsDOMDataChannelDeclarations.h',
]
SOURCES += [
UNIFIED_SOURCES += [
'nsDOMDataChannel.cpp',
]
LOCAL_INCLUDES += [
Expand Down Expand Up @@ -122,6 +122,7 @@ UNIFIED_SOURCES += [
'nsCSPService.cpp',
'nsCSPUtils.cpp',
'nsDataDocumentContentPolicy.cpp',
'nsDocument.cpp',
'nsDocumentEncoder.cpp',
'nsDOMAttributeMap.cpp',
'nsDOMBlobBuilder.cpp',
Expand Down Expand Up @@ -150,6 +151,7 @@ UNIFIED_SOURCES += [
'nsMixedContentBlocker.cpp',
'nsNameSpaceManager.cpp',
'nsNoDataProtocolContentPolicy.cpp',
'nsNodeInfoManager.cpp',
'nsNodeUtils.cpp',
'nsPlainTextSerializer.cpp',
'nsPropertyTable.cpp',
Expand Down Expand Up @@ -184,12 +186,6 @@ SOURCES += [
'nsImageLoadingContent.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',
Expand Down
3 changes: 1 addition & 2 deletions content/media/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ UNIFIED_SOURCES += [
'EncodedBufferCache.cpp',
'FileBlockCache.cpp',
"GraphDriver.cpp",
'Latency.cpp',
'MediaCache.cpp',
'MediaData.cpp',
'MediaDecoder.cpp',
Expand Down Expand Up @@ -177,10 +178,8 @@ if CONFIG['OS_TARGET'] == 'WINNT':
SOURCES += [ 'ThreadPoolCOMListener.cpp' ]

# DecoderTraits.cpp needs to be built separately because of Mac OS X headers.
# Latency.cpp needs to be built separately because it forces NSPR logging.
SOURCES += [
'DecoderTraits.cpp',
'Latency.cpp',
]

FAIL_ON_WARNINGS = True
Expand Down
6 changes: 1 addition & 5 deletions docshell/base/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ UNIFIED_SOURCES += [
'LoadInfo.cpp',
'nsAboutRedirector.cpp',
'nsDefaultURIFixup.cpp',
'nsDocShell.cpp',
'nsDocShellEditorData.cpp',
'nsDocShellEnumerator.cpp',
'nsDocShellLoadInfo.cpp',
Expand All @@ -63,11 +64,6 @@ UNIFIED_SOURCES += [
'SerializedLoadContext.cpp',
]

# nsDocShell.cpp cannot be built in unified mode because it forces NSPR logging.
SOURCES += [
'nsDocShell.cpp',
]

FAIL_ON_WARNINGS = True

MSVC_ENABLE_PGO = True
Expand Down
3 changes: 1 addition & 2 deletions dom/base/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ UNIFIED_SOURCES += [
'nsGlobalWindowCommands.cpp',
'nsHistory.cpp',
'nsIGlobalObject.cpp',
'nsJSEnvironment.cpp',
'nsJSTimeoutHandler.cpp',
'nsJSUtils.cpp',
'nsLocation.cpp',
Expand Down Expand Up @@ -123,8 +124,6 @@ SOURCES += [
'nsDOMWindowUtils.cpp',
# This file has a #error "Never include windows.h in this file!"
'nsGlobalWindow.cpp',
# This file forces NSPR logging.
'nsJSEnvironment.cpp',
# nsPluginArray.cpp includes npapi.h indirectly, and that includes a lot of system headers
'nsPluginArray.cpp',
]
Expand Down
2 changes: 1 addition & 1 deletion dom/ipc/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ UNIFIED_SOURCES += [
]

# Blob.cpp cannot be compiled in unified mode because it triggers a fatal gcc warning.
# ContentChild.cpp cannot be compiled in unified mode because it forces NSPR logging.
# CrashReporterChild.cpp cannot be compiled in unified mode because of name clashes
# in OS X headers.
# ContentChild.cpp cannot be compiled in unified mode on linux due to Time conflict
SOURCES += [
'Blob.cpp',
'ContentChild.cpp',
Expand Down
13 changes: 6 additions & 7 deletions dom/plugins/base/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,19 @@ EXPORTS.mozilla += [

UNIFIED_SOURCES += [
'nsJSNPRuntime.cpp',
'nsNPAPIPluginInstance.cpp',
'nsNPAPIPluginStreamListener.cpp',
'nsPluginInstanceOwner.cpp',
'nsPluginModule.cpp',
'nsPluginPlayPreviewInfo.cpp',
'nsPluginStreamListenerPeer.cpp',
'nsPluginTags.cpp',
'PluginPRLibrary.cpp',
]

# These files cannot be built in unified mode because they force NSPR logging.
SOURCES += [
'nsNPAPIPlugin.cpp',
'nsNPAPIPluginInstance.cpp',
'nsNPAPIPluginStreamListener.cpp',
'nsPluginHost.cpp',
'nsPluginStreamListenerPeer.cpp',
'nsPluginTags.cpp',
'nsNPAPIPlugin.cpp', # Conflict with X11 headers
'nsPluginHost.cpp', # Conflict with NS_NPAPIPLUGIN_CALLBACK
]

if CONFIG['OS_ARCH'] == 'WINNT':
Expand Down
23 changes: 12 additions & 11 deletions dom/plugins/ipc/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,14 @@ if CONFIG['OS_ARCH'] == 'WINNT':
EXPORTS.mozilla.plugins += [
'PluginSurfaceParent.h',
]
# These files cannot be built in unified mode because they force NSPR logging.
SOURCES += [
UNIFIED_SOURCES += [
'COMMessageFilter.cpp',
'MiniShmParent.cpp',
'PluginHangUIParent.cpp',
'PluginSurfaceParent.cpp',
]
SOURCES += [
'MiniShmParent.cpp', # Issues with CreateEvent
]
DEFINES['MOZ_HANGUI_PROCESS_NAME'] = '"plugin-hang-ui%s"' % CONFIG['BIN_SUFFIX']
LOCAL_INCLUDES += [
'/widget/shared',
Expand All @@ -68,24 +69,20 @@ if CONFIG['MOZ_ENABLE_QT']:
GENERATED_SOURCES += [
'moc_NestedLoopTimer.cpp',
]
# These files cannot be built in unified mode because they force NSPR logging.
SOURCES += [
UNIFIED_SOURCES += [
'NestedLoopTimer.cpp',
]

# These files cannot be built in unified mode because they force NSPR logging.
SOURCES += [
UNIFIED_SOURCES += [
'BrowserStreamChild.cpp',
'BrowserStreamParent.cpp',
'ChildAsyncCall.cpp',
'ChildTimer.cpp',
'PluginBackgroundDestroyer.cpp',
'PluginIdentifierChild.cpp',
'PluginIdentifierParent.cpp',
'PluginInstanceChild.cpp',
'PluginInstanceParent.cpp',
'PluginMessageUtils.cpp',
'PluginModuleChild.cpp',
'PluginModuleParent.cpp',
'PluginProcessChild.cpp',
'PluginProcessParent.cpp',
Expand All @@ -95,9 +92,13 @@ SOURCES += [
'PluginStreamParent.cpp',
]

SOURCES += [
'PluginInstanceChild.cpp', # 'PluginThreadCallback' : ambiguous symbol
'PluginModuleChild.cpp', # Redefinition of mozilla::WindowsDllInterceptor sUser32Intercept
]

if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
# These files cannot be built in unified mode because they force NSPR logging.
SOURCES += [
UNIFIED_SOURCES += [
'PluginInterposeOSX.mm',
'PluginUtilsOSX.mm',
]
Expand Down
11 changes: 7 additions & 4 deletions extensions/auth/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
# 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/.

UNIFIED_SOURCES += [
'nsAuthFactory.cpp',
'nsAuthGSSAPI.cpp',
]

SOURCES += [
'nsAuthFactory.cpp', # forces NSPR logging
'nsAuthGSSAPI.cpp', # forces NSPR logging
'nsAuthSASL.cpp',
'nsHttpNegotiateAuth.cpp', # contains constants whose names conflict with constants in other files
]
Expand All @@ -17,8 +20,8 @@ if CONFIG['OS_ARCH'] == 'WINNT':
]
DEFINES['USE_SSPI'] = True
else:
SOURCES += [
'nsAuthSambaNTLM.cpp', # forces NSPR logging
UNIFIED_SOURCES += [
'nsAuthSambaNTLM.cpp',
]

FINAL_LIBRARY = 'xul'
3 changes: 1 addition & 2 deletions extensions/pref/autoconfig/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
# 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/.

# These files cannot be built in unified mode because they force NSPR logging.
SOURCES += [
UNIFIED_SOURCES += [
'nsAutoConfig.cpp',
'nsConfigFactory.cpp',
'nsJSConfigTriggers.cpp',
Expand Down
26 changes: 10 additions & 16 deletions gfx/thebes/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
'gfxWindowsPlatform.h',
'gfxWindowsSurface.h',
]
# gfxGDIFontList.cpp forces NSPR logging, so it cannot be built in unified mode.
SOURCES += [
'gfxGDIFont.cpp',
'gfxGDIFontList.cpp',
Expand All @@ -179,11 +178,12 @@ elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
'gfxWindowsSurface.cpp',
]
if CONFIG['MOZ_ENABLE_DWRITE_FONT']:
# gfxDWriteFontList.cpp forces NSPR logging, so it cannot be built in unified mode.
UNIFIED_SOURCES += [
'gfxDWriteFontList.cpp',
]
SOURCES += [
'gfxD2DSurface.cpp',
'gfxDWriteCommon.cpp',
'gfxDWriteFontList.cpp',
'gfxDWriteFonts.cpp',
]
if CONFIG['MOZ_ENABLE_DIRECT2D1_1']:
Expand All @@ -204,19 +204,9 @@ SOURCES += [
# we could consider removing soon (affects Ubuntus older than 10.04 LTS)
# which currently prevent it from joining UNIFIED_SOURCES.
'gfxDrawable.cpp',
# Uses FORCE_PR_LOG
'gfxFont.cpp',
# Uses FORCE_PR_LOG
'gfxFontEntry.cpp',
# Uses FORCE_PR_LOG
'gfxFontUtils.cpp',
# Includes mac system header conflicting with point/size, and also uses FORCE_PR_LOG
# gfxPlatform.cpp includes mac system header conflicting with point/size
'gfxPlatform.cpp',
# Uses FORCE_PR_LOG
'gfxPlatformFontList.cpp',
'gfxPrefs.cpp',
# Uses FORCE_PR_LOG
'gfxUserFontSet.cpp',
]

UNIFIED_SOURCES += [
Expand All @@ -226,10 +216,13 @@ UNIFIED_SOURCES += [
'gfxBaseSharedMemorySurface.cpp',
'gfxBlur.cpp',
'gfxContext.cpp',
'gfxFont.cpp',
'gfxFontEntry.cpp',
'gfxFontFeatures.cpp',
'gfxFontInfoLoader.cpp',
'gfxFontMissingGlyphs.cpp',
'gfxFontTest.cpp',
'gfxFontUtils.cpp',
'gfxGlyphExtents.cpp',
'gfxGradientCache.cpp',
'gfxGraphiteShaper.cpp',
Expand All @@ -238,6 +231,7 @@ UNIFIED_SOURCES += [
'gfxMathTable.cpp',
'gfxMatrix.cpp',
'gfxPattern.cpp',
'gfxPlatformFontList.cpp',
'gfxRect.cpp',
'gfxReusableImageSurfaceWrapper.cpp',
'gfxReusableSharedImageSurfaceWrapper.cpp',
Expand All @@ -246,14 +240,14 @@ UNIFIED_SOURCES += [
'gfxSVGGlyphs.cpp',
'gfxTeeSurface.cpp',
'gfxTextRun.cpp',
'gfxUserFontSet.cpp',
'gfxUtils.cpp',
'nsSurfaceTexture.cpp',
'nsUnicodeRange.cpp',
]

if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
# gfxMacPlatformFontList.mm forces NSPR logging so it cannot be built in unified mode.
SOURCES += [
UNIFIED_SOURCES += [
'gfxMacPlatformFontList.mm',
]

Expand Down
1 change: 0 additions & 1 deletion js/xpconnect/loader/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# These files cannot be built in unified mode because they rely on plarena.h
# and they want to force NSPR logging.
SOURCES += [
'mozJSComponentLoader.cpp',
'mozJSLoaderUtils.cpp',
Expand Down
6 changes: 2 additions & 4 deletions layout/base/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,15 @@ UNIFIED_SOURCES += [
'nsCSSRenderingBorders.cpp',
'nsDisplayList.cpp',
'nsDisplayListInvalidation.cpp',
'nsDocumentViewer.cpp',
'nsFrameManager.cpp',
'nsFrameTraversal.cpp',
'nsGenConList.cpp',
'nsLayoutDebugger.cpp',
'nsLayoutHistoryState.cpp',
'nsLayoutUtils.cpp',
'nsPresContext.cpp',
'nsPresShell.cpp',
'nsQuoteList.cpp',
'nsStyleChangeList.cpp',
'nsStyleSheetService.cpp',
Expand All @@ -99,14 +101,10 @@ UNIFIED_SOURCES += [
'TouchCaret.cpp',
]

# nsDocumentViewer.cpp and nsPresShell.cpp need to be built separately
# because they force NSPR logging.
# nsPresArena.cpp needs to be built separately because it uses plarena.h.
# nsRefreshDriver.cpp needs to be built separately because of name clashes in the OS X headers
SOURCES += [
'nsDocumentViewer.cpp',
'nsPresArena.cpp',
'nsPresShell.cpp',
'nsRefreshDriver.cpp',
]

Expand Down
8 changes: 2 additions & 6 deletions layout/printing/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,10 @@ XPIDL_MODULE = 'layout_printing'

UNIFIED_SOURCES += [
'nsPagePrintTimer.cpp',
'nsPrintObject.cpp',
'nsPrintPreviewListener.cpp',
]

# These files cannot be built in unified mode because they force NSPR logging.
SOURCES += [
'nsPrintData.cpp',
'nsPrintEngine.cpp',
'nsPrintObject.cpp',
'nsPrintPreviewListener.cpp',
]

FAIL_ON_WARNINGS = True
Expand Down
5 changes: 2 additions & 3 deletions layout/style/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ UNIFIED_SOURCES += [
'nsDOMCSSRect.cpp',
'nsDOMCSSRGBColor.cpp',
'nsDOMCSSValueList.cpp',
'nsFontFaceLoader.cpp',
'nsHTMLCSSStyleSheet.cpp',
'nsHTMLStyleSheet.cpp',
'nsLayoutStylesheetCache.cpp',
Expand All @@ -137,13 +138,11 @@ UNIFIED_SOURCES += [
'SVGAttrAnimationRuleProcessor.cpp',
]

# FontFaceSet.cpp needs to be built separately because it redefines LOG.
# nsCSSRuleProcessor.cpp needs to be built separately because it uses plarena.h.
# FontFaceSet.cpp and nsFontFaceLoader.cpp need to be built separately because
# they force NSPR logging.
SOURCES += [
'FontFaceSet.cpp',
'nsCSSRuleProcessor.cpp',
'nsFontFaceLoader.cpp',
]

FAIL_ON_WARNINGS = True
Expand Down
Loading

0 comments on commit 81d6d42

Please sign in to comment.