summaryrefslogtreecommitdiff
path: root/toxencryptsave
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-01-21 16:58:32 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-01-21 19:44:09 +0000
commit52778aed9391538287874b1f027994cef15b10d4 (patch)
tree4e54a20165b41a313ca197255e57af788a10f693 /toxencryptsave
parent6c98791563b41deebbd34bd35db2839d78f12c2c (diff)
Make BUILD files more finely-grained.
This allows us to precisely see which libraries depend on which and lets us split them up more, if necessary.
Diffstat (limited to 'toxencryptsave')
-rw-r--r--toxencryptsave/BUILD30
1 files changed, 15 insertions, 15 deletions
diff --git a/toxencryptsave/BUILD b/toxencryptsave/BUILD
index 6dfb67b1..bdb0031e 100644
--- a/toxencryptsave/BUILD
+++ b/toxencryptsave/BUILD
@@ -1,25 +1,24 @@
1load("//tools:no_undefined.bzl", "cc_library")
2
1filegroup( 3filegroup(
2 name = "public", 4 name = "public_headers",
3 srcs = ["toxencryptsave.h"], 5 srcs = ["toxencryptsave.h"],
4 visibility = ["//visibility:public"], 6 visibility = ["//c-toxcore:__pkg__"],
7)
8
9cc_library(
10 name = "defines",
11 hdrs = ["defines.h"],
12 visibility = ["//c-toxcore/toxcore:__pkg__"],
5) 13)
6 14
7cc_library( 15cc_library(
8 name = "toxencryptsave", 16 name = "toxencryptsave",
9 srcs = [ 17 srcs = ["toxencryptsave.c"],
10 "toxencryptsave.c", 18 hdrs = ["toxencryptsave.h"],
11 ], 19 visibility = ["//visibility:public"],
12 hdrs = [
13 "defines.h",
14 "toxencryptsave.h",
15 ],
16 copts = [
17 "-std=c99",
18 ],
19 visibility = [
20 "//visibility:public",
21 ],
22 deps = [ 20 deps = [
21 ":defines",
23 "//c-toxcore/toxcore:crypto_core", 22 "//c-toxcore/toxcore:crypto_core",
24 ], 23 ],
25) 24)
@@ -31,4 +30,5 @@ cc_library(
31 "*.h", 30 "*.h",
32 ]), 31 ]),
33 visibility = ["//c-toxcore/other:__pkg__"], 32 visibility = ["//c-toxcore/other:__pkg__"],
33 deps = ["//c-toxcore/toxcore:crypto_core"],
34) 34)