blob: a68d704dba70a020af4457a2fee0743e2c67cd23 [file] [log] [blame]
Mirko Bonadei90490372018-10-26 13:17:47 +02001# This is supposed to be a complete list of top-level directories,
2# excepting only api/ itself.
kjellander@webrtc.org94a23f02016-03-17 12:05:36 +01003include_rules = [
Mirko Bonadeia418e672018-10-24 13:57:25 +02004 "-audio",
5 "-base",
6 "-build",
7 "-buildtools",
8 "-build_overrides",
9 "-call",
10 "-common_audio",
11 "-common_video",
12 "-data",
13 "-examples",
Mirko Bonadei583d6d92018-10-24 15:53:33 +020014 "-ios",
Mirko Bonadeia418e672018-10-24 13:57:25 +020015 "-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.org94a23f02016-03-17 12:05:36 +010039]
40
41specific_include_rules = {
Mirko Bonadeia418e672018-10-24 13:57:25 +020042 # 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
kwiberg96da0112017-06-30 04:23:22 -070052 # 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 Bonadei92ea95e2017-09-15 06:47:31 +020056 "+modules/audio_coding/codecs/opus/audio_encoder_opus.h",
kwiberg96da0112017-06-30 04:23:22 -070057 ],
58
Mirko Bonadeia418e672018-10-24 13:57:25 +020059 "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 Mellem1f6aa9f2018-10-30 15:15:00 -070099 "media_transport_interface\.h": [
100 "+rtc_base/copyonwritebuffer.h", # As used by datachannelinterface.h
Piotr (Peter) Slatalaada077f2018-11-08 07:43:31 -0800101 "+rtc_base/networkroute.h"
Bjorn Mellem1f6aa9f2018-10-30 15:15:00 -0700102 ],
103
Mirko Bonadeia418e672018-10-24 13:57:25 +0200104 "peerconnectionfactoryproxy\.h": [
105 "+rtc_base/bind.h",
106 ],
107
108 "refcountedbase\.h": [
109 "+rtc_base/constructormagic.h",
110 "+rtc_base/refcount.h",
111 "+rtc_base/refcounter.h",
112 ],
113
114 "rtcerror\.h": [
115 "+rtc_base/logging.h",
116 ],
117
118 "rtpreceiverinterface\.h": [
119 "+rtc_base/refcount.h",
120 "+rtc_base/scoped_ref_ptr.h",
121 ],
122
123 "rtpsenderinterface\.h": [
124 "+rtc_base/refcount.h",
125 "+rtc_base/scoped_ref_ptr.h",
126 ],
127
128 "rtptransceiverinterface\.h": [
129 "+rtc_base/refcount.h",
130 ],
131
132 "setremotedescriptionobserverinterface\.h": [
133 "+rtc_base/refcount.h",
134 ],
135
136 "statstypes\.h": [
137 "+rtc_base/constructormagic.h",
138 "+rtc_base/refcount.h",
139 "+rtc_base/scoped_ref_ptr.h",
140 "+rtc_base/stringencode.h",
141 "+rtc_base/thread_checker.h",
142 ],
143
144 "umametrics\.h": [
145 "+rtc_base/refcount.h",
146 ],
147
148 "audio_frame\.h": [
149 "+rtc_base/constructormagic.h",
150 ],
151
152 "audio_mixer\.h": [
153 "+rtc_base/refcount.h",
154 ],
155
156 "audio_decoder\.h": [
157 "+rtc_base/buffer.h",
158 "+rtc_base/constructormagic.h",
159 ],
160
161 "audio_decoder_factory\.h": [
162 "+rtc_base/refcount.h",
163 ],
164
165 "audio_decoder_factory_template\.h": [
166 "+rtc_base/refcountedobject.h",
167 "+rtc_base/scoped_ref_ptr.h",
168 ],
169
170 "audio_encoder\.h": [
171 "+rtc_base/buffer.h",
172 "+rtc_base/deprecation.h",
173 ],
174
175 "audio_encoder_factory\.h": [
176 "+rtc_base/refcount.h",
177 ],
178
179 "audio_encoder_factory_template\.h": [
180 "+rtc_base/refcountedobject.h",
181 "+rtc_base/scoped_ref_ptr.h",
182 ],
183
184 "builtin_audio_decoder_factory\.h": [
185 "+rtc_base/scoped_ref_ptr.h",
186 ],
187
188 "builtin_audio_encoder_factory\.h": [
189 "+rtc_base/scoped_ref_ptr.h",
190 ],
191
192 "framedecryptorinterface\.h": [
193 "+rtc_base/refcount.h",
194 ],
195
196 "frameencryptorinterface\.h": [
197 "+rtc_base/refcount.h",
198 ],
199
200 "ortcfactoryinterface\.h": [
201 "+rtc_base/network.h",
202 "+rtc_base/scoped_ref_ptr.h",
203 "+rtc_base/thread.h",
204 ],
205
206 "udptransportinterface\.h": [
207 "+rtc_base/socketaddress.h",
208 ],
209
210 "rtcstatscollectorcallback\.h": [
211 "+rtc_base/refcount.h",
212 "+rtc_base/scoped_ref_ptr.h",
213 ],
214
215 "rtcstatsreport\.h": [
216 "+rtc_base/refcount.h",
217 "+rtc_base/refcountedobject.h",
218 "+rtc_base/scoped_ref_ptr.h",
219 ],
220
221 "audioproc_float\.h": [
222 "+modules/audio_processing/include/audio_processing.h",
223 ],
224
225 "fake_frame_decryptor\.h": [
226 "+rtc_base/refcountedobject.h",
227 ],
228
229 "fake_frame_encryptor\.h": [
230 "+rtc_base/refcountedobject.h",
231 ],
232
233 "fakeconstraints\.h": [
234 "+rtc_base/stringencode.h",
235 ],
236
237 "mock.*\.h": [
238 "+test/gmock.h",
239 ],
240
241 "simulated_network\.h": [
242 "+rtc_base/criticalsection.h",
243 "+rtc_base/random.h",
244 "+rtc_base/thread_annotations.h",
245 ],
246
247 "test_dependency_factory\.h": [
248 "+rtc_base/thread_checker.h",
249 ],
250
251 "videocodec_test_fixture\.h": [
252 "+modules/video_coding/include/video_codec_interface.h"
253 ],
254
255 "data_rate\.h": [
256 "+rtc_base/numerics/safe_conversions.h",
257 ],
258
259 "data_size\.h": [
260 "+rtc_base/numerics/safe_conversions.h",
261 ],
262
263 "time_delta\.h": [
264 "+rtc_base/numerics/safe_conversions.h",
265 ],
266
267 "timestamp\.h": [
268 "+rtc_base/numerics/safe_conversions.h",
269 ],
270
271 "i010_buffer\.h": [
272 "+rtc_base/memory/aligned_malloc.h"
273 ],
274
275 "i420_buffer\.h": [
276 "+rtc_base/memory/aligned_malloc.h",
277 ],
278
279 "video_frame_buffer\.h": [
280 "+rtc_base/refcount.h",
281 "+rtc_base/scoped_ref_ptr.h",
282 ],
283
284 "video_timing\.h": [
285 "+rtc_base/numerics/safe_conversions.h",
286 ],
287
288 "video_encoder_config\.h": [
289 "+rtc_base/refcount.h",
290 "+rtc_base/scoped_ref_ptr.h",
291 ],
292
Mirko Bonadei90490372018-10-26 13:17:47 +0200293 # .cc files in api/ should not be restricted in what they can #include,
294 # so we re-add all the top-level directories here. (That's because .h
295 # files leak their #includes to whoever's #including them, but .cc files
296 # do not since no one #includes them.)
kwiberg087bd342017-02-10 08:15:44 -0800297 ".*\.cc": [
Mirko Bonadeia418e672018-10-24 13:57:25 +0200298 "+audio",
299 "+call",
300 "+common_audio",
301 "+common_video",
302 "+examples",
303 "+logging",
304 "+media",
305 "+modules",
306 "+p2p",
307 "+pc",
308 "+rtc_base",
309 "+rtc_tools",
310 "+sdk",
311 "+stats",
312 "+system_wrappers",
313 "+test",
314 "+tools",
315 "+tools_webrtc",
316 "+video",
317 "+third_party",
kwiberg1e4e8cb2017-01-31 01:48:08 -0800318 ],
kjellander@webrtc.org94a23f02016-03-17 12:05:36 +0100319}