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

Unified Diff: experimental/fiddle/headers.sh

Issue 1349163003: experiment/fiddle (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 3 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
Index: experimental/fiddle/headers.sh
diff --git a/experimental/fiddle/headers.sh b/experimental/fiddle/headers.sh
new file mode 100755
index 0000000000000000000000000000000000000000..05ca5113d3fa55ffa3e4d8a411e47deb0089ecb5
--- /dev/null
+++ b/experimental/fiddle/headers.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+# Copyright 2015 Google Inc.
+#
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Generate a single header with skia's main public headers.
+: ${PREFIX:=$(dirname "$0")/local}
+cd "$PREFIX/include/skia"
+printf '#ifndef skia_headers_DEFINED\n'
+printf '#define skia_headers_DEFINED\n\n'
+for directory in c core effects pathops gpu; do
+ printf '// %s\n' $directory
+ find $directory -maxdepth 1 -name "*.h" \
+ | sed "s/^.*\/\(.*\)/#include \"\1\"/" \
+ | LANG= sort
+ printf '\n'
+done
+printf '#include "GrGLInterface.h"\n'
+printf '\n#endif // skia_headers_DEFINED\n'

Powered by Google App Engine
This is Rietveld 408576698