Collect Bazel files into bzl_library targets

PiperOrigin-RevId: 325221214
Change-Id: Iab03b900e143b9b95bed151097abb59ac1e0f996
This commit is contained in:
Christian Blichmann 2020-08-06 06:53:17 -07:00 committed by Copybara-Service
parent 8633f22185
commit 11fd8ba330
3 changed files with 35 additions and 3 deletions

View File

@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
licenses(["notice"])
exports_files([
@ -19,3 +21,33 @@ exports_files([
"embed_data.bzl",
"sapi.bzl",
])
bzl_library(
name = "build_defs_bzl",
srcs = ["build_defs.bzl"],
visibility = ["//visibility:private"],
)
bzl_library(
name = "embed_data_bzl",
srcs = ["embed_data.bzl"],
visibility = ["//visibility:private"],
)
bzl_library(
name = "proto_bzl",
srcs = ["proto.bzl"],
visibility = ["//visibility:private"],
)
bzl_library(
name = "repositories_bzl",
srcs = ["repositories.bzl"],
visibility = ["//visibility:private"],
)
bzl_library(
name = "sapi_deps_bzl",
srcs = ["sapi_deps.bzl"],
visibility = ["//visibility:private"],
)

View File

@ -16,8 +16,8 @@
_FILEWRAPPER = "//sandboxed_api/tools/filewrapper"
# TODO(cblichmann): Convert this is to use a "_cc_toolchain" once Bazel #4370
# is fixed.
# TODO(cblichmann): Convert this to use a "_cc_toolchain" once Bazel #4370 is
# fixed.
def _sapi_cc_embed_data_impl(ctx):
cc_file_artifact = None
h_file_artifact = None

View File

@ -56,7 +56,7 @@ def sapi_proto_library(
deps = [],
alwayslink = False,
**kwargs):
"""Generates proto targets in various languages.
"""Generates proto library and C++ targets.
Args:
name: Name for proto_library and base for the cc_proto_library name, name +