Skip to content

Commit

Permalink
Add bzl_library targets
Browse files Browse the repository at this point in the history
These are useful for stardoc from other rules repos
  • Loading branch information
keith committed Aug 17, 2020
1 parent 1fdf540 commit da714ef
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions proto/BUILD
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

# Intentionally left empty (for now).

bzl_library(
name = "defs",
srcs = ["defs.bzl"],
visibility = ["//visibility:public"],
deps = ["@rules_proto//proto/private:native"],
)

bzl_library(
name = "repositories",
srcs = ["repositories.bzl"],
visibility = ["//visibility:public"],
deps = [
"@bazel_tools//tools/build_defs/repo:http",
"@bazel_tools//tools/build_defs/repo:utils",
"@rules_proto//proto/private:dependencies",
],
)
12 changes: 12 additions & 0 deletions proto/private/BUILD
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

# Intentionally left empty (for now).

bzl_library(
name = "dependencies",
srcs = ["dependencies.bzl"],
)

bzl_library(
name = "native",
srcs = ["native.bzl"],
)
8 changes: 8 additions & 0 deletions tests/load_from_macro/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

# Copyright 2019 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -20,3 +22,9 @@ proto_library(
srcs = ["foo.proto"],
tags = TAGS,
)

bzl_library(
name = "tags",
srcs = ["tags.bzl"],
visibility = ["//visibility:public"],
)

0 comments on commit da714ef

Please sign in to comment.