1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
| licenses(["notice"]) # Apache 2.0
|
| load("//tensorflow:tensorflow.bzl", "tf_cc_test")
| load("//tensorflow/stream_executor:build_defs.bzl", "stream_executor_friends")
|
| package_group(
| name = "friends",
| packages = stream_executor_friends(),
| )
|
| package(default_visibility = [":friends"])
|
| filegroup(
| name = "c_srcs",
| data = glob([
| "**/*.cc",
| "**/*.h",
| ]),
| )
|
| cc_library(
| name = "lib",
| srcs = glob(
| [
| "**/*.cc",
| ],
| exclude = [
| "**/*test*",
| ],
| ),
| hdrs = glob(["**/*.h"]),
| deps = [
| "//tensorflow/core:lib",
| "//tensorflow/core:protos_all_cc",
| "//tensorflow/core:ptr_util",
| "//tensorflow/stream_executor/platform",
| "@com_google_absl//absl/strings",
| "@com_google_absl//absl/types:span",
| ],
| )
|
| tf_cc_test(
| name = "statusor_test",
| size = "small",
| srcs = ["statusor_test.cc"],
| deps = [
| ":lib",
| "//tensorflow/core:lib",
| "//tensorflow/core:test",
| "//tensorflow/core:test_main",
| ],
| )
|
| cc_library(
| name = "utility_headers",
| hdrs = [
| "ptr_util.h",
| ],
| deps = [
| "//tensorflow/core:ptr_util",
| ],
| )
|
|