Adds PRESUBMIT.py dispensation for depending on rtc_base.
Dispensation for: a few test suites, desktop capture and libjingle. BUG=N/A R=kjellander@webrtc.org Review URL: https://webrtc-codereview.appspot.com/31549004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7356 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
fd29205e6e
commit
36b0c1afae
11
PRESUBMIT.py
11
PRESUBMIT.py
@ -100,6 +100,17 @@ def _CheckNoRtcBaseDeps(input_api, gyp_files, output_api):
|
|||||||
pattern = input_api.re.compile(r"base.gyp:rtc_base\s*'")
|
pattern = input_api.re.compile(r"base.gyp:rtc_base\s*'")
|
||||||
violating_files = []
|
violating_files = []
|
||||||
for f in gyp_files:
|
for f in gyp_files:
|
||||||
|
gyp_exceptions = (
|
||||||
|
'base_tests.gyp',
|
||||||
|
'desktop_capture.gypi',
|
||||||
|
'libjingle.gyp',
|
||||||
|
'libjingle_tests.gyp'
|
||||||
|
'sound.gyp',
|
||||||
|
'webrtc_test_common.gyp',
|
||||||
|
'webrtc_tests.gypi',
|
||||||
|
)
|
||||||
|
if f.LocalPath().endswith(gyp_exceptions):
|
||||||
|
continue
|
||||||
contents = input_api.ReadFile(f)
|
contents = input_api.ReadFile(f)
|
||||||
if pattern.search(contents):
|
if pattern.search(contents):
|
||||||
violating_files.append(f)
|
violating_files.append(f)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user