-
Notifications
You must be signed in to change notification settings - Fork 219
Expand file tree
/
Copy pathBuild.xml
More file actions
55 lines (44 loc) · 2.38 KB
/
Build.xml
File metadata and controls
55 lines (44 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<xml>
<pragma once="true" />
<set name="ZLIB_DIR" value="${HXCPP}/project/thirdparty/zlib-1.3.1"/>
<files id="zlib_sources">
<cache value="true" asLibrary="true" />
<addTwice value="1" /> <!-- Linux can have issues with library ordering -->
<compilerflag value="-I${ZLIB_DIR}"/>
<compilerflag value="-DSTDC" unless="windows" />
<compilerflag value="-DHAVE_UNISTD_H" unless="windows" />
<!-- HXCPP_LINK_NO_ZLIB may be set too late, so use filterout as well. -->
<file name="${ZLIB_DIR}/adler32.c" filterout="HXCPP_LINK_NO_ZLIB" tags="" />
<file name="${ZLIB_DIR}/compress.c" filterout="HXCPP_LINK_NO_ZLIB" tags="" />
<file name="${ZLIB_DIR}/crc32.c" filterout="HXCPP_LINK_NO_ZLIB" tags="" />
<file name="${ZLIB_DIR}/deflate.c" filterout="HXCPP_LINK_NO_ZLIB" tags="" />
<file name="${ZLIB_DIR}/gzclose.c" filterout="HXCPP_LINK_NO_ZLIB" tags="" />
<file name="${ZLIB_DIR}/gzlib.c" filterout="HXCPP_LINK_NO_ZLIB" tags="" />
<file name="${ZLIB_DIR}/gzread.c" filterout="HXCPP_LINK_NO_ZLIB" tags="" />
<file name="${ZLIB_DIR}/gzwrite.c" filterout="HXCPP_LINK_NO_ZLIB" tags="" />
<file name="${ZLIB_DIR}/infback.c" filterout="HXCPP_LINK_NO_ZLIB" tags="" />
<file name="${ZLIB_DIR}/inffast.c" filterout="HXCPP_LINK_NO_ZLIB" tags="" />
<file name="${ZLIB_DIR}/inflate.c" filterout="HXCPP_LINK_NO_ZLIB" tags="" />
<file name="${ZLIB_DIR}/inftrees.c" filterout="HXCPP_LINK_NO_ZLIB" tags="" />
<file name="${ZLIB_DIR}/trees.c" filterout="HXCPP_LINK_NO_ZLIB" tags="" />
<file name="${ZLIB_DIR}/uncompr.c" filterout="HXCPP_LINK_NO_ZLIB" tags="" />
<file name="${ZLIB_DIR}/zutil.c" filterout="HXCPP_LINK_NO_ZLIB" tags="" />
</files>
<files id="hxcpp_zlib_impl" >
<depend files="hxcpp-depends"/>
<depend name="${this_dir}/Build.xml" dateOnly="true" />
<depend name="${this_dir}/ZLibCompress.hpp"/>
<depend name="${this_dir}/ZLibUncompress.hpp"/>
<cache value="true" asLibrary="true" />
<addTwice value="1" />
<compilerflag value="-I${ZLIB_DIR}" unless="HXCPP_NO_VENDORED" />
<compilerflag value="-I${this_dir}"/>
<file name="ZLibUncompress.cpp"/>
<file name="ZLibCompress.cpp"/>
</files>
<target id="haxe">
<files id="hxcpp_zlib_impl" />
<files id="zlib_sources" unless="HXCPP_LINK_NO_ZLIB || HXCPP_NO_VENDORED"/>
<lib name="-lz" if="HXCPP_NO_VENDORED" unless="static_link" />
</target>
</xml>