-
Notifications
You must be signed in to change notification settings - Fork 17
/
build.xml
46 lines (38 loc) · 1.27 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="fast-dnn" default="jar" basedir=".">
<property name="build.dir" location="build"/>
<property name="src.dir" location="src/java"/>
<!-- compile to build dir -->
<target name="compile">
<delete dir="${build.dir}"/>
<mkdir dir="${build.dir}"/>
<javac
destdir="${build.dir}"
debug="true"
debuglevel="vars,lines,source">
<src path="${src.dir}"/>
</javac>
<copy todir="${build.dir}">
<fileset dir="${src.dir}">
<exclude name="**/*.java"/>
</fileset>
</copy>
</target>
<target name="jar" depends=" compile">
<jar file="fast-dnn.jar">
<fileset dir="${build.dir}"/>
</jar>
</target>
<target name="jni" depends="compile">
<javac
destdir="${build.dir}"
debug="true"
target="1.8"
source="1.8"
debuglevel="vars,lines,source"
srcdir="${src.dir}"
includes="suskun/nn/FastNativeDnn.java">
</javac>
<javah destdir="src/cpp" classpath="${build.dir}" class="suskun.nn.QuantizedDnn"/>
</target>
</project>