2018-10-26 13:17:47 +02:00
|
|
|
# This is supposed to be a complete list of top-level directories,
|
|
|
|
|
# excepting only api/ itself.
|
2016-03-17 12:05:36 +01:00
|
|
|
include_rules = [
|
2018-10-24 13:57:25 +02:00
|
|
|
"-audio",
|
|
|
|
|
"-base",
|
|
|
|
|
"-build",
|
|
|
|
|
"-buildtools",
|
|
|
|
|
"-build_overrides",
|
|
|
|
|
"-call",
|
|
|
|
|
"-common_audio",
|
|
|
|
|
"-common_video",
|
|
|
|
|
"-data",
|
|
|
|
|
"-examples",
|
2022-09-21 15:20:22 +02:00
|
|
|
"-experiments",
|
2021-03-01 17:30:29 +01:00
|
|
|
"-g3doc",
|
2018-10-24 15:53:33 +02:00
|
|
|
"-ios",
|
2018-10-24 13:57:25 +02:00
|
|
|
"-infra",
|
|
|
|
|
"-logging",
|
|
|
|
|
"-media",
|
2021-03-25 13:11:03 +01:00
|
|
|
"-net",
|
2018-10-24 13:57:25 +02:00
|
|
|
"-modules",
|
|
|
|
|
"-out",
|
|
|
|
|
"-p2p",
|
|
|
|
|
"-pc",
|
|
|
|
|
"-resources",
|
|
|
|
|
"-rtc_base",
|
|
|
|
|
"-rtc_tools",
|
|
|
|
|
"-sdk",
|
|
|
|
|
"-stats",
|
|
|
|
|
"-style-guide",
|
|
|
|
|
"-system_wrappers",
|
|
|
|
|
"-test",
|
|
|
|
|
"-testing",
|
|
|
|
|
"-third_party",
|
|
|
|
|
"-tools",
|
|
|
|
|
"-tools_webrtc",
|
|
|
|
|
"-video",
|
|
|
|
|
"-external/webrtc/webrtc", # Android platform build.
|
|
|
|
|
"-libyuv",
|
|
|
|
|
"-common_types.h",
|
|
|
|
|
"-WebRTC",
|
2016-03-17 12:05:36 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
specific_include_rules = {
|
2018-10-24 13:57:25 +02:00
|
|
|
# Some internal headers are allowed even in API headers:
|
2021-05-31 14:02:28 +02:00
|
|
|
|
|
|
|
|
"call_factory_interface\.h": [
|
|
|
|
|
"+call/rtp_transport_controller_send_factory_interface.h",
|
|
|
|
|
],
|
|
|
|
|
|
2018-10-24 13:57:25 +02:00
|
|
|
".*\.h": [
|
2024-04-19 15:07:08 +00:00
|
|
|
"+rtc_base/arraysize.h",
|
2018-10-24 13:57:25 +02:00
|
|
|
"+rtc_base/checks.h",
|
|
|
|
|
"+rtc_base/system/rtc_export.h",
|
2019-11-04 16:31:08 +01:00
|
|
|
"+rtc_base/system/rtc_export_template.h",
|
2018-11-19 11:17:12 +01:00
|
|
|
"+rtc_base/units/unit_base.h",
|
2018-10-24 13:57:25 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
|
|
"array_view\.h": [
|
|
|
|
|
"+rtc_base/type_traits.h",
|
|
|
|
|
],
|
|
|
|
|
|
2017-06-30 04:23:22 -07:00
|
|
|
# Needed because AudioEncoderOpus is in the wrong place for
|
|
|
|
|
# backwards compatibilty reasons. See
|
|
|
|
|
# https://bugs.chromium.org/p/webrtc/issues/detail?id=7847
|
|
|
|
|
"audio_encoder_opus\.h": [
|
2017-09-15 06:47:31 +02:00
|
|
|
"+modules/audio_coding/codecs/opus/audio_encoder_opus.h",
|
2017-06-30 04:23:22 -07:00
|
|
|
],
|
|
|
|
|
|
2019-01-11 09:11:00 -08:00
|
|
|
"async_resolver_factory\.h": [
|
|
|
|
|
"+rtc_base/async_resolver_interface.h",
|
2018-10-24 13:57:25 +02:00
|
|
|
],
|
|
|
|
|
|
2021-03-24 12:13:28 +00:00
|
|
|
"async_dns_resolver\.h": [
|
|
|
|
|
"+rtc_base/socket_address.h",
|
|
|
|
|
],
|
|
|
|
|
|
2024-04-19 19:46:03 +00:00
|
|
|
"audio_device_defines\.h": [
|
|
|
|
|
"+rtc_base/strings/string_builder.h",
|
|
|
|
|
],
|
|
|
|
|
|
2018-10-24 13:57:25 +02:00
|
|
|
"candidate\.h": [
|
|
|
|
|
"+rtc_base/network_constants.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"+rtc_base/socket_address.h",
|
2018-10-24 13:57:25 +02:00
|
|
|
],
|
|
|
|
|
|
2019-01-11 09:11:00 -08:00
|
|
|
"data_channel_interface\.h": [
|
|
|
|
|
"+rtc_base/copy_on_write_buffer.h",
|
2018-10-24 13:57:25 +02:00
|
|
|
],
|
|
|
|
|
|
2019-08-01 10:48:20 -07:00
|
|
|
"data_channel_transport_interface\.h": [
|
|
|
|
|
"+rtc_base/copy_on_write_buffer.h",
|
|
|
|
|
],
|
|
|
|
|
|
2019-01-11 09:11:00 -08:00
|
|
|
"dtls_transport_interface\.h": [
|
2019-04-10 17:20:42 +02:00
|
|
|
"+rtc_base/ssl_certificate.h",
|
2018-11-28 16:47:46 +01:00
|
|
|
],
|
|
|
|
|
|
2018-10-24 13:57:25 +02:00
|
|
|
"fec_controller\.h": [
|
|
|
|
|
"+modules/include/module_fec_types.h",
|
|
|
|
|
],
|
|
|
|
|
|
2019-09-05 14:35:04 +02:00
|
|
|
"packet_socket_factory\.h": [
|
|
|
|
|
"+rtc_base/async_packet_socket.h",
|
2024-09-04 14:55:22 +03:00
|
|
|
"+rtc_base/socket_address.h",
|
2019-09-05 14:35:04 +02:00
|
|
|
],
|
|
|
|
|
|
2019-01-11 09:11:00 -08:00
|
|
|
"peer_connection_interface\.h": [
|
2021-05-31 14:02:28 +02:00
|
|
|
"+call/rtp_transport_controller_send_factory_interface.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"+media/base/media_config.h",
|
|
|
|
|
"+media/base/media_engine.h",
|
2021-05-09 14:58:57 +00:00
|
|
|
"+p2p/base/port.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"+p2p/base/port_allocator.h",
|
2021-05-09 14:58:57 +00:00
|
|
|
"+rtc_base/network.h",
|
|
|
|
|
"+rtc_base/network_constants.h",
|
2020-07-31 16:07:52 -07:00
|
|
|
"+rtc_base/network_monitor_factory.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"+rtc_base/rtc_certificate.h",
|
|
|
|
|
"+rtc_base/rtc_certificate_generator.h",
|
|
|
|
|
"+rtc_base/socket_address.h",
|
2024-06-18 16:20:35 +03:00
|
|
|
"+rtc_base/socket_factory.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"+rtc_base/ssl_certificate.h",
|
|
|
|
|
"+rtc_base/ssl_stream_adapter.h",
|
2021-05-09 14:58:57 +00:00
|
|
|
"+rtc_base/thread.h",
|
2018-12-27 11:15:19 -08:00
|
|
|
],
|
|
|
|
|
|
2018-11-28 16:47:49 +01:00
|
|
|
"proxy\.h": [
|
2018-12-27 11:15:19 -08:00
|
|
|
"+rtc_base/event.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"+rtc_base/message_handler.h", # Inherits from it.
|
2018-12-27 11:15:19 -08:00
|
|
|
"+rtc_base/thread.h",
|
2018-11-28 16:47:49 +01:00
|
|
|
],
|
|
|
|
|
|
2019-01-11 09:11:00 -08:00
|
|
|
"ref_counted_base\.h": [
|
|
|
|
|
"+rtc_base/ref_counter.h",
|
2018-10-24 13:57:25 +02:00
|
|
|
],
|
|
|
|
|
|
2019-01-11 09:11:00 -08:00
|
|
|
"rtc_error\.h": [
|
2018-10-24 13:57:25 +02:00
|
|
|
"+rtc_base/logging.h",
|
2024-12-04 11:36:08 +00:00
|
|
|
"+absl/strings/has_absl_stringify.h",
|
|
|
|
|
"+absl/strings/str_format.h",
|
2018-10-24 13:57:25 +02:00
|
|
|
],
|
2019-05-08 13:53:51 +02:00
|
|
|
"rtc_event_log_output_file.h": [
|
|
|
|
|
# For private member and constructor.
|
|
|
|
|
"+rtc_base/system/file_wrapper.h",
|
|
|
|
|
],
|
2018-10-24 13:57:25 +02:00
|
|
|
|
2022-11-11 10:07:34 +01:00
|
|
|
"legacy_stats_types\.h": [
|
2024-06-18 16:20:35 +03:00
|
|
|
"+rtc_base/thread_annotations.h",
|
2018-10-24 13:57:25 +02:00
|
|
|
"+rtc_base/thread_checker.h",
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
"audio_decoder\.h": [
|
|
|
|
|
"+rtc_base/buffer.h",
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
"audio_encoder\.h": [
|
|
|
|
|
"+rtc_base/buffer.h",
|
2022-02-11 15:30:26 +01:00
|
|
|
],
|
|
|
|
|
|
2022-06-13 10:36:38 +02:00
|
|
|
"make_ref_counted\.h": [
|
|
|
|
|
"+rtc_base/ref_counted_object.h",
|
|
|
|
|
],
|
|
|
|
|
|
2018-10-24 13:57:25 +02:00
|
|
|
"mock.*\.h": [
|
|
|
|
|
"+test/gmock.h",
|
|
|
|
|
],
|
|
|
|
|
|
2022-11-10 13:28:42 +00:00
|
|
|
"mock_peerconnectioninterface\.h": [
|
|
|
|
|
"+rtc_base/ref_counted_object.h",
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
"mock_video_track\.h": [
|
|
|
|
|
"+rtc_base/ref_counted_object.h",
|
|
|
|
|
],
|
|
|
|
|
|
2022-03-03 05:55:22 +09:00
|
|
|
"notifier\.h": [
|
|
|
|
|
"+rtc_base/system/no_unique_address.h",
|
2024-09-04 14:55:22 +03:00
|
|
|
"+rtc_base/thread_annotations.h",
|
2022-03-03 05:55:22 +09:00
|
|
|
],
|
|
|
|
|
|
2024-07-26 16:16:41 +00:00
|
|
|
"priority\.h": [
|
|
|
|
|
"+rtc_base/strong_alias.h",
|
|
|
|
|
],
|
|
|
|
|
|
2018-10-24 13:57:25 +02:00
|
|
|
"simulated_network\.h": [
|
|
|
|
|
"+rtc_base/random.h",
|
|
|
|
|
"+rtc_base/thread_annotations.h",
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
"test_dependency_factory\.h": [
|
|
|
|
|
"+rtc_base/thread_checker.h",
|
|
|
|
|
],
|
|
|
|
|
|
2020-01-16 11:45:59 +01:00
|
|
|
"time_controller\.h": [
|
|
|
|
|
"+rtc_base/thread.h",
|
|
|
|
|
],
|
|
|
|
|
|
2018-10-24 13:57:25 +02:00
|
|
|
"videocodec_test_fixture\.h": [
|
|
|
|
|
"+modules/video_coding/include/video_codec_interface.h"
|
|
|
|
|
],
|
|
|
|
|
|
2024-12-19 13:19:47 +00:00
|
|
|
"rtp_parameters\.h": [
|
|
|
|
|
"+absl/strings/str_format.h",
|
|
|
|
|
],
|
|
|
|
|
|
2021-02-04 15:06:50 +01:00
|
|
|
"sequence_checker\.h": [
|
|
|
|
|
"+rtc_base/synchronization/sequence_checker_internal.h",
|
|
|
|
|
"+rtc_base/thread_annotations.h",
|
|
|
|
|
],
|
|
|
|
|
|
2022-03-16 12:11:42 +01:00
|
|
|
"video_encoder_factory_template.*\.h": [
|
|
|
|
|
"+modules/video_coding",
|
|
|
|
|
],
|
|
|
|
|
|
2024-04-24 16:31:58 +02:00
|
|
|
"video_encoder_factory_interface\.h": [
|
|
|
|
|
"+rtc_base/numerics",
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
"video_encoder_interface\.h": [
|
|
|
|
|
"+rtc_base/numerics",
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
"simple_encoder_wrapper\.h": [
|
|
|
|
|
"+common_video",
|
|
|
|
|
"+modules",
|
|
|
|
|
],
|
|
|
|
|
|
2022-07-14 16:06:51 +02:00
|
|
|
"video_decoder_factory_template.*\.h": [
|
|
|
|
|
"+modules/video_coding",
|
|
|
|
|
],
|
|
|
|
|
|
2022-03-30 07:57:48 +02:00
|
|
|
"field_trials\.h": [
|
|
|
|
|
"+rtc_base/containers/flat_map.h",
|
|
|
|
|
],
|
|
|
|
|
|
2022-10-07 21:47:49 +00:00
|
|
|
"video_track_source_proxy_factory.h": [
|
|
|
|
|
"+rtc_base/thread.h",
|
|
|
|
|
],
|
|
|
|
|
|
2022-09-21 15:20:22 +02:00
|
|
|
"field_trials_registry\.h": [
|
|
|
|
|
"+rtc_base/containers/flat_set.h",
|
|
|
|
|
],
|
|
|
|
|
|
2018-10-26 13:17:47 +02:00
|
|
|
# .cc files in api/ should not be restricted in what they can #include,
|
|
|
|
|
# so we re-add all the top-level directories here. (That's because .h
|
|
|
|
|
# files leak their #includes to whoever's #including them, but .cc files
|
|
|
|
|
# do not since no one #includes them.)
|
2017-02-10 08:15:44 -08:00
|
|
|
".*\.cc": [
|
2018-10-24 13:57:25 +02:00
|
|
|
"+audio",
|
|
|
|
|
"+call",
|
|
|
|
|
"+common_audio",
|
|
|
|
|
"+common_video",
|
|
|
|
|
"+examples",
|
2022-09-21 15:20:22 +02:00
|
|
|
"+experiments",
|
2018-10-24 13:57:25 +02:00
|
|
|
"+logging",
|
|
|
|
|
"+media",
|
|
|
|
|
"+modules",
|
|
|
|
|
"+p2p",
|
|
|
|
|
"+pc",
|
|
|
|
|
"+rtc_base",
|
|
|
|
|
"+rtc_tools",
|
|
|
|
|
"+sdk",
|
|
|
|
|
"+stats",
|
|
|
|
|
"+system_wrappers",
|
|
|
|
|
"+test",
|
|
|
|
|
"+tools",
|
|
|
|
|
"+tools_webrtc",
|
|
|
|
|
"+video",
|
|
|
|
|
"+third_party",
|
2017-01-31 01:48:08 -08:00
|
|
|
],
|
2016-03-17 12:05:36 +01:00
|
|
|
}
|