deps: update zlib.gyp for zlib 1.2.8
authorShigeki Ohtsu <ohtsu@iij.ad.jp>
Mon, 1 Dec 2014 05:18:53 +0000 (14:18 +0900)
committerBert Belder <bertbelder@gmail.com>
Thu, 8 Jan 2015 22:59:53 +0000 (23:59 +0100)
This adds the new gzip source files to the zlib.gyp The changes are
derived from third_party/zlib/zlib.gyp in the Chromium repository.

Reviewed-By: Bert Belder <bertbelder@gmail.com>
deps/zlib/zlib.gyp

index 25bcc74..fac801c 100644 (file)
             'crc32.h',
             'deflate.c',
             'deflate.h',
-            'gzio.c',
+            'gzclose.c',
+            'gzguts.h',
+            'gzlib.c',
+            'gzread.c',
+            'gzwrite.c',
             'infback.c',
             'inffast.c',
             'inffast.h',
@@ -36,7 +40,6 @@
             'inflate.h',
             'inftrees.c',
             'inftrees.h',
-            'mozzconf.h',
             'trees.c',
             'trees.h',
             'uncompr.c',
                 'contrib/minizip/iowin32.c'
               ],
             }],
+            ['OS=="mac" or OS=="ios" or OS=="freebsd" or OS=="android"', {
+              # Mac, Android and the BSDs don't have fopen64, ftello64, or
+              # fseeko64. We use fopen, ftell, and fseek instead on these
+              # systems.
+              'defines': [
+                'USE_FILE32API'
+              ],
+            }],
           ],
         },
       ],