mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
33 lines
844 B
Python
33 lines
844 B
Python
load("@rules_cc//cc:defs.bzl", "cc_library")
|
|
load("@rules_fuzzing//fuzzing:cc_defs.bzl", "cc_fuzz_test")
|
|
|
|
cc_library(
|
|
name = "fuzz_adapter",
|
|
srcs = ["fuzz_adapter.c"],
|
|
hdrs = ["fuzz_adapter.h"],
|
|
visibility = ["//c-toxcore:__subpackages__"],
|
|
)
|
|
|
|
cc_library(
|
|
name = "fuzz_support",
|
|
srcs = ["fuzz_support.cc"],
|
|
hdrs = ["fuzz_support.h"],
|
|
visibility = ["//c-toxcore:__subpackages__"],
|
|
)
|
|
|
|
cc_fuzz_test(
|
|
name = "bootstrap_fuzz_test",
|
|
srcs = ["bootstrap_harness.cc"],
|
|
copts = ["-UNDEBUG"],
|
|
corpus = ["//tools/toktok-fuzzer/corpus:bootstrap_fuzzer"],
|
|
deps = ["//c-toxcore/toxcore:tox"],
|
|
)
|
|
|
|
cc_fuzz_test(
|
|
name = "toxsave_fuzz_test",
|
|
srcs = ["toxsave_harness.cc"],
|
|
copts = ["-UNDEBUG"],
|
|
corpus = ["//tools/toktok-fuzzer/corpus:toxsave_fuzzer"],
|
|
deps = ["//c-toxcore/toxcore:tox"],
|
|
)
|