summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2016-01-15 19:38:03 -0800
committerLei Zhang <thestig@chromium.org>2016-01-15 19:38:03 -0800
commita76a6d8bcb76077fa248b64c5d64791dc8f23771 (patch)
tree1ea7c74990f4ca926ca61f29fc63831e23303521
parent2991d8d171e917912fd250c3c8ed693568dc1d8c (diff)
downloadpdfium-a76a6d8bcb76077fa248b64c5d64791dc8f23771.tar.xz
XFA: Rename libpng to libpng16.chromium/2625chromium/2624
Otherwise this conflicts with Chromium's copy if the include paths just happens to be in the wrong order. Since the two copies of libpng are of different versions, we cannot use Chromium's copy. TBR=tsepez@chromium.org,ochang@chromium.org Review URL: https://codereview.chromium.org/1599513004 .
-rw-r--r--core/src/fxcodec/codec/DEPS2
-rw-r--r--core/src/fxcodec/codec/fx_codec_png.cpp2
-rw-r--r--samples/image_diff_png.cc2
-rw-r--r--third_party/BUILD.gn44
-rw-r--r--third_party/libpng16/0000-build-config.patch (renamed from third_party/libpng/0000-build-config.patch)12
-rw-r--r--third_party/libpng16/0001-disable-arm-neon.patch (renamed from third_party/libpng/0001-disable-arm-neon.patch)6
-rw-r--r--third_party/libpng16/README.pdfium (renamed from third_party/libpng/README.pdfium)0
-rw-r--r--third_party/libpng16/png.c (renamed from third_party/libpng/png.c)0
-rw-r--r--third_party/libpng16/png.h (renamed from third_party/libpng/png.h)0
-rw-r--r--third_party/libpng16/pngconf.h (renamed from third_party/libpng/pngconf.h)0
-rw-r--r--third_party/libpng16/pngdebug.h (renamed from third_party/libpng/pngdebug.h)0
-rw-r--r--third_party/libpng16/pngerror.c (renamed from third_party/libpng/pngerror.c)0
-rw-r--r--third_party/libpng16/pngget.c (renamed from third_party/libpng/pngget.c)0
-rw-r--r--third_party/libpng16/pnginfo.h (renamed from third_party/libpng/pnginfo.h)0
-rw-r--r--third_party/libpng16/pnglibconf.h (renamed from third_party/libpng/pnglibconf.h)0
-rw-r--r--third_party/libpng16/pngmem.c (renamed from third_party/libpng/pngmem.c)0
-rw-r--r--third_party/libpng16/pngpread.c (renamed from third_party/libpng/pngpread.c)0
-rw-r--r--third_party/libpng16/pngpriv.h (renamed from third_party/libpng/pngpriv.h)0
-rw-r--r--third_party/libpng16/pngread.c (renamed from third_party/libpng/pngread.c)0
-rw-r--r--third_party/libpng16/pngrio.c (renamed from third_party/libpng/pngrio.c)0
-rw-r--r--third_party/libpng16/pngrtran.c (renamed from third_party/libpng/pngrtran.c)0
-rw-r--r--third_party/libpng16/pngrutil.c (renamed from third_party/libpng/pngrutil.c)0
-rw-r--r--third_party/libpng16/pngset.c (renamed from third_party/libpng/pngset.c)0
-rw-r--r--third_party/libpng16/pngstruct.h (renamed from third_party/libpng/pngstruct.h)0
-rw-r--r--third_party/libpng16/pngtrans.c (renamed from third_party/libpng/pngtrans.c)0
-rw-r--r--third_party/libpng16/pngwio.c (renamed from third_party/libpng/pngwio.c)0
-rw-r--r--third_party/libpng16/pngwrite.c (renamed from third_party/libpng/pngwrite.c)0
-rw-r--r--third_party/libpng16/pngwtran.c (renamed from third_party/libpng/pngwtran.c)0
-rw-r--r--third_party/libpng16/pngwutil.c (renamed from third_party/libpng/pngwutil.c)0
-rw-r--r--third_party/third_party.gyp44
30 files changed, 56 insertions, 56 deletions
diff --git a/core/src/fxcodec/codec/DEPS b/core/src/fxcodec/codec/DEPS
index bfbbd82831..495d288992 100644
--- a/core/src/fxcodec/codec/DEPS
+++ b/core/src/fxcodec/codec/DEPS
@@ -1,4 +1,4 @@
include_rules = [
- '+third_party/libpng/png.h',
+ '+third_party/libpng16/png.h',
'+third_party/libtiff/tiffiop.h',
]
diff --git a/core/src/fxcodec/codec/fx_codec_png.cpp b/core/src/fxcodec/codec/fx_codec_png.cpp
index 97c2f77f77..9e08473339 100644
--- a/core/src/fxcodec/codec/fx_codec_png.cpp
+++ b/core/src/fxcodec/codec/fx_codec_png.cpp
@@ -12,7 +12,7 @@
extern "C" {
#undef FAR
-#include "third_party/libpng/png.h"
+#include "third_party/libpng16/png.h"
}
static void _png_error_data(png_structp png_ptr, png_const_charp error_msg) {
diff --git a/samples/image_diff_png.cc b/samples/image_diff_png.cc
index 01df836c17..5f0228ce9e 100644
--- a/samples/image_diff_png.cc
+++ b/samples/image_diff_png.cc
@@ -17,7 +17,7 @@
#include <string>
#include "third_party/base/logging.h"
-#include "third_party/libpng/png.h"
+#include "third_party/libpng16/png.h"
#include "third_party/zlib_v128/zlib.h"
namespace image_diff_png {
diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn
index d8d1dd2270..2468dd4e5d 100644
--- a/third_party/BUILD.gn
+++ b/third_party/BUILD.gn
@@ -278,28 +278,28 @@ source_set("fx_lpng") {
"//third_party/pdfium:pdfium_config",
]
sources = [
- "libpng/png.c",
- "libpng/png.h",
- "libpng/pngconf.h",
- "libpng/pngdebug.h",
- "libpng/pngerror.c",
- "libpng/pngget.c",
- "libpng/pnginfo.h",
- "libpng/pnglibconf.h",
- "libpng/pngmem.c",
- "libpng/pngpread.c",
- "libpng/pngpriv.h",
- "libpng/pngread.c",
- "libpng/pngrio.c",
- "libpng/pngrtran.c",
- "libpng/pngrutil.c",
- "libpng/pngset.c",
- "libpng/pngstruct.h",
- "libpng/pngtrans.c",
- "libpng/pngwio.c",
- "libpng/pngwrite.c",
- "libpng/pngwtran.c",
- "libpng/pngwutil.c",
+ "libpng16/png.c",
+ "libpng16/png.h",
+ "libpng16/pngconf.h",
+ "libpng16/pngdebug.h",
+ "libpng16/pngerror.c",
+ "libpng16/pngget.c",
+ "libpng16/pnginfo.h",
+ "libpng16/pnglibconf.h",
+ "libpng16/pngmem.c",
+ "libpng16/pngpread.c",
+ "libpng16/pngpriv.h",
+ "libpng16/pngread.c",
+ "libpng16/pngrio.c",
+ "libpng16/pngrtran.c",
+ "libpng16/pngrutil.c",
+ "libpng16/pngset.c",
+ "libpng16/pngstruct.h",
+ "libpng16/pngtrans.c",
+ "libpng16/pngwio.c",
+ "libpng16/pngwrite.c",
+ "libpng16/pngwtran.c",
+ "libpng16/pngwutil.c",
]
}
diff --git a/third_party/libpng/0000-build-config.patch b/third_party/libpng16/0000-build-config.patch
index 4f0013970a..7b7b158f32 100644
--- a/third_party/libpng/0000-build-config.patch
+++ b/third_party/libpng16/0000-build-config.patch
@@ -1,6 +1,6 @@
-diff a/third_party/libpng/pngmem.c b/third_party/libpng/pngmem.c
---- a/third_party/libpng/pngmem.c
-+++ b/third_party/libpng/pngmem.c
+diff a/third_party/libpng16/pngmem.c b/third_party/libpng16/pngmem.c
+--- a/third_party/libpng16/pngmem.c
++++ b/third_party/libpng16/pngmem.c
@@ -19,6 +19,9 @@
#include "pngpriv.h"
@@ -29,9 +29,9 @@ diff a/third_party/libpng/pngmem.c b/third_party/libpng/pngmem.c
}
#ifdef PNG_USER_MEM_SUPPORTED
-diff a/third_party/libpng/pngstruct.h b/third_party/libpng/pngstruct.h
---- a/third_party/libpng/pngstruct.h
-+++ b/third_party/libpng/pngstruct.h
+diff a/third_party/libpng16/pngstruct.h b/third_party/libpng16/pngstruct.h
+--- a/third_party/libpng16/pngstruct.h
++++ b/third_party/libpng16/pngstruct.h
@@ -27,7 +27,7 @@
/* We must ensure that zlib uses 'const' in declarations. */
# define ZLIB_CONST
diff --git a/third_party/libpng/0001-disable-arm-neon.patch b/third_party/libpng16/0001-disable-arm-neon.patch
index b5105f755f..91616bbf84 100644
--- a/third_party/libpng/0001-disable-arm-neon.patch
+++ b/third_party/libpng16/0001-disable-arm-neon.patch
@@ -1,6 +1,6 @@
-diff a/third_party/libpng/pngpriv.h b/third_party/libpng/pngpriv.h
---- a/third_party/libpng/pngpriv.h
-+++ b/third_party/libpng/pngpriv.h
+diff a/third_party/libpng16/pngpriv.h b/third_party/libpng16/pngpriv.h
+--- a/third_party/libpng16/pngpriv.h
++++ b/third_party/libpng16/pngpriv.h
@@ -127,7 +127,7 @@
*/
# if (defined(__ARM_NEON__) || defined(__ARM_NEON)) && \
diff --git a/third_party/libpng/README.pdfium b/third_party/libpng16/README.pdfium
index 66d2d0684a..66d2d0684a 100644
--- a/third_party/libpng/README.pdfium
+++ b/third_party/libpng16/README.pdfium
diff --git a/third_party/libpng/png.c b/third_party/libpng16/png.c
index c183e3f8fa..c183e3f8fa 100644
--- a/third_party/libpng/png.c
+++ b/third_party/libpng16/png.c
diff --git a/third_party/libpng/png.h b/third_party/libpng16/png.h
index 4d03dfc136..4d03dfc136 100644
--- a/third_party/libpng/png.h
+++ b/third_party/libpng16/png.h
diff --git a/third_party/libpng/pngconf.h b/third_party/libpng16/pngconf.h
index 92f250000c..92f250000c 100644
--- a/third_party/libpng/pngconf.h
+++ b/third_party/libpng16/pngconf.h
diff --git a/third_party/libpng/pngdebug.h b/third_party/libpng16/pngdebug.h
index 6a01b106ed..6a01b106ed 100644
--- a/third_party/libpng/pngdebug.h
+++ b/third_party/libpng16/pngdebug.h
diff --git a/third_party/libpng/pngerror.c b/third_party/libpng16/pngerror.c
index bdb959ee51..bdb959ee51 100644
--- a/third_party/libpng/pngerror.c
+++ b/third_party/libpng16/pngerror.c
diff --git a/third_party/libpng/pngget.c b/third_party/libpng16/pngget.c
index 743a6a9bbc..743a6a9bbc 100644
--- a/third_party/libpng/pngget.c
+++ b/third_party/libpng16/pngget.c
diff --git a/third_party/libpng/pnginfo.h b/third_party/libpng16/pnginfo.h
index 4bd264b869..4bd264b869 100644
--- a/third_party/libpng/pnginfo.h
+++ b/third_party/libpng16/pnginfo.h
diff --git a/third_party/libpng/pnglibconf.h b/third_party/libpng16/pnglibconf.h
index adf4238ff7..adf4238ff7 100644
--- a/third_party/libpng/pnglibconf.h
+++ b/third_party/libpng16/pnglibconf.h
diff --git a/third_party/libpng/pngmem.c b/third_party/libpng16/pngmem.c
index db71219520..db71219520 100644
--- a/third_party/libpng/pngmem.c
+++ b/third_party/libpng16/pngmem.c
diff --git a/third_party/libpng/pngpread.c b/third_party/libpng16/pngpread.c
index 89ffc4018f..89ffc4018f 100644
--- a/third_party/libpng/pngpread.c
+++ b/third_party/libpng16/pngpread.c
diff --git a/third_party/libpng/pngpriv.h b/third_party/libpng16/pngpriv.h
index 58d3aa8159..58d3aa8159 100644
--- a/third_party/libpng/pngpriv.h
+++ b/third_party/libpng16/pngpriv.h
diff --git a/third_party/libpng/pngread.c b/third_party/libpng16/pngread.c
index 9cb4d2e41d..9cb4d2e41d 100644
--- a/third_party/libpng/pngread.c
+++ b/third_party/libpng16/pngread.c
diff --git a/third_party/libpng/pngrio.c b/third_party/libpng16/pngrio.c
index 38f7fd49d6..38f7fd49d6 100644
--- a/third_party/libpng/pngrio.c
+++ b/third_party/libpng16/pngrio.c
diff --git a/third_party/libpng/pngrtran.c b/third_party/libpng16/pngrtran.c
index f129ef129c..f129ef129c 100644
--- a/third_party/libpng/pngrtran.c
+++ b/third_party/libpng16/pngrtran.c
diff --git a/third_party/libpng/pngrutil.c b/third_party/libpng16/pngrutil.c
index 6189251352..6189251352 100644
--- a/third_party/libpng/pngrutil.c
+++ b/third_party/libpng16/pngrutil.c
diff --git a/third_party/libpng/pngset.c b/third_party/libpng16/pngset.c
index 8fd7965fca..8fd7965fca 100644
--- a/third_party/libpng/pngset.c
+++ b/third_party/libpng16/pngset.c
diff --git a/third_party/libpng/pngstruct.h b/third_party/libpng16/pngstruct.h
index ad1e7a5adc..ad1e7a5adc 100644
--- a/third_party/libpng/pngstruct.h
+++ b/third_party/libpng16/pngstruct.h
diff --git a/third_party/libpng/pngtrans.c b/third_party/libpng16/pngtrans.c
index 0c0d92d8fd..0c0d92d8fd 100644
--- a/third_party/libpng/pngtrans.c
+++ b/third_party/libpng16/pngtrans.c
diff --git a/third_party/libpng/pngwio.c b/third_party/libpng16/pngwio.c
index db76e6b8d7..db76e6b8d7 100644
--- a/third_party/libpng/pngwio.c
+++ b/third_party/libpng16/pngwio.c
diff --git a/third_party/libpng/pngwrite.c b/third_party/libpng16/pngwrite.c
index 0d4ee9f7ae..0d4ee9f7ae 100644
--- a/third_party/libpng/pngwrite.c
+++ b/third_party/libpng16/pngwrite.c
diff --git a/third_party/libpng/pngwtran.c b/third_party/libpng16/pngwtran.c
index 5dc949157d..5dc949157d 100644
--- a/third_party/libpng/pngwtran.c
+++ b/third_party/libpng16/pngwtran.c
diff --git a/third_party/libpng/pngwutil.c b/third_party/libpng16/pngwutil.c
index 0ee102b5fb..0ee102b5fb 100644
--- a/third_party/libpng/pngwutil.c
+++ b/third_party/libpng16/pngwutil.c
diff --git a/third_party/third_party.gyp b/third_party/third_party.gyp
index f653760c49..97deacf49c 100644
--- a/third_party/third_party.gyp
+++ b/third_party/third_party.gyp
@@ -269,28 +269,28 @@
'target_name': 'fx_lpng',
'type': 'static_library',
'sources': [
- 'libpng/png.c',
- 'libpng/png.h',
- 'libpng/pngconf.h',
- 'libpng/pngdebug.h',
- 'libpng/pngerror.c',
- 'libpng/pngget.c',
- 'libpng/pnginfo.h',
- 'libpng/pnglibconf.h',
- 'libpng/pngmem.c',
- 'libpng/pngpread.c',
- 'libpng/pngpriv.h',
- 'libpng/pngread.c',
- 'libpng/pngrio.c',
- 'libpng/pngrtran.c',
- 'libpng/pngrutil.c',
- 'libpng/pngset.c',
- 'libpng/pngstruct.h',
- 'libpng/pngtrans.c',
- 'libpng/pngwio.c',
- 'libpng/pngwrite.c',
- 'libpng/pngwtran.c',
- 'libpng/pngwutil.c',
+ 'libpng16/png.c',
+ 'libpng16/png.h',
+ 'libpng16/pngconf.h',
+ 'libpng16/pngdebug.h',
+ 'libpng16/pngerror.c',
+ 'libpng16/pngget.c',
+ 'libpng16/pnginfo.h',
+ 'libpng16/pnglibconf.h',
+ 'libpng16/pngmem.c',
+ 'libpng16/pngpread.c',
+ 'libpng16/pngpriv.h',
+ 'libpng16/pngread.c',
+ 'libpng16/pngrio.c',
+ 'libpng16/pngrtran.c',
+ 'libpng16/pngrutil.c',
+ 'libpng16/pngset.c',
+ 'libpng16/pngstruct.h',
+ 'libpng16/pngtrans.c',
+ 'libpng16/pngwio.c',
+ 'libpng16/pngwrite.c',
+ 'libpng16/pngwtran.c',
+ 'libpng16/pngwutil.c',
],
},
{