toxcore/toxencryptsave/BUILD.bazel
iphydf 4a2cb37e4b
fix: Fix some uninitialised memory errors found by valgrind and msan.
Also added a valgrind build to run it on every pull request. I've had to
disable a few tests because valgrind makes those run infinitely slowly,
consistently timing them out.
2022-01-13 20:15:21 +00:00

56 lines
1.0 KiB
Python

load("//tools:no_undefined.bzl", "cc_library")
package(features = ["layering_check"])
exports_files(
srcs = ["toxencryptsave.h"],
visibility = ["//c-toxcore:__pkg__"],
)
cc_library(
name = "defines",
hdrs = ["defines.h"],
visibility = ["//c-toxcore/toxcore:__pkg__"],
)
cc_library(
name = "toxencryptsave",
srcs = ["toxencryptsave.c"],
hdrs = ["toxencryptsave.h"],
visibility = ["//c-toxcore:__subpackages__"],
deps = [
":defines",
"//c-toxcore/toxcore:ccompat",
"//c-toxcore/toxcore:crypto_core",
"@libsodium",
],
)
cc_library(
name = "monolith",
hdrs = glob([
"*.c",
"*.h",
]),
visibility = ["//c-toxcore/other:__pkg__"],
deps = [
"//c-toxcore/toxcore:ccompat",
"//c-toxcore/toxcore:crypto_core",
"@libsodium",
],
)
CIMPLE_SRCS = glob(
[
"*.c",
"*.h",
],
exclude = ["*.api.h"],
)
sh_library(
name = "cimple_files",
srcs = CIMPLE_SRCS,
visibility = ["//c-toxcore/testing:__pkg__"],
)