Distribute shared library .debug files. (#136)

This commit is contained in:
Peter Johnson
2016-10-22 09:35:36 -07:00
committed by GitHub
parent d81840d6c6
commit 353041535c
2 changed files with 14 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ def ntcoreSetupModel = { project ->
}
def ntcoreZipTask = { project ->
project.ext.ntcoreZip = project.tasks.create("${project.isArm ? 'arm' : 'native'}NtcoreZip", Zip) {
project.ext.ntcoreZip = project.tasks.create("ntcoreZip", Zip) {
description = 'Creates platform-specific zip of the desktop ntcore libraries.'
group = 'WPILib'
destinationDir = project.buildDir
@@ -83,6 +83,12 @@ def ntcoreZipTask = { project ->
from(binary.sharedLibraryFile) {
into getPlatformPath(binary)
}
def debugFile = new File(binary.sharedLibraryFile.absolutePath + ".debug")
if (debugFile.exists()) {
from(debugFile) {
into getPlatformPath(binary)
}
}
}
}
}

View File

@@ -29,7 +29,7 @@ def wpiutilSetupModel = { project ->
def wpiutilZipTask = { project ->
project.ext.wpiutilZip = project.tasks.create("${project.isArm ? 'arm' : 'native'}WpiutilZip", Zip) {
project.ext.wpiutilZip = project.tasks.create("wpiutilZip", Zip) {
description = 'Creates platform-specific zip of the desktop wpiutil libraries.'
group = 'WPILib'
destinationDir = project.buildDir
@@ -52,6 +52,12 @@ def wpiutilZipTask = { project ->
from(binary.sharedLibraryFile) {
into getPlatformPath(binary)
}
def debugFile = new File(binary.sharedLibraryFile.absolutePath + ".debug")
if (debugFile.exists()) {
from(debugFile) {
into getPlatformPath(binary)
}
}
}
}
}