toxcore/toxencryptsave/BUILD.bazel
iphydf f49ea44daa
cleanup: Remove crypto_pwhash import.
Vanilla nacl builds won't have toxencryptsave.
2021-12-15 17:16:35 +00:00

50 lines
959 B
Python

load("//tools:no_undefined.bzl", "cc_library")
filegroup(
name = "public_headers",
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",
],
)
cc_library(
name = "monolith",
hdrs = glob([
"*.c",
"*.h",
]),
visibility = ["//c-toxcore/other:__pkg__"],
deps = ["//c-toxcore/toxcore:crypto_core"],
)
CIMPLE_SRCS = glob(
[
"*.c",
"*.h",
],
exclude = ["*.api.h"],
)
sh_library(
name = "cimple_files",
srcs = CIMPLE_SRCS,
visibility = ["//c-toxcore/testing:__pkg__"],
)