Issue #80 - Re-unify most of DOM

This commit is contained in:
Moonchild 2022-09-07 12:47:24 +00:00 committed by roytam1
commit 60e4e33442
16 changed files with 29 additions and 34 deletions

View file

@ -222,7 +222,7 @@ EXPORTS.mozilla.dom += [
'WindowOrientationObserver.h',
]
SOURCES += [
UNIFIED_SOURCES += [
'AnonymousContent.cpp',
'Attr.cpp',
'BarProps.cpp',
@ -238,7 +238,6 @@ SOURCES += [
'DirectionalityUtils.cpp',
'DocGroup.cpp',
'DocumentFragment.cpp',
'DocumentOrShadowRoot.cpp',
'DocumentType.cpp',
'DOMCursor.cpp',
'DOMError.cpp',
@ -373,12 +372,14 @@ SOURCES += [
]
if CONFIG['MOZ_WEBRTC']:
SOURCES += [
UNIFIED_SOURCES += [
'nsDOMDataChannel.cpp',
]
# these files couldn't be in UNIFIED_SOURCES for now for reasons given below:
SOURCES += [
# DocumentOrShadowRoot conflicts with mozilla::dom::ShadowRoot
'DocumentOrShadowRoot.cpp',
# Several conflicts with other bindings.
'DOMIntersectionObserver.cpp',
# Because of OS X headers.

View file

@ -6,9 +6,6 @@
#include "ImageBitmapColorUtils.h"
#include "js/LegacyIntTypes.h"
#include <cmath>
namespace mozilla {
namespace dom {

View file

@ -41,7 +41,7 @@ EXPORTS.mozilla.dom += [
]
# Canvas 2D and common sources
SOURCES += [
UNIFIED_SOURCES += [
'CanvasImageCache.cpp',
'CanvasRenderingContext2D.cpp',
'CanvasRenderingContextHelper.cpp',
@ -59,7 +59,7 @@ SOURCES += [
]
# WebGL Sources
SOURCES += [
UNIFIED_SOURCES += [
'TexUnpackBlob.cpp',
'WebGL1Context.cpp',
'WebGL1ContextUniforms.cpp',

View file

@ -19,14 +19,9 @@ EXPORTS.mozilla.dom += [
]
UNIFIED_SOURCES += [
'ChannelInfo.cpp',
'Fetch.cpp',
'FetchConsumer.cpp',
'Request.cpp',
'Response.cpp',
]
SOURCES += [
'ChannelInfo.cpp',
'FetchDriver.cpp',
'FetchObserver.cpp',
'FetchUtil.cpp',
@ -34,6 +29,8 @@ SOURCES += [
'InternalHeaders.cpp',
'InternalRequest.cpp',
'InternalResponse.cpp',
'Request.cpp',
'Response.cpp',
]
IPDL_SOURCES += [

View file

@ -30,7 +30,7 @@ if CONFIG['MOZ_GAMEPAD']:
'ipc/GamepadTestChannelParent.h'
]
SOURCES = [
UNIFIED_SOURCES = [
'Gamepad.cpp',
'GamepadButton.cpp',
'GamepadManager.cpp',
@ -45,23 +45,23 @@ if CONFIG['MOZ_GAMEPAD']:
]
if CONFIG['MOZ_GAMEPAD_BACKEND'] == 'stub':
SOURCES += [
UNIFIED_SOURCES += [
'fallback/FallbackGamepad.cpp'
]
elif CONFIG['MOZ_GAMEPAD_BACKEND'] == 'cocoa':
SOURCES += [
UNIFIED_SOURCES += [
'cocoa/CocoaGamepad.cpp'
]
elif CONFIG['MOZ_GAMEPAD_BACKEND'] == 'windows':
SOURCES += [
UNIFIED_SOURCES += [
'windows/WindowsGamepad.cpp'
]
elif CONFIG['MOZ_GAMEPAD_BACKEND'] == 'linux':
SOURCES += [
UNIFIED_SOURCES += [
'linux/LinuxGamepad.cpp'
]
elif CONFIG['MOZ_GAMEPAD_BACKEND'] == 'android':
SOURCES += [
UNIFIED_SOURCES += [
'android/AndroidGamepad.cpp'
]

View file

@ -22,7 +22,7 @@ EXPORTS.mozilla += [
'EMEUtils.h',
]
SOURCES += [
UNIFIED_SOURCES += [
'CDMCaps.cpp',
'DetailedPromise.cpp',
'EMEUtils.cpp',

View file

@ -15,7 +15,7 @@ EXPORTS += [
'TrackMetadataBase.h',
]
SOURCES += [
UNIFIED_SOURCES += [
'MediaEncoder.cpp',
'OpusTrackEncoder.cpp',
'TrackEncoder.cpp',
@ -25,7 +25,7 @@ if CONFIG['MOZ_WEBM_ENCODER']:
EXPORTS += ['VP8TrackEncoder.h',
]
SOURCES += ['VP8TrackEncoder.cpp',
UNIFIED_SOURCES += ['VP8TrackEncoder.cpp',
]
LOCAL_INCLUDES += ['/media/libyuv/include']

View file

@ -79,14 +79,14 @@ if CONFIG['MOZ_EME']:
# We link GMPLoader into xul on B2G/Fennec as its code does not need to be
# covered by a DRM vendor's voucher.
if CONFIG['OS_TARGET'] == 'Android':
SOURCES += [
UNIFIED_SOURCES += [
'GMPLoader.cpp',
]
USE_LIBS += [
'rlz',
]
SOURCES += [
UNIFIED_SOURCES += [
'GMPAudioDecoderChild.cpp',
'GMPAudioDecoderParent.cpp',
'GMPAudioHost.cpp',
@ -122,7 +122,7 @@ SOURCES += [
]
if CONFIG['MOZ_EME']:
SOURCES += [
UNIFIED_SOURCES += [
'GMPCDMCallbackProxy.cpp',
'GMPCDMProxy.cpp',
]

View file

@ -10,7 +10,7 @@ EXPORTS += [
'SamplesWaitingForKey.h',
]
SOURCES += [
UNIFIED_SOURCES += [
'EMEAudioDecoder.cpp',
'EMEDecoderModule.cpp',
'EMEVideoDecoder.cpp',

View file

@ -10,7 +10,7 @@ EXPORTS += [
'MediaDataDecoderProxy.h',
]
SOURCES += [
UNIFIED_SOURCES += [
'GMPAudioDecoder.cpp',
'GMPDecoderModule.cpp',
'GMPVideoDecoder.cpp',

View file

@ -15,7 +15,7 @@ DIRS += [
'ffmpeg58',
]
SOURCES += [
UNIFIED_SOURCES += [
'FFmpegRuntimeLinker.cpp',
]

View file

@ -74,7 +74,7 @@ EXPORTS.mozilla.dom += [
'WaveShaperNode.h',
]
SOURCES += [
UNIFIED_SOURCES += [
'AnalyserNode.cpp',
'AudioBlock.cpp',
'AudioBuffer.cpp',

View file

@ -19,7 +19,7 @@ EXPORTS.mozilla.dom += [
'SpeechSynthesisVoice.h',
]
SOURCES += [
UNIFIED_SOURCES += [
'ipc/SpeechSynthesisChild.cpp',
'ipc/SpeechSynthesisParent.cpp',
'nsSpeechTask.cpp',

View file

@ -5,7 +5,7 @@
Program('plugin-hang-ui')
SOURCES += [
UNIFIED_SOURCES += [
'MiniShmChild.cpp',
'PluginHangUIChild.cpp',
]

View file

@ -5,7 +5,7 @@
SharedLibrary('plugin_child_interpose')
SOURCES += [ "%s.mm" % (LIBRARY_NAME) ]
UNIFIED_SOURCES += [ "%s.mm" % (LIBRARY_NAME) ]
OS_LIBS += ['-framework Carbon']

View file

@ -18,7 +18,7 @@ if CONFIG['MOZ_XUL']:
'nsIXULDocument.h',
]
SOURCES += [
UNIFIED_SOURCES += [
'nsXULCommandDispatcher.cpp',
'nsXULContentSink.cpp',
'nsXULElement.cpp',