-
Notifications
You must be signed in to change notification settings - Fork 2
/
Build.xml
68 lines (51 loc) · 2.09 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
65
66
67
68
<xml>
<!-- Build file for the Haxe wrapper of gameplay3d -->
<!-- Install hxcpp and run with 'haxelib run hxcpp Build.xml' -->
<include name="${HXCPP}/build-tool/BuildCommon.xml"/>
<!-- Determine the output location for the NDLL -->
<set name="LIB_DIR" value="-L" unless="windows"/>
<set name="LIB_DIR" value="-libpath:" if="windows"/>
<section if="linux">
<set name="LIB_SUFFIX" value="Linux" unless="HXCPP_M64"/>
<set name="LIB_SUFFIX" value="Linux64" if="HXCPP_M64"/>
</section>
<!-- Specify the list of files to be compiled and the compile options. -->
<files id="common">
<compilerflag value="-Iinclude"/>
<compilerflag value="-I/usr/local/include/opencv2"/>
<file name="src/main.cpp"/>
<file name="src/highgui.cpp"/>
<file name="src/core.cpp"/>
<file name="src/video.cpp"/>
<file name="src/imgproc.cpp"/>
<file name="src/nonfree.cpp"/>
<file name="src/features2d.cpp"/>
</files>
<!-- Generate the NDLL. -->
<set name="configuration_type" value="dll"/>
<target id="opencv" output="opencv" tool="linker" toolid="${configuration_type}">
<outdir name="ndll/${LIB_SUFFIX}"/>
<ext value=".ndll"/>
<files id="common"/>
<flag value="${LIB_DIR}${LIB_SUFFIX}"/>
<!------------------------------------------------------>
<!-- Static libraries for OpenCV and its dependencies -->
<!------------------------------------------------------>
<flag value="-L/usr/local/lib"/>
<lib name="-lopencv_core"/>
<lib name="-lopencv_imgproc"/>
<lib name="-lopencv_highgui"/>
<lib name="-lopencv_video"/>
<lib name="-lopencv_calib3d"/>
<lib name="-lopencv_features2d"/>
<lib name="-lopencv_objdetect"/>
<lib name="-lopencv_ml"/>
<lib name="-lopencv_flann"/>
<lib name="-lopencv_nonfree"/>
<lib name="-lopencv_contrib"/>
<lib name="-lopencv_legacy"/>
</target>
<target id="default">
<target id="opencv"/>
</target>
</xml>