| load("//tensorflow/core/platform:build_config.bzl", "tf_proto_library") |
| |
| package( |
| default_visibility = [ |
| "//tensorflow/core:__subpackages__", |
| ], |
| licenses = ["notice"], # Apache 2.0 |
| ) |
| |
| # Todo(bmzhao): Remaining targets to add to this BUILD file are all tests. |
| |
| cc_library( |
| name = "arena", |
| srcs = ["arena.cc"], |
| hdrs = ["arena.h"], |
| deps = [ |
| "//tensorflow/core/lib/math:math_util", |
| "//tensorflow/core/platform:logging", |
| "//tensorflow/core/platform:macros", |
| "//tensorflow/core/platform:platform_port", |
| "//tensorflow/core/platform:types", |
| ], |
| ) |
| |
| cc_library( |
| name = "bitmap", |
| srcs = ["bitmap.cc"], |
| hdrs = ["bitmap.h"], |
| deps = [ |
| "//tensorflow/core/platform:logging", |
| "//tensorflow/core/platform:types", |
| ], |
| alwayslink = 1, |
| ) |
| |
| cc_library( |
| name = "blocking_counter", |
| hdrs = ["blocking_counter.h"], |
| deps = [ |
| "//tensorflow/core/platform:logging", |
| "//tensorflow/core/platform:mutex", |
| ], |
| ) |
| |
| cc_library( |
| name = "bits", |
| hdrs = ["bits.h"], |
| deps = [ |
| "//tensorflow/core/platform:logging", |
| "//tensorflow/core/platform:types", |
| ], |
| ) |
| |
| cc_library( |
| name = "coding", |
| srcs = ["coding.cc"], |
| hdrs = ["coding.h"], |
| deps = [ |
| "//tensorflow/core/lib/core:raw_coding", |
| "//tensorflow/core/lib/core:stringpiece", |
| "//tensorflow/core/platform:byte_order", |
| "//tensorflow/core/platform:types", |
| ], |
| ) |
| |
| cc_library( |
| name = "errors", |
| hdrs = ["errors.h"], |
| deps = [ |
| ":status", |
| "//tensorflow/core/platform:logging", |
| "//tensorflow/core/platform:macros", |
| "//tensorflow/core/platform:str_util", |
| "//tensorflow/core/platform:strcat", |
| "@com_google_absl//absl/strings", |
| ], |
| ) |
| |
| cc_library( |
| name = "notification", |
| hdrs = ["notification.h"], |
| deps = [ |
| "//tensorflow/core/platform:notification", |
| ], |
| ) |
| |
| cc_library( |
| name = "raw_coding", |
| hdrs = ["raw_coding.h"], |
| deps = [ |
| "//tensorflow/core/platform:raw_coding", |
| ], |
| ) |
| |
| cc_library( |
| name = "refcount", |
| hdrs = ["refcount.h"], |
| deps = ["//tensorflow/core/platform:refcount"], |
| ) |
| |
| cc_library( |
| name = "status", |
| hdrs = ["status.h"], |
| deps = [ |
| "//tensorflow/core/platform:status", |
| ], |
| ) |
| |
| cc_library( |
| name = "stringpiece", |
| hdrs = ["stringpiece.h"], |
| deps = [ |
| "//tensorflow/core/platform:stringpiece", |
| ], |
| ) |
| |
| cc_library( |
| name = "threadpool", |
| hdrs = ["threadpool.h"], |
| deps = [ |
| "//tensorflow/core/platform:env", |
| ], |
| ) |
| |
| cc_library( |
| name = "threadpool_interface", |
| hdrs = ["threadpool_interface.h"], |
| deps = [ |
| "//tensorflow/core/platform:threadpool_interface", |
| ], |
| ) |
| |
| cc_library( |
| name = "threadpool_options", |
| hdrs = ["threadpool_options.h"], |
| deps = [ |
| "//tensorflow/core/platform:threadpool_options", |
| ], |
| ) |
| |
| tf_proto_library( |
| name = "error_codes_proto", |
| srcs = ["error_codes.proto"], |
| cc_api_version = 2, |
| make_default_target_header_only = True, |
| protodeps = [ |
| "//tensorflow/core:error_codes_proto_impl", |
| ], |
| visibility = ["//tensorflow/core:__subpackages__"], |
| exports = ["//tensorflow/core:error_codes_proto_impl"], |
| ) |
| |
| filegroup( |
| name = "legacy_lib_core_all_headers", |
| srcs = [ |
| "arena.h", |
| "bitmap.h", |
| "bits.h", |
| "blocking_counter.h", |
| "coding.h", |
| "errors.h", |
| "notification.h", |
| "raw_coding.h", |
| "refcount.h", |
| "status.h", |
| "status_test_util.h", |
| "stringpiece.h", |
| "threadpool.h", |
| "threadpool_interface.h", |
| "threadpool_options.h", |
| ], |
| visibility = ["//tensorflow/core:__pkg__"], |
| ) |
| |
| filegroup( |
| name = "legacy_lib_core_all_srcs", |
| srcs = [ |
| "arena.cc", |
| "bitmap.cc", |
| "coding.cc", |
| ], |
| visibility = ["//tensorflow/core:__pkg__"], |
| ) |
| |
| filegroup( |
| name = "legacy_lib_core_all_tests", |
| srcs = [ |
| "arena_test.cc", |
| "bitmap_test.cc", |
| "blocking_counter_test.cc", |
| "coding_test.cc", |
| "notification_test.cc", |
| "refcount_test.cc", |
| "status_test.cc", |
| "threadpool_test.cc", |
| ], |
| visibility = ["//tensorflow/core:__pkg__"], |
| ) |
| |
| filegroup( |
| name = "legacy_lib_internal_core_headers", |
| srcs = [ |
| "blocking_counter.h", |
| "refcount.h", |
| ], |
| visibility = ["//tensorflow/core:__pkg__"], |
| ) |
| |
| filegroup( |
| name = "legacy_lib_core_status_header", |
| srcs = [ |
| "status.h", |
| ], |
| visibility = ["//tensorflow/core:__pkg__"], |
| ) |
| |
| filegroup( |
| name = "legacy_lib_core_status_test_util_header", |
| srcs = [ |
| "status_test_util.h", |
| ], |
| visibility = ["//tensorflow/core:__pkg__"], |
| ) |
| |
| filegroup( |
| name = "legacy_lib_core_stringpiece_header", |
| srcs = [ |
| "stringpiece.h", |
| ], |
| visibility = ["//tensorflow/core:__pkg__"], |
| ) |
| |
| filegroup( |
| name = "legacy_lib_core_threadpool_options_header", |
| srcs = [ |
| "threadpool_options.h", |
| ], |
| visibility = ["//tensorflow/core:__pkg__"], |
| ) |
| |
| filegroup( |
| name = "legacy_lib_proto_parsing_headers", |
| srcs = [ |
| "errors.h", |
| "status.h", |
| "stringpiece.h", |
| ], |
| visibility = ["//tensorflow/core:__pkg__"], |
| ) |
| |
| filegroup( |
| name = "legacy_lib_core_headers", |
| srcs = [ |
| "arena.h", |
| "bitmap.h", |
| "bits.h", |
| "coding.h", |
| "errors.h", |
| "notification.h", |
| "raw_coding.h", |
| "status.h", |
| "stringpiece.h", |
| "threadpool.h", |
| "threadpool_interface.h", |
| ], |
| visibility = ["//tensorflow/core:__pkg__"], |
| ) |
| |
| # This is needed because of how tf_android_core_proto_sources parses proto paths. |
| exports_files( |
| srcs = ["error_codes.proto"], |
| visibility = ["//tensorflow/core:__pkg__"], |
| ) |