forked from rjsmith/hxzmq
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
64 lines (47 loc) · 2.23 KB
/
build.xml
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
56
57
58
59
60
61
62
63
64
<xml>
<!-- Build file for hxzmq.ndll -->
<!-- Install hxcpp and run with 'haxelib run hxcpp build.xml' -->
<include name="${HXCPP}/build-tool/BuildCommon.xml"/>
<!-- Set library search paths for libzmq etc -->
<set name="LIB_DIR" value="-Llib" unless="windows"/>
<set name="LIB_DIR" value="-libpath:lib" if="windows"/>
<set name="DBG" value="d" if="debug"/>
<!-- Define all cpp files that need to be compiled into the hxzmq.ndll -->
<files id="files">
<!-- Set up include folder paths -->
<compilerflag value = "-Iinclude"/>
<!-- ** Only for Windows, replace with path to your libzmq installation include directory -->
<compilerflag value = "-IC:\zeromq\zeromq-3.1.0\include" if="windows"/>
<!-- ** Only for Windows, replace with path to your libzmq installation source directory -->
<!-- This include in needed to pick up libzmq's stdint.hpp include file -->
<compilerflag value = "-IC:\zeromq\zeromq-3.1.0\src" if="windows"/>
<!-- Special flags for compiling on MacOSX 64 bit. May need for linux 64bit too? -->
<compilerflag value = "-D_FILE_OFFSET_BITS=64" if="macos"/>
<compilerflag value = "-D_LARGE_FILES=64" if="macos"/>
<!-- Uncomment for helping with valgrind memory leak investigation -->
<!-- <compilerflag value = "-DDEBUG"/> -->
<!-- List of cpp files to be compiled -->
<file name="src/ZMQ.cpp"/>
<file name="src/Context.cpp"/>
<file name="src/Socket.cpp"/>
<file name="src/Poller.cpp"/>
<file name="src/Interrupt.cpp"/>
<file name="src/Device.cpp"/>
</files>
<!-- define compiler build & linking target -->
<target id="hxzmq.ndll" tool="linker" toolid="dll" output="hxzmq">
<ext value=".ndll"/>
<!-- output directory for linker. -->
<!-- ${BINDIR} substituted by hxcpp build tool for your platform e.g. "Windows", "Mac64" -->
<outdir name="ndll/${BINDIR}"/>
<!-- specific previously deifned list of files to compile -->
<files id="files"/>
<!-- Dependent 0MQ library name for linker -->
<lib name="libzmq.lib" if="windows" />
<lib name="-lzmq" unless="windows" />
</target>
<!-- specifies default hxcpp build tool target -->
<target id="default">
<target id="hxzmq.ndll"/>
</target>
</xml>