diff options
author | kjellander@webrtc.org <kjellander@webrtc.org> | 2014-11-24 10:05:37 +0000 |
---|---|---|
committer | kjellander@webrtc.org <kjellander@webrtc.org> | 2014-11-24 10:05:37 +0000 |
commit | 3398a4ac15c9954f7d6355607897060236c3169b (patch) | |
tree | 0b55e09b52658d7ac209308765e6dd08f6e8ece2 /PRESUBMIT.py | |
parent | 8562f23acb15f555f35f0b5760adc8bd1b988406 (diff) | |
download | webrtc-3398a4ac15c9954f7d6355607897060236c3169b.tar.gz |
PRESUBMIT: Only notify GN changes for GYP files in webrtc/*
We don't maintain a BUILD.gn file for talk/ since it's a part
of Chromium:
https://code.google.com/p/chromium/codesearch#chromium/src/third_party/libjingle/BUILD.gn
Because of this, it's confusing to get warnings about updating
a GYP file in talk/ from the PRESUBMIT check.
TESTED=Successsfully ran git cl presubmit with this change
applied on top of a CL containing changes in .gyp files.
R=niklas.enbom@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/27189004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@7737 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'PRESUBMIT.py')
-rwxr-xr-x | PRESUBMIT.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py index 612f87704d..14bc50b30b 100755 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -128,7 +128,8 @@ def _CheckGypChanges(input_api, output_api): gyp_files = [] for f in input_api.AffectedSourceFiles(source_file_filter): - gyp_files.append(f) + if f.LocalPath().startswith('webrtc'): + gyp_files.append(f) result = [] if gyp_files: |