[cscore] Fix jnicvstatic classifier (#2561)

The archive needed to be zip, additionally the library needed to statically link to cscore. All better now
This commit is contained in:
Thad House
2020-06-30 22:50:02 -07:00
committed by GitHub
parent 9f4de91554
commit b1353e4d6e
2 changed files with 2 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ model {
it.buildable = false
return
}
lib library: "${nativeName}", linkage: 'shared'
lib library: "${nativeName}", linkage: 'static'
lib project: ':wpiutil', library: 'wpiutil', linkage: 'shared'
}
}

View File

@@ -113,7 +113,7 @@ model {
}
if (project.hasProperty('cvStaticBuild') && project.getProperty('cvStaticBuild') == true) {
def jniCvTaskList = createComponentZipTasks($.components, ["${nativeName}JNICvStatic"], jniCvStaticBaseName, Jar, project, { task, value ->
def jniCvTaskList = createComponentZipTasks($.components, ["${nativeName}JNICvStatic"], jniCvStaticBaseName, Zip, project, { task, value ->
value.each { binary ->
if (binary.buildable) {
if (binary instanceof SharedLibraryBinarySpec) {