blob: c0ccdcd625e565bb4131f2dff371722b7266b65e [file] [log] [blame]
Thomas Van Lenten8c575e72018-11-26 17:31:29 -05001load("//:bzl_library.bzl", "bzl_library")
2
c-parsons734652a2019-10-28 12:20:43 -04003licenses(["notice"])
Nathan Herringceeecf92017-10-31 22:54:25 +01004
5package(default_visibility = ["//visibility:public"])
6
Laurent Le Brun2d0c6512020-04-02 22:20:57 +02007exports_files(["LICENSE"])
Tony Allevato82b3ad62017-10-10 07:59:31 -07008
9filegroup(
10 name = "test_deps",
Thomas Van Lentena95326e2018-02-20 16:09:20 -050011 testonly = True,
Tony Allevato82b3ad62017-10-10 07:59:31 -070012 srcs = [
13 "BUILD",
14 "//lib:test_deps",
Thomas Van Lenten4b67f5f2019-01-28 13:51:57 -050015 "//rules:test_deps",
c-parsonsc41adf32019-01-16 17:00:03 -050016 "//toolchains/unittest:test_deps",
Tony Allevato82b3ad62017-10-10 07:59:31 -070017 ] + glob(["*.bzl"]),
Nathan Herringceeecf92017-10-31 22:54:25 +010018)
19
c-parsons6e2d7e42018-09-28 09:09:18 -040020bzl_library(
Nathan Herringceeecf92017-10-31 22:54:25 +010021 name = "lib",
22 srcs = ["lib.bzl"],
Thomas Van Lenten1099dd22018-09-24 15:48:24 -040023 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 Herringceeecf92017-10-31 22:54:25 +010027 deps = [
28 "//lib:collections",
29 "//lib:dicts",
Nicholas Titcombe0b40ea72018-04-20 14:44:25 -070030 "//lib:new_sets",
dmaclachd46b6072018-04-17 09:33:38 -070031 "//lib:partial",
Nathan Herringceeecf92017-10-31 22:54:25 +010032 "//lib:paths",
33 "//lib:selects",
34 "//lib:sets",
35 "//lib:shell",
36 "//lib:structs",
Thomas Van Lenten3fea8cb2018-06-13 14:11:04 -040037 "//lib:types",
Nathan Herringceeecf92017-10-31 22:54:25 +010038 "//lib:unittest",
Thomas Van Lentenf9b0ff12018-02-20 16:52:51 -050039 "//lib:versions",
Nathan Herringceeecf92017-10-31 22:54:25 +010040 ],
41)
42
c-parsons6e2d7e42018-09-28 09:09:18 -040043bzl_library(
44 name = "bzl_library",
45 srcs = ["bzl_library.bzl"],
Tony Allevato82b3ad62017-10-10 07:59:31 -070046)
aiutoab874102019-08-23 14:37:16 -040047
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.
52filegroup(
53 name = "distribution",
54 srcs = [
55 "LICENSE",
56 "BUILD",
57 "CODEOWNERS",
58 "CONTRIBUTORS",
59 "//lib:distribution",
60 "//rules:distribution",
aiuto47c6eb12019-10-08 15:05:48 -040061 "//rules/private:distribution",
62 "//toolchains/unittest:distribution",
aiutoab874102019-08-23 14:37:16 -040063 ] + glob(["*.bzl"]),
64)
aiutoe59b6202019-10-09 12:43:21 -040065
66filegroup(
67 name = "bins",
68 srcs = [
69 "//rules:bins",
70 ],
71)