Project import generated by Copybara.
GitOrigin-RevId: ff83882955f1a1e2a043ff4e71278be9d7217bbe
This commit is contained in:
Vendored
+21
@@ -286,3 +286,24 @@ android_library(
|
||||
"@maven//:androidx_camera_camera_lifecycle",
|
||||
],
|
||||
)
|
||||
|
||||
java_plugin(
|
||||
name = "autovalue_plugin",
|
||||
processor_class = "com.google.auto.value.processor.AutoValueProcessor",
|
||||
deps = [
|
||||
"@maven//:com_google_auto_value_auto_value",
|
||||
"@maven//:com_google_auto_value_auto_value_annotations",
|
||||
],
|
||||
)
|
||||
|
||||
java_library(
|
||||
name = "autovalue",
|
||||
exported_plugins = [
|
||||
":autovalue_plugin",
|
||||
],
|
||||
neverlink = 1,
|
||||
exports = [
|
||||
"@maven//:com_google_auto_value_auto_value",
|
||||
"@maven//:com_google_auto_value_auto_value_annotations",
|
||||
],
|
||||
)
|
||||
|
||||
+2
-2
@@ -45,8 +45,8 @@ index 0b5e6ee..be5a506 100644
|
||||
+ const int level = AndroidLogLevel((int)data_->severity_);
|
||||
+ const std::string text = std::string(data_->message_text_);
|
||||
+ __android_log_write(level, "native", text.substr(0,data_->num_chars_to_log_).c_str());
|
||||
+#endif // !defined(__ANDROID__)
|
||||
+#endif // defined(__ANDROID__)
|
||||
+
|
||||
if (append_newline) {
|
||||
// Fix the ostrstream back how it was before we screwed with it.
|
||||
// It's 99.44% certain that we don't need to worry about doing this.
|
||||
// It's 99.44% certain that we don't need to worry about doing this.
|
||||
|
||||
Vendored
+11
@@ -29,3 +29,14 @@ OPENCVANDROIDSDK_JNI_PATH = "sdk/native/jni/"
|
||||
"x86",
|
||||
"x86_64",
|
||||
]]
|
||||
|
||||
[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",
|
||||
]]
|
||||
|
||||
Vendored
+20
-4
@@ -7,15 +7,31 @@ exports_files(["LICENSE"])
|
||||
|
||||
OPENCV_VERSION = "3410" # 3.4.10
|
||||
|
||||
config_setting(
|
||||
name = "opt_build",
|
||||
values = {"compilation_mode": "opt"},
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "dbg_build",
|
||||
values = {"compilation_mode": "dbg"},
|
||||
)
|
||||
|
||||
# The following build rule assumes that the executable "opencv-3.4.10-vc14_vc15.exe"
|
||||
# is downloaded and the files are extracted to local.
|
||||
# If you install OpenCV separately, please modify the build rule accordingly.
|
||||
cc_library(
|
||||
name = "opencv",
|
||||
srcs = [
|
||||
"x64/vc15/lib/opencv_world" + OPENCV_VERSION + ".lib",
|
||||
"x64/vc15/bin/opencv_world" + OPENCV_VERSION + ".dll",
|
||||
],
|
||||
srcs = select({
|
||||
":opt_build": [
|
||||
"x64/vc15/lib/opencv_world" + OPENCV_VERSION + ".lib",
|
||||
"x64/vc15/bin/opencv_world" + OPENCV_VERSION + ".dll",
|
||||
],
|
||||
":dbg_build": [
|
||||
"x64/vc15/lib/opencv_world" + OPENCV_VERSION + "d.lib",
|
||||
"x64/vc15/bin/opencv_world" + OPENCV_VERSION + "d.dll",
|
||||
],
|
||||
}),
|
||||
hdrs = glob(["include/opencv2/**/*.h*"]),
|
||||
includes = ["include/"],
|
||||
linkstatic = 1,
|
||||
|
||||
Reference in New Issue
Block a user