mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Update to new Native Utils (#1696)
Also update to azure 2019 windows image
This commit is contained in:
committed by
Peter Johnson
parent
30e936837c
commit
3dfb01d45b
@@ -2,16 +2,19 @@ def opencvVersion = '3.4.4-5'
|
||||
|
||||
if (project.hasProperty('useCpp') && project.useCpp) {
|
||||
model {
|
||||
dependencyConfigs {
|
||||
opencv(DependencyConfig) {
|
||||
groupId = 'edu.wpi.first.thirdparty.frc2019.opencv'
|
||||
artifactId = 'opencv-cpp'
|
||||
headerClassifier = 'headers'
|
||||
ext = 'zip'
|
||||
version = opencvVersion
|
||||
sharedConfigs = project.sharedCvConfigs
|
||||
staticConfigs = project.staticCvConfigs
|
||||
linkExcludes = ['**/*java*']
|
||||
binaries {
|
||||
withType(NativeBinarySpec).all {
|
||||
def binary = it
|
||||
project.sharedCvConfigs.each {
|
||||
if (binary.component.name == it.key) {
|
||||
nativeUtils.useRequiredLibrary(binary, 'opencv_shared')
|
||||
}
|
||||
}
|
||||
project.staticCvConfigs.each {
|
||||
if (binary.component.name == it.key) {
|
||||
nativeUtils.useRequiredLibrary(binary, 'opencv_static')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user