Create BUILD files and corresponding targets for tensorflow/core/user_ops/BUILD.

PiperOrigin-RevId: 341515091
Change-Id: I931a075b29d9859e7ae72021b3f6e090ba7716f8
This commit is contained in:
Amit Patankar 2020-11-09 17:03:39 -08:00 committed by TensorFlower Gardener
parent ef94af1f7c
commit 8ecbafd84c
2 changed files with 31 additions and 7 deletions

View File

@ -537,15 +537,11 @@ cc_library(
],
)
# One target for all user ops
cc_library(
# One target for all user ops.
alias(
name = "user_ops_op_lib",
srcs = glob(["user_ops/**/*.cc"]),
copts = tf_copts(),
linkstatic = 1,
actual = "//tensorflow/core/user_ops:user_ops_op_lib",
visibility = ["//visibility:public"],
deps = [":framework"],
alwayslink = 1,
)
cc_library(

View 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,
)