use pre-package jnis for gradle...
This commit is contained in:
parent
ab0cadf81f
commit
d56eb31aef
@ -1,4 +1,3 @@
|
||||
rootProject.name = 'vtm'
|
||||
include ':vtm'
|
||||
include ':vtm-android'
|
||||
include ':vtm-android-example'
|
||||
|
@ -2,22 +2,10 @@
|
||||
apply plugin: 'android-library'
|
||||
apply plugin: 'android-maven'
|
||||
|
||||
//http://stackoverflow.com/questions/20674650/how-to-configure-ndk-with-android-gradle-plugin-0-7
|
||||
task nativeLibsToJar(type: Zip, description: 'create a jar with native libs') {
|
||||
destinationDir file("$buildDir/native-libs")
|
||||
baseName 'native-libs'
|
||||
extension 'jar'
|
||||
from fileTree(dir: '../vtm-ext-libs/vtm-android', include: '**/*.so')
|
||||
into 'lib/'
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
compileTask -> compileTask.dependsOn nativeLibsToJar
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile fileTree(dir: '../vtm-ext-libs/libs', include: 'slf4j-api-1.7.5.jar')
|
||||
compile fileTree(dir: "$buildDir/native-libs", include: '*.jar')
|
||||
compile fileTree(dir: "../vtm-ext-libs/vtm-android", include: 'native-libs-*.jar')
|
||||
compile project(':vtm')
|
||||
compile 'com.android.support:support-v4:+'
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 0c45e57888d16483516d8ba252cb240fa729531d
|
||||
Subproject commit 0e592ae75f17accdb13f1020ba480145d1e7c49b
|
Loading…
x
Reference in New Issue
Block a user