Thomas Van Lenten | 8c575e7 | 2018-11-26 17:31:29 -0500 | [diff] [blame] | 1 | load("//:bzl_library.bzl", "bzl_library") |
| 2 | |
c-parsons | 734652a | 2019-10-28 12:20:43 -0400 | [diff] [blame] | 3 | licenses(["notice"]) |
Nathan Herring | ceeecf9 | 2017-10-31 22:54:25 +0100 | [diff] [blame] | 4 | |
| 5 | package(default_visibility = ["//visibility:public"]) |
| 6 | |
Laurent Le Brun | 2d0c651 | 2020-04-02 22:20:57 +0200 | [diff] [blame] | 7 | exports_files(["LICENSE"]) |
Tony Allevato | 82b3ad6 | 2017-10-10 07:59:31 -0700 | [diff] [blame] | 8 | |
| 9 | filegroup( |
| 10 | name = "test_deps", |
Thomas Van Lenten | a95326e | 2018-02-20 16:09:20 -0500 | [diff] [blame] | 11 | testonly = True, |
Tony Allevato | 82b3ad6 | 2017-10-10 07:59:31 -0700 | [diff] [blame] | 12 | srcs = [ |
| 13 | "BUILD", |
| 14 | "//lib:test_deps", |
Thomas Van Lenten | 4b67f5f | 2019-01-28 13:51:57 -0500 | [diff] [blame] | 15 | "//rules:test_deps", |
c-parsons | c41adf3 | 2019-01-16 17:00:03 -0500 | [diff] [blame] | 16 | "//toolchains/unittest:test_deps", |
Tony Allevato | 82b3ad6 | 2017-10-10 07:59:31 -0700 | [diff] [blame] | 17 | ] + glob(["*.bzl"]), |
Nathan Herring | ceeecf9 | 2017-10-31 22:54:25 +0100 | [diff] [blame] | 18 | ) |
| 19 | |
c-parsons | 6e2d7e4 | 2018-09-28 09:09:18 -0400 | [diff] [blame] | 20 | bzl_library( |
Nathan Herring | ceeecf9 | 2017-10-31 22:54:25 +0100 | [diff] [blame] | 21 | name = "lib", |
| 22 | srcs = ["lib.bzl"], |
Thomas Van Lenten | 1099dd2 | 2018-09-24 15:48:24 -0400 | [diff] [blame] | 23 | deprecation = ( |
| 24 | "lib.bzl will go away in the future, please directly depend on the" + |
| 25 | " module(s) needed as it is more efficient." |
| 26 | ), |
Nathan Herring | ceeecf9 | 2017-10-31 22:54:25 +0100 | [diff] [blame] | 27 | deps = [ |
| 28 | "//lib:collections", |
| 29 | "//lib:dicts", |
Nicholas Titcombe | 0b40ea7 | 2018-04-20 14:44:25 -0700 | [diff] [blame] | 30 | "//lib:new_sets", |
dmaclach | d46b607 | 2018-04-17 09:33:38 -0700 | [diff] [blame] | 31 | "//lib:partial", |
Nathan Herring | ceeecf9 | 2017-10-31 22:54:25 +0100 | [diff] [blame] | 32 | "//lib:paths", |
| 33 | "//lib:selects", |
| 34 | "//lib:sets", |
| 35 | "//lib:shell", |
| 36 | "//lib:structs", |
Thomas Van Lenten | 3fea8cb | 2018-06-13 14:11:04 -0400 | [diff] [blame] | 37 | "//lib:types", |
Nathan Herring | ceeecf9 | 2017-10-31 22:54:25 +0100 | [diff] [blame] | 38 | "//lib:unittest", |
Thomas Van Lenten | f9b0ff1 | 2018-02-20 16:52:51 -0500 | [diff] [blame] | 39 | "//lib:versions", |
Nathan Herring | ceeecf9 | 2017-10-31 22:54:25 +0100 | [diff] [blame] | 40 | ], |
| 41 | ) |
| 42 | |
c-parsons | 6e2d7e4 | 2018-09-28 09:09:18 -0400 | [diff] [blame] | 43 | bzl_library( |
| 44 | name = "bzl_library", |
| 45 | srcs = ["bzl_library.bzl"], |
Tony Allevato | 82b3ad6 | 2017-10-10 07:59:31 -0700 | [diff] [blame] | 46 | ) |
aiuto | ab87410 | 2019-08-23 14:37:16 -0400 | [diff] [blame] | 47 | |
| 48 | # The files needed for distribution. |
| 49 | # TODO(aiuto): We should strip this from the release, but there is no |
| 50 | # capability now to generate BUILD.foo from BUILD and have it appear in the |
| 51 | # tarball as BUILD. |
| 52 | filegroup( |
| 53 | name = "distribution", |
| 54 | srcs = [ |
| 55 | "LICENSE", |
| 56 | "BUILD", |
| 57 | "CODEOWNERS", |
| 58 | "CONTRIBUTORS", |
| 59 | "//lib:distribution", |
| 60 | "//rules:distribution", |
aiuto | 47c6eb1 | 2019-10-08 15:05:48 -0400 | [diff] [blame] | 61 | "//rules/private:distribution", |
| 62 | "//toolchains/unittest:distribution", |
aiuto | ab87410 | 2019-08-23 14:37:16 -0400 | [diff] [blame] | 63 | ] + glob(["*.bzl"]), |
| 64 | ) |
aiuto | e59b620 | 2019-10-09 12:43:21 -0400 | [diff] [blame] | 65 | |
| 66 | filegroup( |
| 67 | name = "bins", |
| 68 | srcs = [ |
| 69 | "//rules:bins", |
| 70 | ], |
| 71 | ) |