mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-24 00:53:22 +08:00
[Android] Support PPTinyPose on Android (#746)
* [Android] Update ppseg jni via new api and optimize jni vis funcs * delete local refs * [Android] Add PPTinyPose jni and java api * [Android] Update gradle download tasks info * [Android] Add PPTinyPose Android app example * update app build.gradle
This commit is contained in:
@@ -56,7 +56,7 @@ def FD_CXX_LIB = [
|
||||
|
||||
task downloadAndExtractLibs(type: DefaultTask) {
|
||||
doFirst {
|
||||
println "Downloading and extracting fastdeploy android c++ lib ..."
|
||||
println "[INFO] Downloading and extracting fastdeploy android c++ lib ..."
|
||||
}
|
||||
doLast {
|
||||
String cachePath = "cache"
|
||||
@@ -69,15 +69,18 @@ task downloadAndExtractLibs(type: DefaultTask) {
|
||||
libName = libName.split("\\.")[0]
|
||||
boolean copyFiles = !file("${lib.dest}/${libName}").exists()
|
||||
if (!file("${cachePath}/${libName}.tgz").exists()) {
|
||||
println "Downloading ${lib.src} -> ${cachePath}/${libName}.tgz"
|
||||
println "[INFO] Downloading ${lib.src} -> ${cachePath}/${libName}.tgz"
|
||||
ant.get(src: lib.src, dest: file("${cachePath}/${libName}.tgz"))
|
||||
copyFiles = true
|
||||
}
|
||||
if (copyFiles) {
|
||||
println "[INFO] Taring ${cachePath}/${libName}.tgz -> ${lib.dest}/${libName}"
|
||||
copy {
|
||||
from tarTree("${cachePath}/${libName}.tgz")
|
||||
into "${lib.dest}"
|
||||
}
|
||||
} else {
|
||||
println "[INFO] ${lib.dest}/${libName} already exists!"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user