forked from cmusphinx/pocketsphinx-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
42 lines (34 loc) · 971 Bytes
/
build.gradle
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
apply plugin: 'java'
sourceCompatibility = 1.7
targetCompatibility = 1.7
task mkdir << {
new File('build/generated-src/java').mkdirs()
}
task swigSb(type: Exec) {
commandLine 'swig',
"-I../sphinxbase/include", "-I../sphinxbase/swig",
"-java", "-package", "edu.cmu.pocketsphinx",
"-outdir", "build/generated-src/java", "-o", "jni/sphinxbase_wrap.c",
"../sphinxbase/swig/sphinxbase.i"
}
task swigPs(type: Exec) {
commandLine 'swig',
"-I../sphinxbase/swig",
"-I../pocketsphinx/include",
"-I../pocketsphinx/swig",
"-java", "-package", "edu.cmu.pocketsphinx",
"-outdir", "build/generated-src/java",
"-o", "jni/pocketsphinx_wrap.c",
"../pocketsphinx/swig/pocketsphinx.i"
}
compileJava.dependsOn mkdir
compileJava.dependsOn swigSb
compileJava.dependsOn swigPs
sourceSets {
main {
java {
srcDir 'build/generated-src/java'
}
}
}
jar.version = '5prealpha-nolib'