Fix Taglib generation after clean builds
This commit is contained in:
+2
-4
@@ -85,12 +85,10 @@ dependencies {
|
||||
tasks.register("assembleTaglib", Exec, {
|
||||
def jniDir = "$projectDir/src/main/cpp"
|
||||
def libs = new File("$jniDir/taglib/pkg")
|
||||
if (libs.exists()) {
|
||||
commandLine "true"
|
||||
return
|
||||
}
|
||||
def ndkDir = androidComponents.sdkComponents.ndkDirectory.get().asFile
|
||||
commandLine "sh", "-c", "$jniDir/build_taglib.sh $jniDir $ndkDir"
|
||||
onlyIf { !libs.exists() }
|
||||
mustRunAfter(tasks.named("clean"))
|
||||
})
|
||||
|
||||
afterEvaluate {
|
||||
|
||||
Reference in New Issue
Block a user