2018-04-29 13:29:07 -07:00
|
|
|
if (project.hasProperty('useCpp') && project.useCpp) {
|
|
|
|
|
model {
|
2019-06-28 14:09:10 -07:00
|
|
|
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')
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-04-29 13:29:07 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (project.hasProperty('useJava') && project.useJava) {
|
|
|
|
|
dependencies {
|
2026-02-20 18:31:33 -05:00
|
|
|
implementation libs.thirdparty.opencv
|
2018-04-29 13:29:07 -07:00
|
|
|
if (!project.hasProperty('skipDev') || !project.skipDev) {
|
2026-02-20 18:31:33 -05:00
|
|
|
devImplementation libs.thirdparty.opencv
|
2018-04-29 13:29:07 -07:00
|
|
|
}
|
|
|
|
|
if (project.hasProperty('useDocumentation') && project.useDocumentation) {
|
2026-02-20 18:31:33 -05:00
|
|
|
javaSource(variantOf(libs.thirdparty.opencv) { classifier("sources") })
|
2018-04-29 13:29:07 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|