This CL makes the WebRTC more modular and allows the users to build WebRTC without audio and video(DataChannel only). The BUILD files in call/, logging/, media/ and pc/ are modified to support modular WebRTC. The dependencies on Call and RtcEventLog are removed from the PeerConnection. Instead of being created internally, they would be passed in by the PeerConnectionFactory. Add the CreateModularPeerConnectionFactory function which allow the users to create a PeerConnectionFactory with the modules they need. If the users want to build WebRTC without audio and video, they can pass in null pointers for modules they don't need. (MediaEngine, VideoEncoderFactory etc.) BUG=webrtc:7613 Review-Url: https://codereview.webrtc.org/2854123003 Cr-Commit-Position: refs/heads/master@{#18617}
32 lines
927 B
Python
32 lines
927 B
Python
include_rules = [
|
|
"+third_party/libyuv",
|
|
"+webrtc/base",
|
|
"+webrtc/common_video",
|
|
"+webrtc/media",
|
|
"+webrtc/p2p",
|
|
"+webrtc/pc",
|
|
]
|
|
|
|
specific_include_rules = {
|
|
"peerconnection_jni\.cc": [
|
|
"+webrtc/voice_engine",
|
|
],
|
|
|
|
# TODO(ossu): Remove this exception when {builtin_,}audio_encoder_factory.h
|
|
# has moved to api/.
|
|
"peerconnectioninterface\.h": [
|
|
"+webrtc/call/callfactoryinterface.h",
|
|
"+webrtc/logging/rtc_event_log/rtc_event_log_factory_interface.h",
|
|
"+webrtc/modules/audio_coding/codecs/audio_encoder_factory.h",
|
|
"+webrtc/modules/audio_coding/codecs/builtin_audio_encoder_factory.h",
|
|
],
|
|
|
|
# We allow .cc files in webrtc/api/ to #include a bunch of stuff
|
|
# that's off-limits for the .h files. That's because .h files leak
|
|
# their #includes to whoever's #including them, but .cc files do not
|
|
# since no one #includes them.
|
|
".*\.cc": [
|
|
"+webrtc/modules/audio_coding",
|
|
],
|
|
}
|