From 1f6526b33576a9cbd67d27698f73c96ddba2bfcf Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Wed, 14 Mar 2018 16:48:22 -0400 Subject: 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 Commit-Queue: Ben Wagner --- third_party/libpng/png.imp | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 third_party/libpng/png.imp (limited to 'third_party/libpng') 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"] } +] -- cgit v1.2.3