forked from facebook/buck2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUCK
40 lines (33 loc) · 976 Bytes
/
BUCK
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
load("@prelude//utils:source_listing.bzl", "source_listing")
load(":native.bzl", prelude = "native")
oncall("build_infra")
source_listing()
# Done to avoid triggering a lint rule that replaces glob with an fbcode macro
globby = glob
srcs = globby(
["**"],
# Context: https://fb.workplace.com/groups/buck2users/posts/3121903854732641/
exclude = ["**/.pyre_configuration.local"],
)
# Re-export filegroups that are behind package boundary violations for
# Buck2.
prelude.filegroup(
name = "files",
srcs = srcs,
visibility = ["PUBLIC"],
)
# Tests want BUCK.v2 instead of TARGETS.v2
prelude.genrule(
name = "copy_android_constraint",
out = "BUCK.v2",
cmd = "cp $(location prelude//android/constraints:files)/TARGETS.v2 $OUT",
visibility = ["PUBLIC"],
)
prelude.filegroup(
name = "prelude",
srcs = {
"": ":files",
"android/constraints/BUCK.v2": ":copy_android_constraint",
},
visibility = ["PUBLIC"],
)