2019-06-17 01:03:25 +02:00
|
|
|
# Description:
|
|
|
|
# OpenCV libraries for video/image processing on Android
|
|
|
|
|
|
|
|
licenses(["notice"]) # BSD license
|
|
|
|
|
|
|
|
exports_files(["LICENSE"])
|
|
|
|
|
2019-11-21 21:01:51 +01:00
|
|
|
OPENCV_LIBRARY_NAME = "libopencv_java3.so"
|
2019-06-17 01:03:25 +02:00
|
|
|
|
|
|
|
OPENCVANDROIDSDK_NATIVELIBS_PATH = "sdk/native/libs/"
|
|
|
|
|
|
|
|
OPENCVANDROIDSDK_JNI_PATH = "sdk/native/jni/"
|
|
|
|
|
|
|
|
[cc_library(
|
|
|
|
name = "libopencv_" + arch,
|
|
|
|
srcs = [OPENCVANDROIDSDK_NATIVELIBS_PATH + arch + "/" + OPENCV_LIBRARY_NAME],
|
|
|
|
hdrs = glob([
|
|
|
|
OPENCVANDROIDSDK_JNI_PATH + "include/**/*.h",
|
|
|
|
OPENCVANDROIDSDK_JNI_PATH + "include/**/*.hpp",
|
|
|
|
]),
|
|
|
|
includes = [
|
|
|
|
OPENCVANDROIDSDK_JNI_PATH + "include",
|
|
|
|
],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
alwayslink = 1,
|
|
|
|
) for arch in [
|
|
|
|
"arm64-v8a",
|
|
|
|
"armeabi-v7a",
|
|
|
|
"x86",
|
|
|
|
"x86_64",
|
|
|
|
]]
|
2021-05-05 03:30:15 +02:00
|
|
|
|
|
|
|
[alias(
|
|
|
|
name = "libopencv_java3_so_" + arch,
|
|
|
|
actual = OPENCVANDROIDSDK_NATIVELIBS_PATH + arch + "/" + OPENCV_LIBRARY_NAME,
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
) for arch in [
|
|
|
|
"arm64-v8a",
|
|
|
|
"armeabi-v7a",
|
|
|
|
"x86",
|
|
|
|
"x86_64",
|
|
|
|
]]
|