mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21:42 +00:00
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:
@@ -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}") }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user