Removes the native library from the RoboRIO Jar (#139)

Includes the native zip in the maven artifact as well.
This commit is contained in:
Thad House
2016-10-25 20:42:06 -07:00
committed by Peter Johnson
parent 88fdbc6d3e
commit c45384b91a
2 changed files with 11 additions and 4 deletions

View File

@@ -31,9 +31,11 @@ jar {
model {
binaries {
withType(SharedLibraryBinarySpec) { binary ->
from(file(binary.sharedLibraryFile)) {
into getPlatformPath(binary)
}
// Only include the native file if not cross compiling to the roboRIO
if (!project.isArm || project.hasProperty('compilerPrefix'))
from(file(binary.sharedLibraryFile)) {
into getPlatformPath(binary)
}
}
}
}