Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Unified Diff: gn/echo_headers.py

Issue 2202643002: GN: only include headers in echo_headers.py (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gn/echo_headers.py
diff --git a/gn/echo_headers.py b/gn/echo_headers.py
index 6fed8545bed5e713c1b3ab352871d7747a25e4cf..83938b3e2a1dfd1a5d7df5b74a8903bfddc0c8b3 100644
--- a/gn/echo_headers.py
+++ b/gn/echo_headers.py
@@ -17,7 +17,7 @@ blacklist = [
headers = []
for d in sys.argv[2:]:
headers.extend([f for f in os.listdir(d)
- if os.path.isfile(os.path.join(d,f))])
+ if os.path.isfile(os.path.join(d,f)) and f.endswith('.h')])
with open(sys.argv[1], "w") as f:
f.write('// skia.h generated by GN.\n')
f.write('#ifndef skia_h_DEFINED\n')
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698