Add lib targets for all C vision tasks
PiperOrigin-RevId: 586805240
This commit is contained in:
parent
7d73a3e1fd
commit
2b53891a7c
|
@ -64,3 +64,37 @@ cc_test(
|
||||||
"@com_google_googletest//:gtest_main",
|
"@com_google_googletest//:gtest_main",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# bazel build -c opt --linkopt -s --strip always --define MEDIAPIPE_DISABLE_GPU=1 \
|
||||||
|
# //mediapipe/tasks/c/vision/image_classifier:libimage_classifier.so
|
||||||
|
cc_binary(
|
||||||
|
name = "libimage_classifier.so",
|
||||||
|
linkopts = [
|
||||||
|
"-Wl,-soname=libimage_classifier.so",
|
||||||
|
"-fvisibility=hidden",
|
||||||
|
],
|
||||||
|
linkshared = True,
|
||||||
|
tags = [
|
||||||
|
"manual",
|
||||||
|
"nobuilder",
|
||||||
|
"notap",
|
||||||
|
],
|
||||||
|
deps = [":image_classifier_lib"],
|
||||||
|
)
|
||||||
|
|
||||||
|
# bazel build --config darwin_arm64 -c opt --strip always --define MEDIAPIPE_DISABLE_GPU=1 \
|
||||||
|
# //mediapipe/tasks/c/vision/image_classifier:libimage_classifier.dylib
|
||||||
|
cc_binary(
|
||||||
|
name = "libimage_classifier.dylib",
|
||||||
|
linkopts = [
|
||||||
|
"-Wl,-install_name,libimage_classifier.dylib",
|
||||||
|
"-fvisibility=hidden",
|
||||||
|
],
|
||||||
|
linkshared = True,
|
||||||
|
tags = [
|
||||||
|
"manual",
|
||||||
|
"nobuilder",
|
||||||
|
"notap",
|
||||||
|
],
|
||||||
|
deps = [":image_classifier_lib"],
|
||||||
|
)
|
||||||
|
|
|
@ -65,3 +65,37 @@ cc_test(
|
||||||
"@com_google_googletest//:gtest_main",
|
"@com_google_googletest//:gtest_main",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# bazel build -c opt --linkopt -s --strip always --define MEDIAPIPE_DISABLE_GPU=1 \
|
||||||
|
# //mediapipe/tasks/c/vision/image_embedder:libimage_embedder.so
|
||||||
|
cc_binary(
|
||||||
|
name = "libimage_embedder.so",
|
||||||
|
linkopts = [
|
||||||
|
"-Wl,-soname=libimage_embedder.so",
|
||||||
|
"-fvisibility=hidden",
|
||||||
|
],
|
||||||
|
linkshared = True,
|
||||||
|
tags = [
|
||||||
|
"manual",
|
||||||
|
"nobuilder",
|
||||||
|
"notap",
|
||||||
|
],
|
||||||
|
deps = [":image_embedder_lib"],
|
||||||
|
)
|
||||||
|
|
||||||
|
# bazel build --config darwin_arm64 -c opt --strip always --define MEDIAPIPE_DISABLE_GPU=1 \
|
||||||
|
# //mediapipe/tasks/c/vision/image_embedder:libimage_embedder.dylib
|
||||||
|
cc_binary(
|
||||||
|
name = "libimage_embedder.dylib",
|
||||||
|
linkopts = [
|
||||||
|
"-Wl,-install_name,libimage_embedder.dylib",
|
||||||
|
"-fvisibility=hidden",
|
||||||
|
],
|
||||||
|
linkshared = True,
|
||||||
|
tags = [
|
||||||
|
"manual",
|
||||||
|
"nobuilder",
|
||||||
|
"notap",
|
||||||
|
],
|
||||||
|
deps = [":image_embedder_lib"],
|
||||||
|
)
|
||||||
|
|
|
@ -63,3 +63,37 @@ cc_test(
|
||||||
"@com_google_googletest//:gtest_main",
|
"@com_google_googletest//:gtest_main",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# bazel build -c opt --linkopt -s --strip always --define MEDIAPIPE_DISABLE_GPU=1 \
|
||||||
|
# //mediapipe/tasks/c/vision/object_detector:libobject_detector.so
|
||||||
|
cc_binary(
|
||||||
|
name = "libobject_detector.so",
|
||||||
|
linkopts = [
|
||||||
|
"-Wl,-soname=libobject_detector.so",
|
||||||
|
"-fvisibility=hidden",
|
||||||
|
],
|
||||||
|
linkshared = True,
|
||||||
|
tags = [
|
||||||
|
"manual",
|
||||||
|
"nobuilder",
|
||||||
|
"notap",
|
||||||
|
],
|
||||||
|
deps = [":object_detector_lib"],
|
||||||
|
)
|
||||||
|
|
||||||
|
# bazel build --config darwin_arm64 -c opt --strip always --define MEDIAPIPE_DISABLE_GPU=1 \
|
||||||
|
# //mediapipe/tasks/c/vision/object_detector:libobject_detector.dylib
|
||||||
|
cc_binary(
|
||||||
|
name = "libobject_detector.dylib",
|
||||||
|
linkopts = [
|
||||||
|
"-Wl,-install_name,libobject_detector.dylib",
|
||||||
|
"-fvisibility=hidden",
|
||||||
|
],
|
||||||
|
linkshared = True,
|
||||||
|
tags = [
|
||||||
|
"manual",
|
||||||
|
"nobuilder",
|
||||||
|
"notap",
|
||||||
|
],
|
||||||
|
deps = [":object_detector_lib"],
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user