aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/libpng
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2018-03-14 16:48:22 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-14 21:43:25 +0000
commit1f6526b33576a9cbd67d27698f73c96ddba2bfcf (patch)
treecca8cea4acd56cabde1beffa95213c4349d879bc /third_party/libpng
parent6c73d119115394b4bf752dd6199c1547324bc9f4 (diff)
Add a png.imp for include-what-you-use.
The png.h header provides some macros and declarations from subincludes. By default include-what-you-use will suggest using these subincludes directly, but this was not the intent of png.h. This adds a mapping file so that include-what-you-use knows that these subincludes are actually private and png.h should be used instead. Change-Id: Ibf9df6dbdbde0e657f6e548ed0e8f2310f44cfea Reviewed-on: https://skia-review.googlesource.com/114481 Reviewed-by: Herb Derby <herb@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'third_party/libpng')
-rw-r--r--third_party/libpng/png.imp5
1 files changed, 5 insertions, 0 deletions
diff --git a/third_party/libpng/png.imp b/third_party/libpng/png.imp
new file mode 100644
index 0000000000..81b7397030
--- /dev/null
+++ b/third_party/libpng/png.imp
@@ -0,0 +1,5 @@
+[
+ { include: ["\"pngconf.h\"", "private", "\"png.h\"", "public"] },
+ { include: ["\"pnglibconf.h\"", "private", "\"png.h\"", "public"] },
+ { include: ["\"scripts/pnglibconf.h.prebuilt\"", "private", "\"png.h\"", "public"] }
+]