From 1cecb6c87a4d1c9773d6861868124a9d0f01f7b2 Mon Sep 17 00:00:00 2001 From: iphydf Date: Sun, 21 Jan 2018 01:05:23 +0000 Subject: Add BUILD files for all the little tools in the repo. Also, fix av_test.c, since I broke it last time. --- other/BUILD | 17 +++++++++++++++++ other/bootstrap_daemon/BUILD | 12 ++++++++++++ other/fun/BUILD | 27 +++++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 other/bootstrap_daemon/BUILD create mode 100644 other/fun/BUILD (limited to 'other') diff --git a/other/BUILD b/other/BUILD index 5c8997ec..223f4355 100644 --- a/other/BUILD +++ b/other/BUILD @@ -8,3 +8,20 @@ cc_library( "//c-toxcore/toxencryptsave:monolith", ], ) + +cc_library( + name = "bootstrap_node_packets", + srcs = ["bootstrap_node_packets.c"], + hdrs = ["bootstrap_node_packets.h"], + visibility = ["//c-toxcore/other/bootstrap_daemon:__pkg__"], + deps = ["//c-toxcore/toxcore"], +) + +cc_binary( + name = "DHT_bootstrap", + srcs = ["DHT_bootstrap.c"], + deps = [ + "//c-toxcore/testing:misc_tools", + "//c-toxcore/toxcore", + ], +) diff --git a/other/bootstrap_daemon/BUILD b/other/bootstrap_daemon/BUILD new file mode 100644 index 00000000..d4a6bd2e --- /dev/null +++ b/other/bootstrap_daemon/BUILD @@ -0,0 +1,12 @@ +cc_binary( + name = "bootstrap_daemon", + srcs = glob([ + "src/*.c", + "src/*.h", + ]), + linkopts = ["-lconfig"], + deps = [ + "//c-toxcore/other:bootstrap_node_packets", + "//c-toxcore/toxcore", + ], +) diff --git a/other/fun/BUILD b/other/fun/BUILD new file mode 100644 index 00000000..c3ab510e --- /dev/null +++ b/other/fun/BUILD @@ -0,0 +1,27 @@ +cc_binary( + name = "cracker", + srcs = ["cracker.c"], + deps = [ + "//c-toxcore/testing:misc_tools", + "@libsodium", + ], +) + +cc_binary( + name = "sign", + srcs = ["sign.c"], + deps = [ + "//c-toxcore/testing:misc_tools", + "@libsodium", + ], + copts = ["-w"], +) + +cc_binary( + name = "strkey", + srcs = ["strkey.c"], + deps = [ + "@libsodium", + ], + copts = ["-w"], +) -- cgit v1.2.3