Fixed jar task dependencies. The stripped version of the binary is now added to the jar, not the full debug version of the binary

Change-Id: I8057dffd9e4ca28cca1fe8f0e95fa5fc536f2c9e
This commit is contained in:
Fredric Silberberg
2015-12-21 00:33:26 -05:00
parent 65e4eeeb7c
commit 4b0980fb86
4 changed files with 13 additions and 7 deletions

View File

@@ -41,7 +41,7 @@ ext.setupDebugDefines = { cppCompiler, linker ->
cppCompiler.args '-g', '-O0'
}
ext.releaseSetup = { releaseTask ->
ext.releaseSetup = { releaseTasks ->
binaries.withType(SharedLibraryBinarySpec) { binary ->
if (!project.hasProperty('debug')) {
def library = binary.sharedLibraryFile.absolutePath
@@ -64,7 +64,7 @@ ext.releaseSetup = { releaseTask ->
}
}
}
releaseTask.dependsOn project.tasks.getByName("secondObjcopy${binary.name}")
releaseTasks.each { it.dependsOn project.tasks.getByName("secondObjcopy${binary.name}") }
}
}
}