Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit 710845c

Browse files
Shigeki Ohtsutjfontaine
authored andcommitted
deps: fix zlib.gyp for zlib upgrade to 1.2.8
This adds new sources for gzip files and defines a new flag for mac and freebsd. They are taken from third_party/zlib/zlib.gyp in Chromium repository.
1 parent 33f74bb commit 710845c

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

deps/zlib/zlib.gyp

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727
'crc32.h',
2828
'deflate.c',
2929
'deflate.h',
30-
'gzio.c',
30+
'gzclose.c',
31+
'gzguts.h',
32+
'gzlib.c',
33+
'gzread.c',
34+
'gzwrite.c',
3135
'infback.c',
3236
'inffast.c',
3337
'inffast.h',
@@ -36,7 +40,6 @@
3640
'inflate.h',
3741
'inftrees.c',
3842
'inftrees.h',
39-
'mozzconf.h',
4043
'trees.c',
4144
'trees.h',
4245
'uncompr.c',
@@ -63,6 +66,14 @@
6366
'contrib/minizip/iowin32.c'
6467
],
6568
}],
69+
['OS=="mac" or OS=="ios" or OS=="freebsd" or OS=="android"', {
70+
# Mac, Android and the BSDs don't have fopen64, ftello64, or
71+
# fseeko64. We use fopen, ftell, and fseek instead on these
72+
# systems.
73+
'defines': [
74+
'USE_FILE32API'
75+
],
76+
}],
6677
],
6778
},
6879
],

0 commit comments

Comments
 (0)