Remove external dependencies from fast_guassian_generator
I need to redo how this is built with a new toolchain, which makes
dependencies hard to handle, so remove them.
Change-Id: I673c907069469a976a93b63f3b825e45cbb34900
Signed-off-by: Brian Silverman <bsilver16834@gmail.com>
diff --git a/y2020/vision/sift/BUILD b/y2020/vision/sift/BUILD
index 93e2858..c2a71fe 100644
--- a/y2020/vision/sift/BUILD
+++ b/y2020/vision/sift/BUILD
@@ -1,17 +1,43 @@
load(":fast_gaussian.bzl", "fast_gaussian")
load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library", "flatbuffer_py_library", "flatbuffer_ts_library")
+cc_library(
+ name = "get_gaussian_kernel",
+ hdrs = [
+ "get_gaussian_kernel.h",
+ ],
+)
+
+cc_test(
+ name = "get_gaussian_kernel_test",
+ srcs = [
+ "get_gaussian_kernel_test.cc",
+ ],
+ deps = [
+ ":get_gaussian_kernel",
+ "//aos/testing:googletest",
+ "//third_party:opencv",
+ "@com_github_google_glog//:glog",
+ ],
+)
+
cc_binary(
name = "fast_gaussian_generator",
srcs = [
"fast_gaussian_generator.cc",
],
+ linkopts = [
+ "-lpthread",
+ "-ldl",
+ ],
target_compatible_with = ["@platforms//os:linux"],
deps = [
+ ":get_gaussian_kernel",
"//third_party:halide",
"//third_party:halide_gengen",
+ # This somehow brings in a zlib that libllvm needs?
+ # TODO(Brian): Remove this dependency, it's not really used.
"//third_party:opencv",
- "@com_github_google_glog//:glog",
],
)