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

Unified Diff: gn/echo_headers.py

Issue 2188493002: Start on fiddle. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Only run recipe simulation tests if infra/ changes. 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 | « PRESUBMIT.py ('k') | 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
new file mode 100644
index 0000000000000000000000000000000000000000..325124fc22c7a45ad3c82f72d4fee51034459361
--- /dev/null
+++ b/gn/echo_headers.py
@@ -0,0 +1,27 @@
+#!/usr/bin/env python
+#
+# Copyright 2016 Google Inc.
+#
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import sys
+import os
+import os.path
+
+blacklist = [
+ 'GrGLConfig_chrome.h',
+]
+
+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))])
+with open(sys.argv[1], "w") as f:
+ f.write('// skia.h generated by GN.\n')
+ f.write('#ifndef skia_h_DEFINED\n')
+ f.write('#define skia_h_DEFINED\n')
+ for h in headers:
+ if h not in blacklist:
+ f.write('#include "' + h + '"\n')
+ f.write('#endif//skia_h_DEFINED\n')
« no previous file with comments | « PRESUBMIT.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698