From 52778aed9391538287874b1f027994cef15b10d4 Mon Sep 17 00:00:00 2001 From: iphydf Date: Sun, 21 Jan 2018 16:58:32 +0000 Subject: 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. --- toxencryptsave/BUILD | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'toxencryptsave') diff --git a/toxencryptsave/BUILD b/toxencryptsave/BUILD index 6dfb67b1..bdb0031e 100644 --- a/toxencryptsave/BUILD +++ b/toxencryptsave/BUILD @@ -1,25 +1,24 @@ +load("//tools:no_undefined.bzl", "cc_library") + filegroup( - name = "public", + name = "public_headers", srcs = ["toxencryptsave.h"], - visibility = ["//visibility:public"], + visibility = ["//c-toxcore:__pkg__"], +) + +cc_library( + name = "defines", + hdrs = ["defines.h"], + visibility = ["//c-toxcore/toxcore:__pkg__"], ) cc_library( name = "toxencryptsave", - srcs = [ - "toxencryptsave.c", - ], - hdrs = [ - "defines.h", - "toxencryptsave.h", - ], - copts = [ - "-std=c99", - ], - visibility = [ - "//visibility:public", - ], + srcs = ["toxencryptsave.c"], + hdrs = ["toxencryptsave.h"], + visibility = ["//visibility:public"], deps = [ + ":defines", "//c-toxcore/toxcore:crypto_core", ], ) @@ -31,4 +30,5 @@ cc_library( "*.h", ]), visibility = ["//c-toxcore/other:__pkg__"], + deps = ["//c-toxcore/toxcore:crypto_core"], ) -- cgit v1.2.3