mediapipe/mediapipe/framework/deps/BUILD
MediaPipe Team de4fbc10e6 Project import generated by Copybara.
GitOrigin-RevId: 852dfb05d450167899c0dd5ef7c45622a12e865b
2020-02-10 14:13:25 -08:00

451 lines
11 KiB
Python

# Copyright 2019 The MediaPipe Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Description:
# The dependencies of mediapipe.
load("//mediapipe/framework/port:build_config.bzl", "mediapipe_cc_proto_library")
licenses(["notice"]) # Apache 2.0
package(default_visibility = ["//visibility:private"])
proto_library(
name = "proto_descriptor_proto",
srcs = ["proto_descriptor.proto"],
visibility = ["//mediapipe/framework:__subpackages__"],
)
mediapipe_cc_proto_library(
name = "proto_descriptor_cc_proto",
srcs = ["proto_descriptor.proto"],
visibility = ["//mediapipe/framework:__subpackages__"],
deps = [":proto_descriptor_proto"],
)
cc_library(
name = "aligned_malloc_and_free",
hdrs = ["aligned_malloc_and_free.h"],
visibility = ["//visibility:public"],
)
cc_library(
name = "cleanup",
hdrs = ["cleanup.h"],
visibility = ["//visibility:public"],
deps = ["@com_google_absl//absl/base:core_headers"],
)
cc_library(
name = "clock",
srcs = [
"clock.cc",
"monotonic_clock.cc",
],
hdrs = [
"clock.h",
"monotonic_clock.h",
],
visibility = ["//visibility:public"],
deps = [
"//mediapipe/framework/port:logging",
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/synchronization",
"@com_google_absl//absl/time",
],
)
cc_library(
name = "message_matchers",
testonly = True,
hdrs = ["message_matchers.h"],
visibility = ["//visibility:public"],
deps = [
"//mediapipe/framework/port:core_proto",
"//mediapipe/framework/port:gtest_main",
],
)
cc_library(
name = "file_path",
srcs = ["file_path.cc"],
hdrs = ["file_path.h"],
visibility = ["//visibility:public"],
deps = [
"@com_google_absl//absl/strings",
],
)
cc_library(
name = "file_helpers",
srcs = ["file_helpers.cc"],
hdrs = ["file_helpers.h"],
visibility = ["//visibility:public"],
deps = [
":file_path",
":status",
"@com_google_absl//absl/strings",
],
)
cc_library(
name = "intops",
hdrs = [
"safe_int.h",
"strong_int.h",
],
visibility = ["//visibility:public"],
deps = [
"//mediapipe/framework/port",
"//mediapipe/framework/port:integral_types",
"//mediapipe/framework/port:logging",
"@com_google_absl//absl/base:core_headers",
],
)
cc_library(
name = "image_resizer",
hdrs = ["image_resizer.h"],
visibility = ["//visibility:public"],
deps = [
"//mediapipe/framework/port:integral_types",
"//mediapipe/framework/port:opencv_imgproc",
],
)
cc_library(
name = "map_util",
hdrs = ["map_util.h"],
# Use this library through "mediapipe/framework/port:map_util".
visibility = ["//mediapipe/framework/port:__pkg__"],
deps = ["//mediapipe/framework/port:logging"],
)
cc_library(
name = "mathutil",
hdrs = ["mathutil.h"],
visibility = ["//visibility:public"],
deps = [
"//mediapipe/framework/port:integral_types",
"//mediapipe/framework/port:logging",
],
)
cc_library(
name = "numbers",
hdrs = ["numbers.h"],
visibility = ["//mediapipe/framework/port:__pkg__"],
deps = [
"//mediapipe/framework/port:integral_types",
"@com_google_absl//absl/strings",
],
)
cc_library(
name = "no_destructor",
hdrs = ["no_destructor.h"],
visibility = ["//visibility:public"],
)
cc_library(
name = "point",
hdrs = ["point2.h"],
# Use this library through "mediapipe/framework/port:point".
visibility = ["//mediapipe/framework/port:__pkg__"],
deps = [
":mathutil",
":vector",
"//mediapipe/framework/port:integral_types",
"//mediapipe/framework/port:logging",
],
)
cc_library(
name = "random",
hdrs = ["random_base.h"],
visibility = ["//visibility:public"],
deps = ["//mediapipe/framework/port:integral_types"],
)
cc_library(
name = "rectangle",
hdrs = ["rectangle.h"],
# Use this library through "mediapipe/framework/port:rectangle".
visibility = ["//mediapipe/framework/port:__pkg__"],
deps = [
":point",
":vector",
"//mediapipe/framework/port:integral_types",
"//mediapipe/framework/port:logging",
],
)
cc_library(
name = "registration_token",
srcs = ["registration_token.cc"],
hdrs = ["registration_token.h"],
visibility = ["//visibility:public"],
)
cc_library(
name = "registration",
srcs = ["registration.cc"],
hdrs = ["registration.h"],
visibility = ["//visibility:public"],
deps = [
":registration_token",
"//mediapipe/framework/port:logging",
"//mediapipe/framework/port:status",
"//mediapipe/framework/port:statusor",
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/meta:type_traits",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/synchronization",
],
)
cc_library(
name = "singleton",
hdrs = ["singleton.h"],
# Use this library through "mediapipe/framework/port:singleton".
visibility = ["//mediapipe/framework/port:__pkg__"],
deps = [
"@com_google_absl//absl/synchronization",
],
)
cc_library(
name = "source_location",
hdrs = ["source_location.h"],
# Use this library through "mediapipe/framework/port:source_location".
visibility = ["//mediapipe/framework/port:__pkg__"],
)
cc_library(
name = "status",
srcs = [
"status.cc",
"status_builder.cc",
],
hdrs = [
"canonical_errors.h",
"status.h",
"status_builder.h",
"status_macros.h",
],
# Use this library through "mediapipe/framework/port:status".
visibility = ["//mediapipe/framework/port:__pkg__"],
deps = [
":source_location",
"//mediapipe/framework/port:logging",
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/memory",
"@com_google_absl//absl/strings",
],
)
cc_library(
name = "statusor",
srcs = ["statusor.cc"],
hdrs = [
"statusor.h",
"statusor_internals.h",
],
# Use this library through "mediapipe/framework/port:statusor".
visibility = ["//mediapipe/framework/port:__pkg__"],
deps = [
":status",
"//mediapipe/framework/port:logging",
"@com_google_absl//absl/base:core_headers",
],
)
cc_library(
name = "status_matchers",
testonly = 1,
hdrs = ["status_matchers.h"],
# Use this library through "mediapipe/framework/port:gtest_main".
visibility = ["//mediapipe/framework/port:__pkg__"],
deps = [
":status",
"@com_google_googletest//:gtest_main",
],
)
cc_library(
name = "ret_check",
srcs = ["ret_check.cc"],
hdrs = ["ret_check.h"],
# Use this library through "mediapipe/framework/port:ret_check".
visibility = ["//mediapipe/framework/port:__pkg__"],
deps = [
":status",
"@com_google_absl//absl/base:core_headers",
],
)
cc_library(
name = "thread_options",
hdrs = ["thread_options.h"],
visibility = ["//visibility:public"],
)
cc_library(
name = "threadpool",
srcs = ["threadpool.cc"],
hdrs = ["threadpool.h"],
# Use this library through "mediapipe/framework/port:threadpool".
visibility = ["//mediapipe/framework/port:__pkg__"],
deps = [
":thread_options",
"//mediapipe/framework/port:logging",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/synchronization",
],
)
cc_library(
name = "topologicalsorter",
srcs = ["topologicalsorter.cc"],
hdrs = ["topologicalsorter.h"],
# Use this library through "mediapipe/framework/port:topologicalsorter".
visibility = ["//mediapipe/framework/port:__pkg__"],
deps = [
"//mediapipe/framework/port:logging",
],
)
cc_library(
name = "vector",
hdrs = ["vector.h"],
# Use this library through "mediapipe/framework/port:vector".
visibility = ["//mediapipe/framework/port:__pkg__"],
deps = [
"//mediapipe/framework/port:integral_types",
"//mediapipe/framework/port:logging",
"@com_google_absl//absl/utility",
],
)
cc_test(
name = "mathutil_unittest",
srcs = ["mathutil_unittest.cc"],
visibility = ["//visibility:public"],
deps = [
":mathutil",
"//mediapipe/framework/port:benchmark",
"//mediapipe/framework/port:gtest_main",
],
)
cc_test(
name = "registration_token_test",
srcs = ["registration_token_test.cc"],
linkstatic = 1,
visibility = ["//visibility:public"],
deps = [
":registration_token",
"//mediapipe/framework/port:gtest_main",
],
)
cc_test(
name = "safe_int_test",
size = "small",
timeout = "long",
srcs = ["safe_int_test.cc"],
linkstatic = 1,
visibility = ["//visibility:public"],
deps = [
":intops",
"//mediapipe/framework/port:gtest_main",
"@com_google_absl//absl/base:core_headers",
],
)
cc_test(
name = "monotonic_clock_test",
srcs = ["monotonic_clock_test.cc"],
linkstatic = 1,
visibility = ["//visibility:public"],
deps = [
":clock",
"//mediapipe/framework/port:gtest_main",
"//mediapipe/framework/port:integral_types",
"//mediapipe/framework/port:logging",
"//mediapipe/framework/port:threadpool",
"//mediapipe/framework/tool:simulation_clock",
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/memory",
"@com_google_absl//absl/synchronization",
"@com_google_absl//absl/time",
],
)
cc_test(
name = "status_builder_test",
size = "small",
srcs = ["status_builder_test.cc"],
linkstatic = 1,
deps = [
":status",
"//mediapipe/framework/port:gtest_main",
],
)
cc_test(
name = "status_test",
size = "small",
srcs = ["status_test.cc"],
linkstatic = 1,
deps = [
":status",
":status_matchers",
"//mediapipe/framework/port:gtest_main",
],
)
cc_test(
name = "statusor_test",
size = "small",
srcs = ["statusor_test.cc"],
linkstatic = 1,
deps = [
":status",
":statusor",
"//mediapipe/framework/port:gtest_main",
],
)
cc_test(
name = "topologicalsorter_test",
srcs = ["topologicalsorter_test.cc"],
linkstatic = 1,
deps = [
":topologicalsorter",
"//mediapipe/framework/port:gtest_main",
],
)
cc_test(
name = "threadpool_test",
srcs = ["threadpool_test.cc"],
linkstatic = 1,
deps = [
":threadpool",
"//mediapipe/framework/port:gtest_main",
"@com_google_absl//absl/synchronization",
],
)