diff options
author | Nathan Herring <Capstan@users.noreply.github.com> | 2017-10-31 22:54:25 +0100 |
---|---|---|
committer | Tony Allevato <tony.allevato@gmail.com> | 2017-10-31 14:54:25 -0700 |
commit | ceeecf9ce66ae3389e0ec9ad85c59824fe343ec9 (patch) | |
tree | 2e7f5f1e9e120636f51ed799f8ed84fbf8ce8b7d /BUILD | |
parent | 2a48723686fe2cc814e7acd0fa61ee26ed660513 (diff) | |
download | bazel-skylib-ceeecf9ce66ae3389e0ec9ad85c59824fe343ec9.tar.gz |
Add skylark_library rule (#8)
`skylark_library` targets aggregate `.bzl` files and their dependencies for unit tests as well as Skydoc generation.
Diffstat (limited to 'BUILD')
-rw-r--r-- | BUILD | 27 |
1 files changed, 25 insertions, 2 deletions
@@ -1,4 +1,8 @@ -licenses(["notice"]) +licenses(["notice"]) # Apache 2.0 + +package(default_visibility = ["//visibility:public"]) + +load("//:skylark_library.bzl", "skylark_library") exports_files([ "LICENSE", @@ -12,5 +16,24 @@ filegroup( "//lib:test_deps", ] + glob(["*.bzl"]), testonly = True, - visibility = ["//visibility:public"], +) + +skylark_library( + name = "lib", + srcs = ["lib.bzl"], + deps = [ + "//lib:collections", + "//lib:dicts", + "//lib:paths", + "//lib:selects", + "//lib:sets", + "//lib:shell", + "//lib:structs", + "//lib:unittest", + ], +) + +skylark_library( + name = "skylark_library", + srcs = ["skylark_library.bzl"], ) |