mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
Distribute shared library .debug files. (#136)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user