Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Zlib
提交
a7d70663
T
Third Party Zlib
项目概览
OpenHarmony
/
Third Party Zlib
1 年多 前同步成功
通知
16
Star
112
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Zlib
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a7d70663
编写于
9月 09, 2011
作者:
M
Mark Adler
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zlib 1.2.4.4
上级
f4498bea
变更
22
隐藏空白更改
内联
并排
Showing
22 changed file
with
138 addition
and
81 deletion
+138
-81
ChangeLog
ChangeLog
+11
-0
Makefile.in
Makefile.in
+6
-3
README
README
+2
-2
configure
configure
+35
-39
contrib/delphi/ZLib.pas
contrib/delphi/ZLib.pas
+1
-1
contrib/dotzlib/DotZLib/UnitTests.cs
contrib/dotzlib/DotZLib/UnitTests.cs
+1
-1
contrib/infback9/inftree9.c
contrib/infback9/inftree9.c
+2
-2
contrib/pascal/zlibpas.pas
contrib/pascal/zlibpas.pas
+1
-1
contrib/vstudio/vc10/zlib.rc
contrib/vstudio/vc10/zlib.rc
+3
-3
contrib/vstudio/vc9/zlib.rc
contrib/vstudio/vc9/zlib.rc
+3
-3
deflate.c
deflate.c
+1
-1
inftrees.c
inftrees.c
+2
-2
qnx/package.qpg
qnx/package.qpg
+5
-5
treebuild.xml
treebuild.xml
+2
-2
win32/Makefile.gcc
win32/Makefile.gcc
+22
-6
zconf.h
zconf.h
+11
-1
zconf.h.cmakein
zconf.h.cmakein
+11
-1
zconf.h.in
zconf.h.in
+11
-1
zlib.3
zlib.3
+2
-2
zlib.3.pdf
zlib.3.pdf
+0
-0
zlib.h
zlib.h
+4
-4
zlib.pc.in
zlib.pc.in
+2
-1
未找到文件。
ChangeLog
浏览文件 @
a7d70663
ChangeLog file for zlib
Changes in 1.2.4.4 (18 Apr 2010)
- Fix CROSS_PREFIX executable testing, CHOST extract, mingw* [Tšršk]
- Undefine _LARGEFILE64_SOURCE in zconf.h if it is zero, but not if empty
- Try to use bash or ksh regardless of functionality of /bin/sh
- Fix configure incompatibility with NetBSD sh
- Remove attempt to run under bash or ksh since have better NetBSD fix
- Fix win32/Makefile.gcc for MinGW [Bar-Lev]
- Add diagnostic messages when using CROSS_PREFIX in configure
- Added --sharedlibdir option to configure [Weigelt]
- Use hidden visibility attribute when available [Frysinger]
Changes in 1.2.4.3 (10 Apr 2010)
- Only use CROSS_PREFIX in configure for ar and ranlib if they exist
- Use CROSS_PREFIX for nm [Bar-Lev]
...
...
Makefile.in
浏览文件 @
a7d70663
...
...
@@ -32,7 +32,7 @@ CPP=$(CC) -E
STATICLIB
=
libz.a
SHAREDLIB
=
libz.so
SHAREDLIBV
=
libz.so.1.2.4.
3
SHAREDLIBV
=
libz.so.1.2.4.
4
SHAREDLIBM
=
libz.so.1
LIBS
=
$(STATICLIB)
$(SHAREDLIBV)
...
...
@@ -47,6 +47,7 @@ EXE=
prefix
=
/usr/local
exec_prefix
=
${prefix}
libdir
=
${exec_prefix}
/lib
sharedlibdir
=
${libdir}
includedir
=
${prefix}
/include
mandir
=
${prefix}
/share/man
man3dir
=
${mandir}
/man3
...
...
@@ -163,12 +164,14 @@ minigzip64$(EXE): minigzip64.o $(STATICLIB)
install-libs
:
$(LIBS)
-
@if
[
!
-d
$(DESTDIR)$(exec_prefix)
]
;
then
mkdir
-p
$(DESTDIR)$(exec_prefix)
;
fi
-
@if
[
!
-d
$(DESTDIR)$(libdir)
]
;
then
mkdir
-p
$(DESTDIR)$(libdir)
;
fi
-
@if
[
!
-d
$(DESTDIR)$(sharedlibdir)
]
;
then
mkdir
-p
$(DESTDIR)$(sharedlibdir)
;
fi
-
@if
[
!
-d
$(DESTDIR)$(man3dir)
]
;
then
mkdir
-p
$(DESTDIR)$(man3dir)
;
fi
-
@if
[
!
-d
$(DESTDIR)$(pkgconfigdir)
]
;
then
mkdir
-p
$(DESTDIR)$(pkgconfigdir)
;
fi
cp
$(LIBS)
$(DESTDIR)$(libdir)
cp
$(STATICLIB)
$(DESTDIR)$(libdir)
cp
$(SHAREDLIBV)
$(DESTDIR)$(sharedlibdir)
cd
$(DESTDIR)$(libdir)
;
chmod
u
=
rw,go
=
r
$(STATICLIB)
-
@
(
cd
$(DESTDIR)$(libdir)
;
$(RANLIB)
libz.a
||
true
)
>
/dev/null 2>&1
-
@cd
$(DESTDIR)$(libdir)
;
if
test
"
$(SHAREDLIBV)
"
-a
-f
$(SHAREDLIBV)
;
then
\
-
@cd
$(DESTDIR)$(
shared
libdir)
;
if
test
"
$(SHAREDLIBV)
"
-a
-f
$(SHAREDLIBV)
;
then
\
chmod
755
$(SHAREDLIBV)
;
\
rm
-f
$(SHAREDLIB)
$(SHAREDLIBM)
;
\
ln
-s
$(SHAREDLIBV)
$(SHAREDLIB)
;
\
...
...
README
浏览文件 @
a7d70663
ZLIB DATA COMPRESSION LIBRARY
zlib 1.2.4.
3
is a general purpose data compression library. All the code is
zlib 1.2.4.
4
is a general purpose data compression library. All the code is
thread safe. The data format used by the zlib library is described by RFCs
(Request for Comments) 1950 to 1952 in the files
http://www.ietf.org/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate format)
...
...
@@ -31,7 +31,7 @@ Mark Nelson <markn@ieee.org> wrote an article about zlib for the Jan. 1997
issue of Dr. Dobb's Journal; a copy of the article is available at
http://marknelson.us/1997/01/01/zlib-engine/ .
The changes made in version 1.2.4.
3
are documented in the file ChangeLog.
The changes made in version 1.2.4.
4
are documented in the file ChangeLog.
Unsupported third party contributions are provided in directory contrib/ .
...
...
configure
浏览文件 @
a7d70663
...
...
@@ -13,37 +13,8 @@
# If you have problems, try without defining CC and CFLAGS before reporting
# an error.
# make sure we are running under a compatible shell (stolen from ffmpeg and libnfo,
# except their's wasn't portable enough due to ! usage, so this is better)
if
test
"0
$ZLIB_CONFIGURE_EXEC
"
-lt
1
;
then
unset
foo
try
=
0
(
:
${
foo
%%bar
}
)
2>/dev/null
if
test
"
$?
"
-ne
0
;
then
try
=
1
else
(
:
${
foo
?
}
)
2>/dev/null
if
test
"
$?
"
-eq
0
;
then
try
=
1
fi
fi
if
test
"
$try
"
-eq
1
;
then
ZLIB_CONFIGURE_EXEC
=
1
export
ZLIB_CONFIGURE_EXEC
type
"bash"
>
/dev/null 2>&1
&&
exec
bash
"
$0
"
"
$@
"
type
"ksh"
>
/dev/null 2>&1
&&
exec
ksh
"
$0
"
"
$@
"
if
test
-x
/usr/xpg4/bin/sh
;
then
exec
/usr/xpg4/bin/sh
"
$0
"
"
$@
"
fi
# echo "No compatible shell script interpreter found."
# exit 1
# we could give up here, but go ahead and give their old sh a try
fi
unset
try
fi
if
[
-n
"
${
CHOST
}
"
]
;
then
uname
=
"
$(
echo
"
${
CHOST
}
"
|
sed
's/.*-.*-\(.*\)-.*
/\1/'
)
"
uname
=
"
$(
echo
"
${
CHOST
}
"
|
sed
-e
's/.*-.*-\(.*\)-.*$/\1/'
-e
's/.*-\(.*\)-.*/\1/'
-e
's/.*-\(.*\)$
/\1/'
)
"
CROSS_PREFIX
=
"
${
CHOST
}
-"
fi
...
...
@@ -53,24 +24,28 @@ VER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`
VER3
=
`
sed
-n
-e
'/VERSION "/s/.*"\([0-9]*\\.[0-9]*\\.[0-9]*\).*/\1/p'
< zlib.h
`
VER2
=
`
sed
-n
-e
'/VERSION "/s/.*"\([0-9]*\\.[0-9]*\)\\..*/\1/p'
< zlib.h
`
VER1
=
`
sed
-n
-e
'/VERSION "/s/.*"\([0-9]*\)\\..*/\1/p'
< zlib.h
`
if
[
-x
"
${
CROSS_PREFIX
}
ar"
]
;
then
if
"
${
CROSS_PREFIX
}
ar"
--version
>
/dev/null 2>/dev/null
||
test
$?
-lt
126
;
then
AR
=
${
AR
-
"
${
CROSS_PREFIX
}
ar"
}
test
-n
"
${
CROSS_PREFIX
}
"
&&
echo
Using
${
AR
}
else
AR
=
${
AR
-
"ar"
}
test
-n
"
${
CROSS_PREFIX
}
"
&&
echo
Using
${
AR
}
fi
AR_RC
=
"
${
AR
}
rc"
if
[
-x
"
${
CROSS_PREFIX
}
ranlib"
]
;
then
if
"
${
CROSS_PREFIX
}
ranlib"
--version
>
/dev/null 2>/dev/null
||
test
$?
-lt
126
;
then
RANLIB
=
${
RANLIB
-
"
${
CROSS_PREFIX
}
ranlib"
}
test
-n
"
${
CROSS_PREFIX
}
"
&&
echo
Using
${
RANLIB
}
else
RANLIB
=
${
RANLIB
-
"ranlib"
}
fi
if
[
-x
"
${
CROSS_PREFIX
}
nm"
]
;
then
if
"
${
CROSS_PREFIX
}
nm"
--version
>
/dev/null 2>/dev/null
||
test
$?
-lt
126
;
then
NM
=
${
NM
-
"
${
CROSS_PREFIX
}
nm"
}
test
-n
"
${
CROSS_PREFIX
}
"
&&
echo
Using
${
NM
}
else
NM
=
${
NM
-
"nm"
}
fi
LDCONFIG
=
${
LDCONFIG
-
"ldconfig"
}
LDSHAREDLIBC
=
"
${
LDSHAREDLIBC
-
"-lc"
}
"
LDSHAREDLIBC
=
"
${
LDSHAREDLIBC
-
-lc
}
"
prefix
=
${
prefix
-/usr/local
}
exec_prefix
=
${
exec_prefix
-
'${prefix}'
}
libdir
=
${
libdir
-
'${exec_prefix}/lib'
}
...
...
@@ -90,11 +65,13 @@ case "$1" in
-h
*
|
--help
)
echo
'usage:'
echo
' configure [--zprefix] [--prefix=PREFIX] [--eprefix=EXPREFIX]'
echo
' [--static] [--64] [--libdir=LIBDIR] [--includedir=INCLUDEDIR]'
echo
' [--static] [--64] [--libdir=LIBDIR] [--sharedlibdir=LIBDIR]'
echo
' [--includedir=INCLUDEDIR]'
exit
0
;;
-p
*
=
*
|
--prefix
=
*
)
prefix
=
`
echo
$1
|
sed
's/.*=//'
`
;
shift
;;
-e
*
=
*
|
--eprefix
=
*
)
exec_prefix
=
`
echo
$1
|
sed
's/.*=//'
`
;
shift
;;
-l
*
=
*
|
--libdir
=
*
)
libdir
=
`
echo
$1
|
sed
's/.*=//'
`
;
shift
;;
--sharedlibdir
=
*
)
sharedlibdir
=
`
echo
$1
|
sed
's/.*=//'
`
;
shift
;;
-i
*
=
*
|
--includedir
=
*
)
includedir
=
`
echo
$1
|
sed
's/.*=//'
`
;
shift
;;
-u
*
=
*
|
--uname
=
*
)
uname
=
`
echo
$1
|
sed
's/.*=//'
`
;
shift
;;
-p
*
|
--prefix
)
prefix
=
"
$2
"
;
shift
;
shift
;;
...
...
@@ -117,7 +94,7 @@ extern int getchar();
int hello() {return getchar();}
EOF
test
-z
"
$CC
"
&&
echo
Checking
for
gcc...
test
-z
"
$CC
"
&&
echo
Checking
for
${
CROSS_PREFIX
}
gcc...
cc
=
${
CC
-
${
CROSS_PREFIX
}
gcc
}
cflags
=
${
CFLAGS
-
"-O3"
}
# to force the asm version use: CFLAGS="-O3 -DASMV" ./configure
...
...
@@ -127,8 +104,8 @@ esac
if
test
"
$gcc
"
-eq
1
&&
(
$cc
-c
$cflags
$test
.c
)
2>/dev/null
;
then
CC
=
"
$cc
"
SFLAGS
=
"
${
CFLAGS
-
"-O3"
}
-fPIC"
CFLAGS
=
"
${
CFLAGS
-
"-O3"
}
"
SFLAGS
=
"
${
CFLAGS
-
-O3
}
-fPIC"
CFLAGS
=
"
${
CFLAGS
-
-O3
}
"
if
test
$build64
-eq
1
;
then
CFLAGS
=
"
${
CFLAGS
}
-m64"
SFLAGS
=
"
${
SFLAGS
}
-m64"
...
...
@@ -143,7 +120,7 @@ if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then
Linux
*
|
linux
*
|
GNU
|
GNU/
*
|
*
BSD
|
DragonFly
)
LDSHARED
=
${
LDSHARED
-
"
$cc
-shared -Wl,-soname,libz.so.1,--version-script,zlib.map"
}
;;
CYGWIN
*
|
Cygwin
*
|
cygwin
*
|
OS/2
*
)
EXE
=
'.exe'
;;
MINGW
*
)
MINGW
*
|
mingw
*
)
LDSHARED
=
${
LDSHARED
-
"
$cc
-shared"
}
LDSHAREDLIBC
=
""
EXE
=
'.exe'
;;
...
...
@@ -527,6 +504,23 @@ EOF
fi
fi
cat
>
$test
.c
<<
EOF
int foo __attribute__ ((visibility ("hidden")));
int main()
{
return 0;
}
EOF
if
test
"
`
(
$CC
-c
-fvisibility
=
hidden
$CFLAGS
$test
.c
)
2>&1
`
"
=
""
;
then
CFLAGS
=
"
$CFLAGS
-fvisibility=hidden"
SFLAGS
=
"
$SFLAGS
-fvisibility=hidden"
echo
"Checking for attribute(visibility) support... Yes."
else
CFLAGS
=
"
$CFLAGS
-DNO_VIZ"
SFLAGS
=
"
$SFLAGS
-DNO_VIZ"
echo
"Checking for attribute(visibility) support... No."
fi
CPP
=
${
CPP
-
"
$CC
-E"
}
case
$CFLAGS
in
*
ASMV
*
)
...
...
@@ -560,6 +554,7 @@ sed < Makefile.in "
/^prefix *=/s#=.*#=
$prefix
#
/^exec_prefix *=/s#=.*#=
$exec_prefix
#
/^libdir *=/s#=.*#=
$libdir
#
/^sharedlibdir *=/s#=.*#=
$sharedlibdir
#
/^includedir *=/s#=.*#=
$includedir
#
/^mandir *=/s#=.*#=
$mandir
#
/^all: */s#:.*#:
$ALL
#
...
...
@@ -581,6 +576,7 @@ sed < zlib.pc.in "
/^prefix *=/s#=.*#=
$prefix
#
/^exec_prefix *=/s#=.*#=
$exec_prefix
#
/^libdir *=/s#=.*#=
$libdir
#
/^sharedlibdir *=/s#=.*#=
$sharedlibdir
#
/^includedir *=/s#=.*#=
$includedir
#
/^mandir *=/s#=.*#=
$mandir
#
/^LDFLAGS *=/s#=.*#=
$LDFLAGS
#
...
...
contrib/delphi/ZLib.pas
浏览文件 @
a7d70663
...
...
@@ -152,7 +152,7 @@ procedure DecompressToUserBuf(const InBuf: Pointer; InBytes: Integer;
const
OutBuf
:
Pointer
;
BufSize
:
Integer
);
const
zlib_version
=
'1.2.4.
3
'
;
zlib_version
=
'1.2.4.
4
'
;
type
EZlibError
=
class
(
Exception
);
...
...
contrib/dotzlib/DotZLib/UnitTests.cs
浏览文件 @
a7d70663
...
...
@@ -156,7 +156,7 @@ namespace DotZLibTests
public
void
Info_Version
()
{
Info
info
=
new
Info
();
Assert
.
AreEqual
(
"1.2.4.
3
"
,
Info
.
Version
);
Assert
.
AreEqual
(
"1.2.4.
4
"
,
Info
.
Version
);
Assert
.
AreEqual
(
32
,
info
.
SizeOfUInt
);
Assert
.
AreEqual
(
32
,
info
.
SizeOfULong
);
Assert
.
AreEqual
(
32
,
info
.
SizeOfPointer
);
...
...
contrib/infback9/inftree9.c
浏览文件 @
a7d70663
...
...
@@ -9,7 +9,7 @@
#define MAXBITS 15
const
char
inflate9_copyright
[]
=
" inflate9 1.2.4.
3
Copyright 1995-2010 Mark Adler "
;
" inflate9 1.2.4.
4
Copyright 1995-2010 Mark Adler "
;
/*
If you use the zlib library in a product, an acknowledgment is welcome
in the documentation of your product. If for some reason you cannot
...
...
@@ -64,7 +64,7 @@ unsigned short FAR *work;
static
const
unsigned
short
lext
[
31
]
=
{
/* Length codes 257..285 extra */
128
,
128
,
128
,
128
,
128
,
128
,
128
,
128
,
129
,
129
,
129
,
129
,
130
,
130
,
130
,
130
,
131
,
131
,
131
,
131
,
132
,
132
,
132
,
132
,
133
,
133
,
133
,
133
,
144
,
195
,
66
};
133
,
133
,
133
,
133
,
144
,
74
,
65
};
static
const
unsigned
short
dbase
[
32
]
=
{
/* Distance codes 0..31 base */
1
,
2
,
3
,
4
,
5
,
7
,
9
,
13
,
17
,
25
,
33
,
49
,
65
,
97
,
129
,
193
,
257
,
385
,
513
,
769
,
1025
,
1537
,
2049
,
3073
,
...
...
contrib/pascal/zlibpas.pas
浏览文件 @
a7d70663
...
...
@@ -10,7 +10,7 @@ unit zlibpas;
interface
const
ZLIB_VERSION
=
'1.2.4.
3
'
;
ZLIB_VERSION
=
'1.2.4.
4
'
;
type
alloc_func
=
function
(
opaque
:
Pointer
;
items
,
size
:
Integer
):
Pointer
;
...
...
contrib/vstudio/vc10/zlib.rc
浏览文件 @
a7d70663
...
...
@@ -2,8 +2,8 @@
#define IDR_VERSION1 1
IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
FILEVERSION 1,2,4,
3
PRODUCTVERSION 1,2,4,
3
FILEVERSION 1,2,4,
4
PRODUCTVERSION 1,2,4,
4
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS 0
FILEOS VOS_DOS_WINDOWS32
...
...
@@ -17,7 +17,7 @@ BEGIN
BEGIN
VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
VALUE "FileVersion", "1.2.4.
3
\0"
VALUE "FileVersion", "1.2.4.
4
\0"
VALUE "InternalName", "zlib\0"
VALUE "OriginalFilename", "zlib.dll\0"
VALUE "ProductName", "ZLib.DLL\0"
...
...
contrib/vstudio/vc9/zlib.rc
浏览文件 @
a7d70663
...
...
@@ -2,8 +2,8 @@
#define IDR_VERSION1 1
IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
FILEVERSION 1,2,4,
3
PRODUCTVERSION 1,2,4,
3
FILEVERSION 1,2,4,
4
PRODUCTVERSION 1,2,4,
4
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS 0
FILEOS VOS_DOS_WINDOWS32
...
...
@@ -17,7 +17,7 @@ BEGIN
BEGIN
VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
VALUE "FileVersion", "1.2.4.
3
\0"
VALUE "FileVersion", "1.2.4.
4
\0"
VALUE "InternalName", "zlib\0"
VALUE "OriginalFilename", "zlib.dll\0"
VALUE "ProductName", "ZLib.DLL\0"
...
...
deflate.c
浏览文件 @
a7d70663
...
...
@@ -52,7 +52,7 @@
#include "deflate.h"
const
char
deflate_copyright
[]
=
" deflate 1.2.4.
3
Copyright 1995-2010 Jean-loup Gailly and Mark Adler "
;
" deflate 1.2.4.
4
Copyright 1995-2010 Jean-loup Gailly and Mark Adler "
;
/*
If you use the zlib library in a product, an acknowledgment is welcome
in the documentation of your product. If for some reason you cannot
...
...
inftrees.c
浏览文件 @
a7d70663
...
...
@@ -9,7 +9,7 @@
#define MAXBITS 15
const
char
inflate_copyright
[]
=
" inflate 1.2.4.
3
Copyright 1995-2010 Mark Adler "
;
" inflate 1.2.4.
4
Copyright 1995-2010 Mark Adler "
;
/*
If you use the zlib library in a product, an acknowledgment is welcome
in the documentation of your product. If for some reason you cannot
...
...
@@ -62,7 +62,7 @@ unsigned short FAR *work;
35
,
43
,
51
,
59
,
67
,
83
,
99
,
115
,
131
,
163
,
195
,
227
,
258
,
0
,
0
};
static
const
unsigned
short
lext
[
31
]
=
{
/* Length codes 257..285 extra */
16
,
16
,
16
,
16
,
16
,
16
,
16
,
16
,
17
,
17
,
17
,
17
,
18
,
18
,
18
,
18
,
19
,
19
,
19
,
19
,
20
,
20
,
20
,
20
,
21
,
21
,
21
,
21
,
16
,
195
,
66
};
19
,
19
,
19
,
19
,
20
,
20
,
20
,
20
,
21
,
21
,
21
,
21
,
16
,
74
,
65
};
static
const
unsigned
short
dbase
[
32
]
=
{
/* Distance codes 0..29 base */
1
,
2
,
3
,
4
,
5
,
7
,
9
,
13
,
17
,
25
,
33
,
49
,
65
,
97
,
129
,
193
,
257
,
385
,
513
,
769
,
1025
,
1537
,
2049
,
3073
,
4097
,
6145
,
...
...
qnx/package.qpg
浏览文件 @
a7d70663
...
...
@@ -25,10 +25,10 @@
<QPG:Files>
<QPG:Add file="../zconf.h" install="/opt/include/" user="root:sys" permission="644"/>
<QPG:Add file="../zlib.h" install="/opt/include/" user="root:sys" permission="644"/>
<QPG:Add file="../libz.so.1.2.4.
3
" install="/opt/lib/" user="root:bin" permission="644"/>
<QPG:Add file="libz.so" install="/opt/lib/" component="dev" filetype="symlink" linkto="libz.so.1.2.4.
3
"/>
<QPG:Add file="libz.so.1" install="/opt/lib/" filetype="symlink" linkto="libz.so.1.2.4.
3
"/>
<QPG:Add file="../libz.so.1.2.4.
3
" install="/opt/lib/" component="slib"/>
<QPG:Add file="../libz.so.1.2.4.
4
" install="/opt/lib/" user="root:bin" permission="644"/>
<QPG:Add file="libz.so" install="/opt/lib/" component="dev" filetype="symlink" linkto="libz.so.1.2.4.
4
"/>
<QPG:Add file="libz.so.1" install="/opt/lib/" filetype="symlink" linkto="libz.so.1.2.4.
4
"/>
<QPG:Add file="../libz.so.1.2.4.
4
" install="/opt/lib/" component="slib"/>
</QPG:Files>
<QPG:PackageFilter>
...
...
@@ -63,7 +63,7 @@
</QPM:ProductDescription>
<QPM:ReleaseDescription>
<QPM:ReleaseVersion>1.2.4.
3
</QPM:ReleaseVersion>
<QPM:ReleaseVersion>1.2.4.
4
</QPM:ReleaseVersion>
<QPM:ReleaseUrgency>Medium</QPM:ReleaseUrgency>
<QPM:ReleaseStability>Stable</QPM:ReleaseStability>
<QPM:ReleaseNoteMinor></QPM:ReleaseNoteMinor>
...
...
treebuild.xml
浏览文件 @
a7d70663
<?xml version="1.0" ?>
<package
name=
"zlib"
version=
"1.2.4.
3
"
>
<library
name=
"zlib"
dlversion=
"1.2.4.
3
"
dlname=
"z"
>
<package
name=
"zlib"
version=
"1.2.4.
4
"
>
<library
name=
"zlib"
dlversion=
"1.2.4.
4
"
dlname=
"z"
>
<property
name=
"description"
>
zip compression library
</property>
<property
name=
"include-target-dir"
value=
"$(@PACKAGE/install-includedir)"
/>
...
...
win32/Makefile.gcc
浏览文件 @
a7d70663
...
...
@@ -27,6 +27,11 @@ STATICLIB = libz.a
SHAREDLIB
=
zlib1.dll
IMPLIB
=
libzdll.a
#
# Set to 1 if shared object needs to be installed
#
SHARED_MODE
=
0
#LOC = -DASMV
#LOC = -DDEBUG -g
...
...
@@ -38,7 +43,7 @@ AS = $(CC)
ASFLAGS
=
$(LOC)
-Wall
LD
=
$(CC)
LDFLAGS
=
$(LOC)
-s
LDFLAGS
=
$(LOC)
AR
=
$(PREFIX)
ar
ARFLAGS
=
rcs
...
...
@@ -82,43 +87,54 @@ $(STATICLIB): $(OBJS) $(OBJA)
$(IMPLIB)
:
$(SHAREDLIB)
$(SHAREDLIB)
:
win32/zlib.def $(OBJS) $(OBJA) zlibrc.o
$(CC)
-shared
-Wl
,--out-implib,
$(IMPLIB)
\
$(CC)
-shared
-Wl
,--out-implib,
$(IMPLIB)
$(LDFLAGS)
\
-o
$@
win32/zlib.def
$(OBJS)
$(OBJA)
zlibrc.o
$(STRIP)
$@
example.exe
:
example.o $(STATICLIB)
$(LD)
$(LDFLAGS)
-o
$@
example.o
$(STATICLIB)
$(STRIP)
$@
minigzip.exe
:
minigzip.o $(STATICLIB)
$(LD)
$(LDFLAGS)
-o
$@
minigzip.o
$(STATICLIB)
$(STRIP)
$@
example_d.exe
:
example.o $(IMPLIB)
$(LD)
$(LDFLAGS)
-o
$@
example.o
$(IMPLIB)
$(STRIP)
$@
minigzip_d.exe
:
minigzip.o $(IMPLIB)
$(LD)
$(LDFLAGS)
-o
$@
minigzip.o
$(IMPLIB)
$(STRIP)
$@
zlibrc.o
:
win32/zlib1.rc
$(RC)
$(RCFLAGS)
-o
$@
win32/zlib1.rc
# INCLUDE_PATH and LIBRARY_PATH must be set.
#
BINARY_PATH,
INCLUDE_PATH and LIBRARY_PATH must be set.
.PHONY
:
install uninstall clean
install
:
zlib.h zconf.h $(LIB)
install
:
zlib.h zconf.h $(STATICLIB) $(IMPLIB)
-
if
[
"
$(SHARED_MODE)
"
=
"1"
]
;
then
\
mkdir
-p
$(BINARY_PATH)
;
\
$(INSTALL)
$(SHAREDLIB)
$(BINARY_PATH)
;
\
$(INSTALL)
$(IMPLIB)
$(LIBRARY_PATH)
;
\
fi
-
@mkdir
-p
$(INCLUDE_PATH)
-
@mkdir
-p
$(LIBRARY_PATH)
-
$(INSTALL)
zlib.h
$(INCLUDE_PATH)
-
$(INSTALL)
zconf.h
$(INCLUDE_PATH)
-
$(INSTALL)
$(STATICLIB)
$(LIBRARY_PATH)
-
$(INSTALL)
$(IMPLIB)
$(LIBRARY_PATH)
uninstall
:
-
if
[
"
$(SHARED_MODE)
"
=
"1"
]
;
then
\
$(RM)
$(BINARY_PATH)
/
$(SHAREDLIB)
;
\
$(RM)
$(LIBRARY_PATH)
/
$(IMPLIB)
;
\
fi
-
$(RM)
$(INCLUDE_PATH)
/zlib.h
-
$(RM)
$(INCLUDE_PATH)
/zconf.h
-
$(RM)
$(LIBRARY_PATH)
/
$(STATICLIB)
-
$(RM)
$(LIBRARY_PATH)
/
$(IMPLIB)
clean
:
-
$(RM)
$(STATICLIB)
...
...
zconf.h
浏览文件 @
a7d70663
...
...
@@ -315,7 +315,7 @@
# endif
#endif
#if
def HAVE_VISIBILITY_PRAGMA
#if
ndef NO_VIZ
# define ZEXTERN __attribute__((visibility ("default"))) extern
#endif
...
...
@@ -368,6 +368,16 @@ typedef uLong FAR uLongf;
# include <sys/types.h>
/* for off_t */
#endif
/* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and
* "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even
* though the former does not conform to the LFS document), but considering
* both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as
* equivalently requesting no 64-bit operations
*/
#if -_LARGEFILE64_SOURCE - -1 == 1
# undef _LARGEFILE64_SOURCE
#endif
#if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
# include <unistd.h>
/* for SEEK_* and off_t */
# ifdef VMS
...
...
zconf.h.cmakein
浏览文件 @
a7d70663
...
...
@@ -317,7 +317,7 @@
# endif
#endif
#if
def HAVE_VISIBILITY_PRAGMA
#if
ndef NO_VIZ
# define ZEXTERN __attribute__((visibility ("default"))) extern
#endif
...
...
@@ -370,6 +370,16 @@ typedef uLong FAR uLongf;
# include <sys/types.h> /* for off_t */
#endif
/* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and
* "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even
* though the former does not conform to the LFS document), but considering
* both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as
* equivalently requesting no 64-bit operations
*/
#if -_LARGEFILE64_SOURCE - -1 == 1
# undef _LARGEFILE64_SOURCE
#endif
#if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
# include <unistd.h> /* for SEEK_* and off_t */
# ifdef VMS
...
...
zconf.h.in
浏览文件 @
a7d70663
...
...
@@ -315,7 +315,7 @@
# endif
#endif
#if
def HAVE_VISIBILITY_PRAGMA
#if
ndef NO_VIZ
# define ZEXTERN __attribute__((visibility ("default"))) extern
#endif
...
...
@@ -368,6 +368,16 @@ typedef uLong FAR uLongf;
# include <sys/types.h> /* for off_t */
#endif
/* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and
* "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even
* though the former does not conform to the LFS document), but considering
* both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as
* equivalently requesting no 64-bit operations
*/
#if -_LARGEFILE64_SOURCE - -1 == 1
# undef _LARGEFILE64_SOURCE
#endif
#if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
# include <unistd.h> /* for SEEK_* and off_t */
# ifdef VMS
...
...
zlib.3
浏览文件 @
a7d70663
.TH ZLIB 3 "1
0
Apr 2010"
.TH ZLIB 3 "1
8
Apr 2010"
.SH NAME
zlib \- compression/decompression library
.SH SYNOPSIS
...
...
@@ -125,7 +125,7 @@ before asking for help.
Send questions and/or comments to zlib@gzip.org,
or (for the Windows DLL version) to Gilles Vollant (info@winimage.com).
.SH AUTHORS
Version 1.2.4.
3
Version 1.2.4.
4
Copyright (C) 1995-2010 Jean-loup Gailly (jloup@gzip.org)
and Mark Adler (madler@alumni.caltech.edu).
.LP
...
...
zlib.3.pdf
浏览文件 @
a7d70663
无法预览此类型文件
zlib.h
浏览文件 @
a7d70663
/* zlib.h -- interface of the 'zlib' general purpose compression library
version 1.2.4.
3, April 10
th, 2010
version 1.2.4.
4, April 18
th, 2010
Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler
...
...
@@ -37,12 +37,12 @@
extern
"C"
{
#endif
#define ZLIB_VERSION "1.2.4.
3
"
#define ZLIB_VERNUM 0x124
3
#define ZLIB_VERSION "1.2.4.
4
"
#define ZLIB_VERNUM 0x124
4
#define ZLIB_VER_MAJOR 1
#define ZLIB_VER_MINOR 2
#define ZLIB_VER_REVISION 4
#define ZLIB_VER_SUBREVISION
3
#define ZLIB_VER_SUBREVISION
4
/*
The 'zlib' compression library provides in-memory compression and
...
...
zlib.pc.in
浏览文件 @
a7d70663
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
sharedlibdir=@sharedlibdir@
includedir=@includedir@
Name: zlib
...
...
@@ -8,5 +9,5 @@ Description: zlib compression library
Version: @VERSION@
Requires:
Libs: -L${libdir} -lz
Libs: -L${libdir} -
L${sharedlibdir} -
lz
Cflags: -I${includedir}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录