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", |
| 46 | ], |
| 47 | |
| 48 | "array_view\.h": [ |
| 49 | "+rtc_base/type_traits.h", |
| 50 | ], |
| 51 | |
kwiberg | 96da011 | 2017-06-30 04:23:22 -0700 | [diff] [blame] | 52 | # Needed because AudioEncoderOpus is in the wrong place for |
| 53 | # backwards compatibilty reasons. See |
| 54 | # https://bugs.chromium.org/p/webrtc/issues/detail?id=7847 |
| 55 | "audio_encoder_opus\.h": [ |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 56 | "+modules/audio_coding/codecs/opus/audio_encoder_opus.h", |
kwiberg | 96da011 | 2017-06-30 04:23:22 -0700 | [diff] [blame] | 57 | ], |
| 58 | |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 59 | "asyncresolverfactory\.h": [ |
| 60 | "+rtc_base/asyncresolverinterface.h", |
| 61 | ], |
| 62 | |
| 63 | "candidate\.h": [ |
| 64 | "+rtc_base/network_constants.h", |
| 65 | "+rtc_base/socketaddress.h", |
| 66 | ], |
| 67 | |
| 68 | "datachannelinterface\.h": [ |
| 69 | "+rtc_base/copyonwritebuffer.h", |
| 70 | "+rtc_base/refcount.h", |
| 71 | ], |
| 72 | |
| 73 | "dtmfsenderinterface\.h": [ |
| 74 | "+rtc_base/refcount.h", |
| 75 | ], |
| 76 | |
| 77 | "fec_controller\.h": [ |
| 78 | "+modules/include/module_fec_types.h", |
| 79 | ], |
| 80 | |
| 81 | "jsep\.h": [ |
| 82 | "+rtc_base/refcount.h", |
| 83 | ], |
| 84 | |
| 85 | "jsepicecandidate\.h": [ |
| 86 | "+rtc_base/constructormagic.h", |
| 87 | ], |
| 88 | |
| 89 | "jsepsessiondescription\.h": [ |
| 90 | "+rtc_base/constructormagic.h", |
| 91 | ], |
| 92 | |
| 93 | "mediastreaminterface\.h": [ |
| 94 | "+modules/audio_processing/include/audio_processing_statistics.h", |
| 95 | "+rtc_base/refcount.h", |
| 96 | "+rtc_base/scoped_ref_ptr.h", |
| 97 | ], |
| 98 | |
Bjorn Mellem | 1f6aa9f | 2018-10-30 15:15:00 -0700 | [diff] [blame] | 99 | "media_transport_interface\.h": [ |
| 100 | "+rtc_base/copyonwritebuffer.h", # As used by datachannelinterface.h |
| 101 | ], |
| 102 | |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 103 | "peerconnectionfactoryproxy\.h": [ |
| 104 | "+rtc_base/bind.h", |
| 105 | ], |
| 106 | |
| 107 | "refcountedbase\.h": [ |
| 108 | "+rtc_base/constructormagic.h", |
| 109 | "+rtc_base/refcount.h", |
| 110 | "+rtc_base/refcounter.h", |
| 111 | ], |
| 112 | |
| 113 | "rtcerror\.h": [ |
| 114 | "+rtc_base/logging.h", |
| 115 | ], |
| 116 | |
| 117 | "rtpreceiverinterface\.h": [ |
| 118 | "+rtc_base/refcount.h", |
| 119 | "+rtc_base/scoped_ref_ptr.h", |
| 120 | ], |
| 121 | |
| 122 | "rtpsenderinterface\.h": [ |
| 123 | "+rtc_base/refcount.h", |
| 124 | "+rtc_base/scoped_ref_ptr.h", |
| 125 | ], |
| 126 | |
| 127 | "rtptransceiverinterface\.h": [ |
| 128 | "+rtc_base/refcount.h", |
| 129 | ], |
| 130 | |
| 131 | "setremotedescriptionobserverinterface\.h": [ |
| 132 | "+rtc_base/refcount.h", |
| 133 | ], |
| 134 | |
| 135 | "statstypes\.h": [ |
| 136 | "+rtc_base/constructormagic.h", |
| 137 | "+rtc_base/refcount.h", |
| 138 | "+rtc_base/scoped_ref_ptr.h", |
| 139 | "+rtc_base/stringencode.h", |
| 140 | "+rtc_base/thread_checker.h", |
| 141 | ], |
| 142 | |
| 143 | "umametrics\.h": [ |
| 144 | "+rtc_base/refcount.h", |
| 145 | ], |
| 146 | |
| 147 | "audio_frame\.h": [ |
| 148 | "+rtc_base/constructormagic.h", |
| 149 | ], |
| 150 | |
| 151 | "audio_mixer\.h": [ |
| 152 | "+rtc_base/refcount.h", |
| 153 | ], |
| 154 | |
| 155 | "audio_decoder\.h": [ |
| 156 | "+rtc_base/buffer.h", |
| 157 | "+rtc_base/constructormagic.h", |
| 158 | ], |
| 159 | |
| 160 | "audio_decoder_factory\.h": [ |
| 161 | "+rtc_base/refcount.h", |
| 162 | ], |
| 163 | |
| 164 | "audio_decoder_factory_template\.h": [ |
| 165 | "+rtc_base/refcountedobject.h", |
| 166 | "+rtc_base/scoped_ref_ptr.h", |
| 167 | ], |
| 168 | |
| 169 | "audio_encoder\.h": [ |
| 170 | "+rtc_base/buffer.h", |
| 171 | "+rtc_base/deprecation.h", |
| 172 | ], |
| 173 | |
| 174 | "audio_encoder_factory\.h": [ |
| 175 | "+rtc_base/refcount.h", |
| 176 | ], |
| 177 | |
| 178 | "audio_encoder_factory_template\.h": [ |
| 179 | "+rtc_base/refcountedobject.h", |
| 180 | "+rtc_base/scoped_ref_ptr.h", |
| 181 | ], |
| 182 | |
| 183 | "builtin_audio_decoder_factory\.h": [ |
| 184 | "+rtc_base/scoped_ref_ptr.h", |
| 185 | ], |
| 186 | |
| 187 | "builtin_audio_encoder_factory\.h": [ |
| 188 | "+rtc_base/scoped_ref_ptr.h", |
| 189 | ], |
| 190 | |
| 191 | "framedecryptorinterface\.h": [ |
| 192 | "+rtc_base/refcount.h", |
| 193 | ], |
| 194 | |
| 195 | "frameencryptorinterface\.h": [ |
| 196 | "+rtc_base/refcount.h", |
| 197 | ], |
| 198 | |
| 199 | "ortcfactoryinterface\.h": [ |
| 200 | "+rtc_base/network.h", |
| 201 | "+rtc_base/scoped_ref_ptr.h", |
| 202 | "+rtc_base/thread.h", |
| 203 | ], |
| 204 | |
| 205 | "udptransportinterface\.h": [ |
| 206 | "+rtc_base/socketaddress.h", |
| 207 | ], |
| 208 | |
| 209 | "rtcstatscollectorcallback\.h": [ |
| 210 | "+rtc_base/refcount.h", |
| 211 | "+rtc_base/scoped_ref_ptr.h", |
| 212 | ], |
| 213 | |
| 214 | "rtcstatsreport\.h": [ |
| 215 | "+rtc_base/refcount.h", |
| 216 | "+rtc_base/refcountedobject.h", |
| 217 | "+rtc_base/scoped_ref_ptr.h", |
| 218 | ], |
| 219 | |
| 220 | "audioproc_float\.h": [ |
| 221 | "+modules/audio_processing/include/audio_processing.h", |
| 222 | ], |
| 223 | |
| 224 | "fake_frame_decryptor\.h": [ |
| 225 | "+rtc_base/refcountedobject.h", |
| 226 | ], |
| 227 | |
| 228 | "fake_frame_encryptor\.h": [ |
| 229 | "+rtc_base/refcountedobject.h", |
| 230 | ], |
| 231 | |
| 232 | "fakeconstraints\.h": [ |
| 233 | "+rtc_base/stringencode.h", |
| 234 | ], |
| 235 | |
| 236 | "mock.*\.h": [ |
| 237 | "+test/gmock.h", |
| 238 | ], |
| 239 | |
| 240 | "simulated_network\.h": [ |
| 241 | "+rtc_base/criticalsection.h", |
| 242 | "+rtc_base/random.h", |
| 243 | "+rtc_base/thread_annotations.h", |
| 244 | ], |
| 245 | |
| 246 | "test_dependency_factory\.h": [ |
| 247 | "+rtc_base/thread_checker.h", |
| 248 | ], |
| 249 | |
| 250 | "videocodec_test_fixture\.h": [ |
| 251 | "+modules/video_coding/include/video_codec_interface.h" |
| 252 | ], |
| 253 | |
| 254 | "data_rate\.h": [ |
| 255 | "+rtc_base/numerics/safe_conversions.h", |
| 256 | ], |
| 257 | |
| 258 | "data_size\.h": [ |
| 259 | "+rtc_base/numerics/safe_conversions.h", |
| 260 | ], |
| 261 | |
| 262 | "time_delta\.h": [ |
| 263 | "+rtc_base/numerics/safe_conversions.h", |
| 264 | ], |
| 265 | |
| 266 | "timestamp\.h": [ |
| 267 | "+rtc_base/numerics/safe_conversions.h", |
| 268 | ], |
| 269 | |
| 270 | "i010_buffer\.h": [ |
| 271 | "+rtc_base/memory/aligned_malloc.h" |
| 272 | ], |
| 273 | |
| 274 | "i420_buffer\.h": [ |
| 275 | "+rtc_base/memory/aligned_malloc.h", |
| 276 | ], |
| 277 | |
| 278 | "video_frame_buffer\.h": [ |
| 279 | "+rtc_base/refcount.h", |
| 280 | "+rtc_base/scoped_ref_ptr.h", |
| 281 | ], |
| 282 | |
| 283 | "video_timing\.h": [ |
| 284 | "+rtc_base/numerics/safe_conversions.h", |
| 285 | ], |
| 286 | |
| 287 | "video_encoder_config\.h": [ |
| 288 | "+rtc_base/refcount.h", |
| 289 | "+rtc_base/scoped_ref_ptr.h", |
| 290 | ], |
| 291 | |
Mirko Bonadei | 9049037 | 2018-10-26 13:17:47 +0200 | [diff] [blame] | 292 | # .cc files in api/ should not be restricted in what they can #include, |
| 293 | # so we re-add all the top-level directories here. (That's because .h |
| 294 | # files leak their #includes to whoever's #including them, but .cc files |
| 295 | # do not since no one #includes them.) |
kwiberg | 087bd34 | 2017-02-10 08:15:44 -0800 | [diff] [blame] | 296 | ".*\.cc": [ |
Mirko Bonadei | a418e67 | 2018-10-24 13:57:25 +0200 | [diff] [blame] | 297 | "+audio", |
| 298 | "+call", |
| 299 | "+common_audio", |
| 300 | "+common_video", |
| 301 | "+examples", |
| 302 | "+logging", |
| 303 | "+media", |
| 304 | "+modules", |
| 305 | "+p2p", |
| 306 | "+pc", |
| 307 | "+rtc_base", |
| 308 | "+rtc_tools", |
| 309 | "+sdk", |
| 310 | "+stats", |
| 311 | "+system_wrappers", |
| 312 | "+test", |
| 313 | "+tools", |
| 314 | "+tools_webrtc", |
| 315 | "+video", |
| 316 | "+third_party", |
kwiberg | 1e4e8cb | 2017-01-31 01:48:08 -0800 | [diff] [blame] | 317 | ], |
kjellander@webrtc.org | 94a23f0 | 2016-03-17 12:05:36 +0100 | [diff] [blame] | 318 | } |