Create BUILD files and corresponding targets for tensorflow/core/user_ops/BUILD
.
PiperOrigin-RevId: 341515091 Change-Id: I931a075b29d9859e7ae72021b3f6e090ba7716f8
This commit is contained in:
parent
ef94af1f7c
commit
8ecbafd84c
@ -537,15 +537,11 @@ cc_library(
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
# One target for all user ops
|
# One target for all user ops.
|
||||||
cc_library(
|
alias(
|
||||||
name = "user_ops_op_lib",
|
name = "user_ops_op_lib",
|
||||||
srcs = glob(["user_ops/**/*.cc"]),
|
actual = "//tensorflow/core/user_ops:user_ops_op_lib",
|
||||||
copts = tf_copts(),
|
|
||||||
linkstatic = 1,
|
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = [":framework"],
|
|
||||||
alwayslink = 1,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
|
28
tensorflow/core/user_ops/BUILD
Normal file
28
tensorflow/core/user_ops/BUILD
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# User ops.
|
||||||
|
|
||||||
|
load(
|
||||||
|
"//tensorflow/core/platform:rules_cc.bzl",
|
||||||
|
"cc_library",
|
||||||
|
)
|
||||||
|
load(
|
||||||
|
"//tensorflow:tensorflow.bzl",
|
||||||
|
"tf_copts",
|
||||||
|
)
|
||||||
|
|
||||||
|
package(
|
||||||
|
default_visibility = [
|
||||||
|
"//tensorflow/core:__pkg__",
|
||||||
|
],
|
||||||
|
licenses = ["notice"], # Apache 2.0
|
||||||
|
)
|
||||||
|
|
||||||
|
# One target for all user ops.
|
||||||
|
cc_library(
|
||||||
|
name = "user_ops_op_lib",
|
||||||
|
srcs = glob(["*.cc"]),
|
||||||
|
copts = tf_copts(),
|
||||||
|
linkstatic = 1,
|
||||||
|
visibility = ["//tensorflow/core:__pkg__"],
|
||||||
|
deps = ["//tensorflow/core:framework"],
|
||||||
|
alwayslink = 1,
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user