This repository has been archived by the owner on Jul 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUCK
70 lines (60 loc) · 1.56 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
load(
"@prelude//toolchains/conan:defs.bzl",
"conan_generate",
"conan_lock",
"conan_update",
"lock_generate",
)
load("//concat_compile_cmds:defs.bzl", "concat_compile_cmds")
conan_lock(
name = "lock",
conanfile = "conanfile.txt",
visibility = ["//third-party:"],
)
lock_generate(
name = "lock-generate",
lockfile = ":lock",
)
# TODO[AH] Prevent double build of packages.
# This rule builds or fetches all transitive dependencies defined by the
# conanfile in order to generate the import targets. These packages will
# later be built or fetched again one-by-one again as their corresponding
# conan_package targets. Avoid this double building. Mark this target manual,
# or don't tie the generation to it's default output.
conan_generate(
name = "conan-generate",
conanfile = "conanfile.txt",
lockfile = ":lock",
)
conan_update(
name = "conan-update",
conan_generate = ":conan-generate",
conanfile = "conanfile.txt",
lock_generate = ":lock-generate",
lockfile = ":lock",
lockfile_name = "conan.lock",
targets_name = "third-party/BUCK",
)
concat_compile_cmds(
name="compile_commands",
files=[
"//app:app[full-compilation-database]",
"//lib:library[full-compilation-database]",
"//test:test[full-compilation-database]",
],
)
alias(
name="exe",
actual="//app:app",
visibility=["PUBLIC"],
)
alias(
name="lib",
actual="//lib:library",
visibility=["PUBLIC"],
)
alias(
name="test",
actual="//test:test",
visibility=["PUBLIC"],
)