Add bzl_library build target for various Skylark libraries.

PiperOrigin-RevId: 270958099
This commit is contained in:
Scott Wegner 2019-09-24 12:09:18 -07:00 committed by TensorFlower Gardener
parent 8e571e4306
commit 93a0fb7e51
20 changed files with 184 additions and 1 deletions

View File

@ -31,6 +31,7 @@ load(
"//third_party/mkl:build_defs.bzl",
"if_mkl_ml",
)
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
package(
default_visibility = [":internal"],
@ -457,6 +458,22 @@ filegroup(
),
)
bzl_library(
name = "tensorflow_bzl",
srcs = ["tensorflow.bzl"],
visibility = ["//visibility:public"],
deps = [
"//tensorflow/core/platform:build_config_root_bzl",
"//tensorflow/core/platform:cuda_build_defs_bzl",
"//third_party/mkl:build_defs_bzl",
"//third_party/mkl_dnn:build_defs_bzl",
"//third_party/ngraph:build_defs_bzl",
"@local_config_cuda//cuda:build_defs_bzl",
"@local_config_rocm//rocm:build_defs_bzl",
"@local_config_tensorrt//:build_defs_bzl",
],
)
cc_library(
name = "grpc",
visibility = ["//visibility:public"],

View File

@ -39,6 +39,7 @@ load(
"@local_config_rocm//rocm:build_defs.bzl",
"if_rocm_is_configured",
)
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
package(
default_visibility = [
@ -815,3 +816,13 @@ exports_files(
],
),
)
bzl_library(
name = "build_config_root_bzl",
srcs = ["default/build_config_root.bzl"],
)
bzl_library(
name = "cuda_build_defs_bzl",
srcs = ["default/cuda_build_defs.bzl"],
)

View File

@ -0,0 +1,9 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
bzl_library(
name = "build_defs_bzl",
srcs = ["build_defs.bzl"],
deps = [
"@bazel_skylib//lib:selects",
],
)

View File

@ -1,4 +1,5 @@
load(":build_defs.bzl", "cuda_header_library")
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
licenses(["restricted"]) # MPL2, portions GPL v3, LGPL v3, BSD-like
@ -165,4 +166,12 @@ cc_library(
data = [":cuda-nvvm"],
)
bzl_library(
name = "build_defs_bzl",
srcs = ["build_defs.bzl"],
deps = [
"@bazel_skylib//lib:selects",
],
)
%{copy_rules}

View File

@ -1,4 +1,5 @@
load(":build_defs.bzl", "cuda_header_library")
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
licenses(["restricted"]) # MPL2, portions GPL v3, LGPL v3, BSD-like
@ -159,4 +160,12 @@ cc_library(
data = [":cuda-nvvm"],
)
bzl_library(
name = "build_defs_bzl",
srcs = ["build_defs.bzl"],
deps = [
"@bazel_skylib//lib:selects",
],
)
%{copy_rules}

View File

@ -0,0 +1,6 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
bzl_library(
name = "build_defs_bzl",
srcs = ["build_defs.bzl"],
)

View File

@ -1,3 +1,5 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
licenses(["restricted"]) # MPL2, portions GPL v3, LGPL v3, BSD-like
package(default_visibility = ["//visibility:public"])
@ -109,4 +111,9 @@ cc_library(
],
)
bzl_library(
name = "build_defs_bzl",
srcs = ["build_defs.bzl"],
)
%{copy_rules}

View File

@ -1,5 +1,7 @@
licenses(["notice"]) # 3-Clause BSD
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
config_setting(
name = "build_with_mkl",
define_values = {
@ -78,3 +80,9 @@ cc_library(
"//conditions:default": [],
}),
)
bzl_library(
name = "build_defs_bzl",
srcs = ["build_defs.bzl"],
visibility = ["//visibility:public"],
)

View File

@ -1,4 +1,11 @@
package(licenses = ["notice"])
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
package(
default_visibility = [
"//tensorflow:__subpackages__",
],
licenses = ["notice"],
)
exports_files(["LICENSE"])
@ -19,3 +26,8 @@ config_setting(
},
visibility = ["//visibility:public"],
)
bzl_library(
name = "build_defs_bzl",
srcs = ["build_defs.bzl"],
)

View File

@ -1 +1,9 @@
licenses(["notice"]) # 3-Clause BSD
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
bzl_library(
name = "build_defs_bzl",
srcs = ["build_defs.bzl"],
visibility = ["//visibility:public"],
)

View File

@ -4,6 +4,7 @@
licenses(["notice"])
load("@local_config_cuda//cuda:build_defs.bzl", "cuda_default_copts")
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
package(default_visibility = ["//visibility:public"])
@ -31,4 +32,12 @@ cc_library(
],
)
bzl_library(
name = "build_defs_bzl",
srcs = ["build_defs.bzl"],
deps = [
"@bazel_skylib//lib:selects",
],
)
%{copy_rules}

View File

@ -1,4 +1,5 @@
load(":build_defs.bzl", "cuda_header_library")
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
licenses(["restricted"]) # MPL2, portions GPL v3, LGPL v3, BSD-like
@ -165,6 +166,14 @@ cc_library(
data = [":cuda-nvvm"],
)
bzl_library(
name = "build_defs_bzl",
srcs = ["build_defs.bzl"],
deps = [
"@bazel_skylib//lib:selects",
],
)
genrule(
name = "cuda-include",
outs = [

View File

@ -1,4 +1,5 @@
load(":build_defs.bzl", "cuda_header_library")
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
licenses(["restricted"]) # MPL2, portions GPL v3, LGPL v3, BSD-like
@ -165,6 +166,14 @@ cc_library(
data = [":cuda-nvvm"],
)
bzl_library(
name = "build_defs_bzl",
srcs = ["build_defs.bzl"],
deps = [
"@bazel_skylib//lib:selects",
],
)
genrule(
name = "cuda-include",
outs = [

View File

@ -31,6 +31,14 @@ cc_library(
],
)
bzl_library(
name = "build_defs_bzl",
srcs = ["build_defs.bzl"],
deps = [
"@bazel_skylib//lib:selects",
],
)
genrule(
name = "tensorrt_lib",
outs = [

View File

@ -1,4 +1,5 @@
load(":build_defs.bzl", "cuda_header_library")
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
licenses(["restricted"]) # MPL2, portions GPL v3, LGPL v3, BSD-like
@ -165,6 +166,14 @@ cc_library(
data = [":cuda-nvvm"],
)
bzl_library(
name = "build_defs_bzl",
srcs = ["build_defs.bzl"],
deps = [
"@bazel_skylib//lib:selects",
],
)
genrule(
name = "cuda-include",
outs = [

View File

@ -4,6 +4,7 @@
licenses(["notice"])
load("@local_config_cuda//cuda:build_defs.bzl", "cuda_default_copts")
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
package(default_visibility = ["//visibility:public"])
@ -31,6 +32,14 @@ cc_library(
],
)
bzl_library(
name = "build_defs_bzl",
srcs = ["build_defs.bzl"],
deps = [
"@bazel_skylib//lib:selects",
],
)
genrule(
name = "tensorrt_lib",
outs = [

View File

@ -1,4 +1,5 @@
load(":build_defs.bzl", "cuda_header_library")
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
licenses(["restricted"]) # MPL2, portions GPL v3, LGPL v3, BSD-like
@ -165,6 +166,14 @@ cc_library(
data = [":cuda-nvvm"],
)
bzl_library(
name = "build_defs_bzl",
srcs = ["build_defs.bzl"],
deps = [
"@bazel_skylib//lib:selects",
],
)
genrule(
name = "cuda-include",
outs = [

View File

@ -1,3 +1,5 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
licenses(["restricted"]) # MPL2, portions GPL v3, LGPL v3, BSD-like
package(default_visibility = ["//visibility:public"])
@ -113,6 +115,11 @@ cc_library(
],
)
bzl_library(
name = "build_defs_bzl",
srcs = ["build_defs.bzl"],
)
genrule(
name = "rocm-include",
outs = [

View File

@ -4,6 +4,7 @@
licenses(["notice"])
load("@local_config_cuda//cuda:build_defs.bzl", "cuda_default_copts")
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
package(default_visibility = ["//visibility:public"])
@ -28,6 +29,14 @@ cc_library(
],
)
bzl_library(
name = "build_defs_bzl",
srcs = ["build_defs.bzl"],
deps = [
"@bazel_skylib//lib:selects",
],
)
genrule(
name = "tensorrt_lib",
outs = [

View File

@ -4,6 +4,7 @@
licenses(["notice"])
load("@local_config_cuda//cuda:build_defs.bzl", "cuda_default_copts")
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
package(default_visibility = ["//visibility:public"])
@ -31,6 +32,14 @@ cc_library(
],
)
bzl_library(
name = "build_defs_bzl",
srcs = ["build_defs.bzl"],
deps = [
"@bazel_skylib//lib:selects",
],
)
genrule(
name = "tensorrt_lib",
outs = [