mediapipe/third_party/opencv_android.BUILD
MediaPipe Team d68f5e4169 Project import generated by Copybara.
PiperOrigin-RevId: 253489161
2019-06-16 16:06:57 -07:00

32 lines
762 B
Plaintext

# Description:
# OpenCV libraries for video/image processing on Android
licenses(["notice"]) # BSD license
exports_files(["LICENSE"])
OPENCV_LIBRARY_NAME = "libopencv_java4.so"
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",
]]