Mirko Bonadei | 9049037 | 2018-10-26 13:17:47 +0200 | [diff] [blame] | 1 | # This is supposed to be a complete list of top-level directories, |
| 2 | # excepting only api/ itself. |
kjellander@webrtc.org | 94a23f0 | 2016-03-17 12:05:36 +0100 | [diff] [blame] | 3 | include_rules = [ |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 4 | "-audio", |
| 5 | "-base", |
| 6 | "-build", |
| 7 | "-buildtools", |
| 8 | "-build_overrides", |
| 9 | "-call", |
| 10 | "-common_audio", |
| 11 | "-common_video", |
| 12 | "-data", |
| 13 | "-examples", |
Mirko Bonadei | 583d6d9 | 2018-10-24 15:53:33 +0200 | [diff] [blame] | 14 | "-ios", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 15 | "-infra", |
| 16 | "-logging", |
| 17 | "-media", |
| 18 | "-modules", |
| 19 | "-out", |
| 20 | "-p2p", |
| 21 | "-pc", |
| 22 | "-resources", |
| 23 | "-rtc_base", |
| 24 | "-rtc_tools", |
| 25 | "-sdk", |
| 26 | "-stats", |
| 27 | "-style-guide", |
| 28 | "-system_wrappers", |
| 29 | "-test", |
| 30 | "-testing", |
| 31 | "-third_party", |
| 32 | "-tools", |
| 33 | "-tools_webrtc", |
| 34 | "-video", |
| 35 | "-external/webrtc/webrtc", # Android platform build. |
| 36 | "-libyuv", |
| 37 | "-common_types.h", |
| 38 | "-WebRTC", |
kjellander@webrtc.org | 94a23f0 | 2016-03-17 12:05:36 +0100 | [diff] [blame] | 39 | ] |
| 40 | |
| 41 | specific_include_rules = { |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 42 | # Some internal headers are allowed even in API headers: |
| 43 | ".*\.h": [ |
| 44 | "+rtc_base/checks.h", |
| 45 | "+rtc_base/system/rtc_export.h", |
Mirko Bonadei | 054f185 | 2019-11-04 16:31:08 +0100 | [diff] [blame] | 46 | "+rtc_base/system/rtc_export_template.h", |
Sebastian Jansson | 72bba62 | 2018-11-19 11:17:12 +0100 | [diff] [blame] | 47 | "+rtc_base/units/unit_base.h", |
Sebastian Jansson | 11e55ee | 2019-03-06 16:58:18 +0100 | [diff] [blame] | 48 | "+rtc_base/deprecation.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 49 | ], |
| 50 | |
| 51 | "array_view\.h": [ |
| 52 | "+rtc_base/type_traits.h", |
| 53 | ], |
| 54 | |
kwiberg | 96da011 | 2017-06-30 04:23:22 -0700 | [diff] [blame] | 55 | # Needed because AudioEncoderOpus is in the wrong place for |
| 56 | # backwards compatibilty reasons. See |
| 57 | # https://bugs.chromium.org/p/webrtc/issues/detail?id=7847 |
| 58 | "audio_encoder_opus\.h": [ |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 59 | "+modules/audio_coding/codecs/opus/audio_encoder_opus.h", |
kwiberg | 96da011 | 2017-06-30 04:23:22 -0700 | [diff] [blame] | 60 | ], |
| 61 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 62 | "async_resolver_factory\.h": [ |
| 63 | "+rtc_base/async_resolver_interface.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 64 | ], |
| 65 | |
| 66 | "candidate\.h": [ |
| 67 | "+rtc_base/network_constants.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 68 | "+rtc_base/socket_address.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 69 | ], |
| 70 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 71 | "data_channel_interface\.h": [ |
| 72 | "+rtc_base/copy_on_write_buffer.h", |
| 73 | "+rtc_base/ref_count.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 74 | ], |
| 75 | |
Bjorn A Mellem | 05497f2 | 2019-08-01 10:48:20 -0700 | [diff] [blame] | 76 | "data_channel_transport_interface\.h": [ |
| 77 | "+rtc_base/copy_on_write_buffer.h", |
| 78 | ], |
| 79 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 80 | "dtls_transport_interface\.h": [ |
| 81 | "+rtc_base/ref_count.h", |
Harald Alvestrand | 7061e51 | 2019-04-10 17:20:42 +0200 | [diff] [blame] | 82 | "+rtc_base/ssl_certificate.h", |
Harald Alvestrand | ad88c88 | 2018-11-28 16:47:46 +0100 | [diff] [blame] | 83 | ], |
| 84 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 85 | "dtmf_sender_interface\.h": [ |
| 86 | "+rtc_base/ref_count.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 87 | ], |
| 88 | |
| 89 | "fec_controller\.h": [ |
| 90 | "+modules/include/module_fec_types.h", |
| 91 | ], |
| 92 | |
Marina Ciocea | e3e07bf | 2020-02-27 16:28:51 +0100 | [diff] [blame] | 93 | "frame_transformer_interface\.h": [ |
| 94 | "+rtc_base/ref_count.h", |
| 95 | ], |
| 96 | |
Harald Alvestrand | 9846262 | 2019-01-30 14:57:03 +0100 | [diff] [blame] | 97 | "ice_transport_interface\.h": [ |
| 98 | "+rtc_base/ref_count.h", |
| 99 | ], |
| 100 | |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 101 | "jsep\.h": [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 102 | "+rtc_base/ref_count.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 103 | ], |
| 104 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 105 | "jsep_ice_candidate\.h": [ |
| 106 | "+rtc_base/constructor_magic.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 107 | ], |
| 108 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 109 | "jsep_session_description\.h": [ |
| 110 | "+rtc_base/constructor_magic.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 111 | ], |
| 112 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 113 | "media_stream_interface\.h": [ |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 114 | "+modules/audio_processing/include/audio_processing_statistics.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 115 | "+rtc_base/ref_count.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 116 | ], |
| 117 | |
Patrik Höglund | 662e31f | 2019-09-05 14:35:04 +0200 | [diff] [blame] | 118 | "packet_socket_factory\.h": [ |
| 119 | "+rtc_base/proxy_info.h", |
| 120 | "+rtc_base/async_packet_socket.h", |
| 121 | ], |
| 122 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 123 | "peer_connection_factory_proxy\.h": [ |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 124 | "+rtc_base/bind.h", |
| 125 | ], |
| 126 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 127 | "peer_connection_interface\.h": [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 128 | "+media/base/media_config.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 129 | "+media/base/media_engine.h", |
| 130 | "+p2p/base/port_allocator.h", |
Steve Anton | bba675d | 2018-12-27 11:15:19 -0800 | [diff] [blame] | 131 | "+rtc_base/network.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 132 | "+rtc_base/rtc_certificate.h", |
| 133 | "+rtc_base/rtc_certificate_generator.h", |
| 134 | "+rtc_base/socket_address.h", |
| 135 | "+rtc_base/ssl_certificate.h", |
| 136 | "+rtc_base/ssl_stream_adapter.h", |
Steve Anton | bba675d | 2018-12-27 11:15:19 -0800 | [diff] [blame] | 137 | ], |
| 138 | |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 139 | "proxy\.h": [ |
Steve Anton | bba675d | 2018-12-27 11:15:19 -0800 | [diff] [blame] | 140 | "+rtc_base/event.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 141 | "+rtc_base/message_handler.h", # Inherits from it. |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 142 | "+rtc_base/ref_counted_object.h", |
Steve Anton | bba675d | 2018-12-27 11:15:19 -0800 | [diff] [blame] | 143 | "+rtc_base/thread.h", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 144 | ], |
| 145 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 146 | "ref_counted_base\.h": [ |
| 147 | "+rtc_base/constructor_magic.h", |
| 148 | "+rtc_base/ref_count.h", |
| 149 | "+rtc_base/ref_counter.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 150 | ], |
| 151 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 152 | "rtc_error\.h": [ |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 153 | "+rtc_base/logging.h", |
| 154 | ], |
Niels Möller | d8b9ed7 | 2019-05-08 13:53:51 +0200 | [diff] [blame] | 155 | "rtc_event_log_output_file.h": [ |
Niels Möller | d8b9ed7 | 2019-05-08 13:53:51 +0200 | [diff] [blame] | 156 | # For private member and constructor. |
| 157 | "+rtc_base/system/file_wrapper.h", |
| 158 | ], |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 159 | "rtp_receiver_interface\.h": [ |
| 160 | "+rtc_base/ref_count.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 161 | ], |
| 162 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 163 | "rtp_sender_interface\.h": [ |
| 164 | "+rtc_base/ref_count.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 165 | ], |
| 166 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 167 | "rtp_transceiver_interface\.h": [ |
| 168 | "+rtc_base/ref_count.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 169 | ], |
| 170 | |
Harald Alvestrand | c85328f | 2019-02-28 07:51:00 +0100 | [diff] [blame] | 171 | "sctp_transport_interface\.h": [ |
| 172 | "+rtc_base/ref_count.h", |
| 173 | ], |
| 174 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 175 | "set_remote_description_observer_interface\.h": [ |
| 176 | "+rtc_base/ref_count.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 177 | ], |
| 178 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 179 | "stats_types\.h": [ |
| 180 | "+rtc_base/constructor_magic.h", |
| 181 | "+rtc_base/ref_count.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 182 | "+rtc_base/string_encode.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 183 | "+rtc_base/thread_checker.h", |
| 184 | ], |
| 185 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 186 | "uma_metrics\.h": [ |
| 187 | "+rtc_base/ref_count.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 188 | ], |
| 189 | |
| 190 | "audio_frame\.h": [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 191 | "+rtc_base/constructor_magic.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 192 | ], |
| 193 | |
| 194 | "audio_mixer\.h": [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 195 | "+rtc_base/ref_count.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 196 | ], |
| 197 | |
| 198 | "audio_decoder\.h": [ |
| 199 | "+rtc_base/buffer.h", |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 200 | "+rtc_base/constructor_magic.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 201 | ], |
| 202 | |
| 203 | "audio_decoder_factory\.h": [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 204 | "+rtc_base/ref_count.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 205 | ], |
| 206 | |
| 207 | "audio_decoder_factory_template\.h": [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 208 | "+rtc_base/ref_counted_object.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 209 | ], |
| 210 | |
| 211 | "audio_encoder\.h": [ |
| 212 | "+rtc_base/buffer.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 213 | ], |
| 214 | |
| 215 | "audio_encoder_factory\.h": [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 216 | "+rtc_base/ref_count.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 217 | ], |
| 218 | |
| 219 | "audio_encoder_factory_template\.h": [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 220 | "+rtc_base/ref_counted_object.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 221 | ], |
| 222 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 223 | "frame_decryptor_interface\.h": [ |
| 224 | "+rtc_base/ref_count.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 225 | ], |
| 226 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 227 | "frame_encryptor_interface\.h": [ |
| 228 | "+rtc_base/ref_count.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 229 | ], |
| 230 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 231 | "rtc_stats_collector_callback\.h": [ |
| 232 | "+rtc_base/ref_count.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 233 | ], |
| 234 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 235 | "rtc_stats_report\.h": [ |
| 236 | "+rtc_base/ref_count.h", |
| 237 | "+rtc_base/ref_counted_object.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 238 | ], |
| 239 | |
| 240 | "audioproc_float\.h": [ |
| 241 | "+modules/audio_processing/include/audio_processing.h", |
| 242 | ], |
| 243 | |
Sam Zackrisson | b0bd070 | 2020-05-12 10:48:19 +0200 | [diff] [blame] | 244 | "echo_detector_creator\.h": [ |
| 245 | "+modules/audio_processing/include/audio_processing.h", |
| 246 | ], |
| 247 | |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 248 | "fake_frame_decryptor\.h": [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 249 | "+rtc_base/ref_counted_object.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 250 | ], |
| 251 | |
| 252 | "fake_frame_encryptor\.h": [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 253 | "+rtc_base/ref_counted_object.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 254 | ], |
| 255 | |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 256 | "mock.*\.h": [ |
| 257 | "+test/gmock.h", |
| 258 | ], |
| 259 | |
| 260 | "simulated_network\.h": [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 261 | "+rtc_base/critical_section.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 262 | "+rtc_base/random.h", |
| 263 | "+rtc_base/thread_annotations.h", |
| 264 | ], |
| 265 | |
| 266 | "test_dependency_factory\.h": [ |
| 267 | "+rtc_base/thread_checker.h", |
| 268 | ], |
| 269 | |
Sebastian Jansson | fc8279d | 2020-01-16 11:45:59 +0100 | [diff] [blame] | 270 | "time_controller\.h": [ |
| 271 | "+rtc_base/thread.h", |
| 272 | ], |
| 273 | |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 274 | "videocodec_test_fixture\.h": [ |
| 275 | "+modules/video_coding/include/video_codec_interface.h" |
| 276 | ], |
| 277 | |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 278 | "video_encoder_config\.h": [ |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 279 | "+rtc_base/ref_count.h", |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 280 | ], |
| 281 | |
Mirko Bonadei | 9049037 | 2018-10-26 13:17:47 +0200 | [diff] [blame] | 282 | # .cc files in api/ should not be restricted in what they can #include, |
| 283 | # so we re-add all the top-level directories here. (That's because .h |
| 284 | # files leak their #includes to whoever's #including them, but .cc files |
| 285 | # do not since no one #includes them.) |
kwiberg | 087bd34 | 2017-02-10 08:15:44 -0800 | [diff] [blame] | 286 | ".*\.cc": [ |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 287 | "+audio", |
| 288 | "+call", |
| 289 | "+common_audio", |
| 290 | "+common_video", |
| 291 | "+examples", |
| 292 | "+logging", |
| 293 | "+media", |
| 294 | "+modules", |
| 295 | "+p2p", |
| 296 | "+pc", |
| 297 | "+rtc_base", |
| 298 | "+rtc_tools", |
| 299 | "+sdk", |
| 300 | "+stats", |
| 301 | "+system_wrappers", |
| 302 | "+test", |
| 303 | "+tools", |
| 304 | "+tools_webrtc", |
| 305 | "+video", |
| 306 | "+third_party", |
kwiberg | 1e4e8cb | 2017-01-31 01:48:08 -0800 | [diff] [blame] | 307 | ], |
kjellander@webrtc.org | 94a23f0 | 2016-03-17 12:05:36 +0100 | [diff] [blame] | 308 | } |