forked from ahmetaa/kaldi-jni
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
52 lines (43 loc) · 1.43 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="kaldi-jni" default="jar" basedir=".">
<property name="build.dir" location="build"/>
<property name="src.dir" location="src"/>
<property name="kaldi.jni.dir" location="/media/aaa/3t/kaldi/src/jni"/>
<!-- libraries -->
<path id="classpath">
<fileset dir="lib/runtime"/>
</path>
<!-- compile to build dir -->
<target name="compile">
<delete dir="${build.dir}"/>
<mkdir dir="${build.dir}"/>
<javac
classpathref="classpath"
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="kaldi-jni.jar">
<fileset dir="${build.dir}"/>
</jar>
</target>
<target name="jni" depends="compile">
<mkdir dir="generated"/>
<javah destdir="cpp/jni" classpath="${build.dir}" class="kaldijni.KaldiWrapper"/>
<copy todir="${kaldi.jni.dir}">
<fileset dir="generated">
<include name="**/*.h"/>
</fileset>
<fileset dir="cpp/jni">
</fileset>
</copy>
</target>
</project>