]> git.saurik.com Git - wxWidgets.git/blob - build/bakefiles/zlib.bkl
Fix configure check for gcc atomics on 32-bit x86.
[wxWidgets.git] / build / bakefiles / zlib.bkl
1 <?xml version="1.0" ?>
2 <makefile>
3
4 <if cond="FORMAT=='autoconf'">
5 <option name="wxUSE_ZLIB"/>
6 <set var="LIB_ZLIB">
7 <if cond="wxUSE_ZLIB=='builtin'">
8 wxzlib$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
9 </if>
10 </set>
11 </if>
12 <if cond="FORMAT!='autoconf'">
13 <set var="wxUSE_ZLIB">builtin</set>
14 <set var="LIB_ZLIB">
15 <if cond="wxUSE_ZLIB=='builtin'">
16 wxzlib$(WXDEBUGFLAG)$(HOST_SUFFIX)
17 </if>
18 </set>
19 </if>
20 <set var="INC_ZLIB">
21 <if cond="wxUSE_ZLIB=='builtin'">$(TOP_SRCDIR)src/zlib</if>
22 </set>
23
24 <lib id="wxzlib" template="3rdparty_lib"
25 cond="wxUSE_ZLIB=='builtin' and BUILDING_LIB=='1'">
26 <dirname>$(LIBDIRNAME)</dirname>
27 <cflags-borland>
28 -w-8004 -w-8008 -w-8012 -w-8057 -w-8066
29 </cflags-borland>
30 <if cond="FORMAT=='msevc4prj'">
31 <define>NO_ERRNO_H</define>
32 </if>
33 <if cond="IS_MSVC">
34 <!--
35 Define this to get rid of many warnings about using open(),
36 read() and other POSIX functions in zlib code. This is much
37 more convenient than having to modify it to avoid them.
38 -->
39 <define>_CRT_NONSTDC_NO_WARNINGS</define>
40 </if>
41 <sources>
42 src/zlib/adler32.c
43 src/zlib/compress.c
44 src/zlib/crc32.c
45 src/zlib/deflate.c
46 src/zlib/gzclose.c
47 src/zlib/gzlib.c
48 src/zlib/gzread.c
49 src/zlib/gzwrite.c
50 src/zlib/infback.c
51 src/zlib/inffast.c
52 src/zlib/inflate.c
53 src/zlib/inftrees.c
54 src/zlib/trees.c
55 src/zlib/uncompr.c
56 src/zlib/zutil.c
57 </sources>
58 </lib>
59
60 </makefile>