forked from Green-Sky/tomato
Squashed 'external/toxcore/c-toxcore/' changes from 67badf694..82460b212
82460b212 feat: add ngc events 24b54722a fix: Ensure we have allocators available for the error paths. 48dbcfebc cleanup: Remove redundant `-DSODIUM_EXPORT` from definitions. 0cef46ee9 cleanup: Fix a few more clang-tidy warnings. 0c5b918e9 cleanup: Fix a few more clang-tidy warnings. 4d3c97f49 cleanup: Enforce stricter identifier naming using clang-tidy. a549807df refactor: Add `mem` module to allow tests to override allocators. 6133fb153 chore: Add devcontainer setup for codespaces. 620e07ecd chore: Set a timeout for tests started using Conan c0ec33b16 chore: Migrate Windows CI from Appveyor to Azure DevOps 8ed47f3ef fix incorrect documentation a1e245841 docs: Fix doxygen config and remove some redundant comments. b0f633185 chore: Fix the Android CI job 7469a529b fix: Add missing `#include <array>`. 2b1a6b0d2 add missing ngc constants getter declarations and definitions 2e02d5637 chore: Add missing module dependencies. REVERT: 67badf694 feat: add ngc events git-subtree-dir: external/toxcore/c-toxcore git-subtree-split: 82460b2124216af1ac9d63060de310a682a2fd15
This commit is contained in:
@ -23,6 +23,28 @@ cc_library(
|
||||
deps = [":attributes"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "mem",
|
||||
srcs = ["mem.c"],
|
||||
hdrs = ["mem.h"],
|
||||
visibility = ["//c-toxcore:__subpackages__"],
|
||||
deps = [
|
||||
":attributes",
|
||||
":ccompat",
|
||||
],
|
||||
)
|
||||
|
||||
cc_test(
|
||||
name = "mem_test",
|
||||
size = "small",
|
||||
srcs = ["mem_test.cc"],
|
||||
deps = [
|
||||
":mem",
|
||||
"@com_google_googletest//:gtest",
|
||||
"@com_google_googletest//:gtest_main",
|
||||
],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "util",
|
||||
srcs = ["util.c"],
|
||||
@ -37,6 +59,7 @@ cc_library(
|
||||
deps = [
|
||||
":attributes",
|
||||
":ccompat",
|
||||
":mem",
|
||||
"@pthread",
|
||||
],
|
||||
)
|
||||
@ -59,6 +82,7 @@ cc_library(
|
||||
hdrs = ["bin_pack.h"],
|
||||
visibility = ["//c-toxcore:__subpackages__"],
|
||||
deps = [
|
||||
":attributes",
|
||||
":ccompat",
|
||||
"//c-toxcore/third_party:cmp",
|
||||
],
|
||||
@ -70,6 +94,7 @@ cc_library(
|
||||
hdrs = ["bin_unpack.h"],
|
||||
visibility = ["//c-toxcore:__subpackages__"],
|
||||
deps = [
|
||||
":attributes",
|
||||
":ccompat",
|
||||
"//c-toxcore/third_party:cmp",
|
||||
],
|
||||
@ -93,6 +118,7 @@ cc_library(
|
||||
hdrs = ["crypto_core.h"],
|
||||
visibility = ["//c-toxcore:__subpackages__"],
|
||||
deps = [
|
||||
":attributes",
|
||||
":ccompat",
|
||||
"@libsodium",
|
||||
],
|
||||
@ -115,7 +141,10 @@ cc_library(
|
||||
name = "list",
|
||||
srcs = ["list.c"],
|
||||
hdrs = ["list.h"],
|
||||
deps = [":ccompat"],
|
||||
deps = [
|
||||
":attributes",
|
||||
":ccompat",
|
||||
],
|
||||
)
|
||||
|
||||
cc_test(
|
||||
@ -139,7 +168,10 @@ cc_library(
|
||||
"//c-toxcore/other/bootstrap_daemon:__pkg__",
|
||||
"//c-toxcore/toxav:__pkg__",
|
||||
],
|
||||
deps = [":ccompat"],
|
||||
deps = [
|
||||
":attributes",
|
||||
":ccompat",
|
||||
],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
@ -164,7 +196,9 @@ cc_library(
|
||||
"//c-toxcore/toxav:__pkg__",
|
||||
],
|
||||
deps = [
|
||||
":attributes",
|
||||
":ccompat",
|
||||
":mem",
|
||||
"@pthread",
|
||||
],
|
||||
)
|
||||
@ -194,6 +228,7 @@ cc_library(
|
||||
deps = [
|
||||
":ccompat",
|
||||
":crypto_core",
|
||||
":mem",
|
||||
":mono_time",
|
||||
],
|
||||
)
|
||||
@ -213,6 +248,7 @@ cc_library(
|
||||
":ccompat",
|
||||
":crypto_core",
|
||||
":logger",
|
||||
":mem",
|
||||
":mono_time",
|
||||
":util",
|
||||
"@libsodium",
|
||||
@ -250,6 +286,7 @@ cc_library(
|
||||
deps = [
|
||||
":ccompat",
|
||||
":crypto_core",
|
||||
":mem",
|
||||
":mono_time",
|
||||
":util",
|
||||
],
|
||||
@ -301,9 +338,11 @@ cc_library(
|
||||
],
|
||||
deps = [
|
||||
":LAN_discovery",
|
||||
":attributes",
|
||||
":ccompat",
|
||||
":crypto_core",
|
||||
":logger",
|
||||
":mem",
|
||||
":mono_time",
|
||||
":network",
|
||||
":ping_array",
|
||||
@ -344,6 +383,7 @@ cc_library(
|
||||
":DHT",
|
||||
":ccompat",
|
||||
":crypto_core",
|
||||
":logger",
|
||||
":mono_time",
|
||||
":shared_key_cache",
|
||||
":util",
|
||||
@ -398,7 +438,10 @@ cc_library(
|
||||
hdrs = ["TCP_common.h"],
|
||||
visibility = ["//c-toxcore/auto_tests:__pkg__"],
|
||||
deps = [
|
||||
":attributes",
|
||||
":ccompat",
|
||||
":crypto_core",
|
||||
":mem",
|
||||
":network",
|
||||
],
|
||||
)
|
||||
@ -436,8 +479,10 @@ cc_library(
|
||||
deps = [
|
||||
":TCP_common",
|
||||
":ccompat",
|
||||
":crypto_core",
|
||||
":forwarding",
|
||||
":mono_time",
|
||||
":network",
|
||||
":util",
|
||||
],
|
||||
)
|
||||
@ -478,9 +523,11 @@ cc_library(
|
||||
visibility = ["//c-toxcore/auto_tests:__pkg__"],
|
||||
deps = [
|
||||
":DHT",
|
||||
":LAN_discovery",
|
||||
":TCP_connection",
|
||||
":ccompat",
|
||||
":list",
|
||||
":logger",
|
||||
":mono_time",
|
||||
":util",
|
||||
],
|
||||
@ -499,6 +546,7 @@ cc_library(
|
||||
":DHT",
|
||||
":LAN_discovery",
|
||||
":ccompat",
|
||||
":logger",
|
||||
":mono_time",
|
||||
":onion",
|
||||
":shared_key_cache",
|
||||
@ -577,6 +625,7 @@ cc_library(
|
||||
":net_crypto",
|
||||
":network",
|
||||
":onion_announce",
|
||||
":ping_array",
|
||||
":util",
|
||||
],
|
||||
)
|
||||
@ -588,6 +637,7 @@ cc_library(
|
||||
visibility = ["//c-toxcore/auto_tests:__pkg__"],
|
||||
deps = [
|
||||
":DHT",
|
||||
":LAN_discovery",
|
||||
":ccompat",
|
||||
":mono_time",
|
||||
":net_crypto",
|
||||
@ -698,6 +748,7 @@ cc_library(
|
||||
":forwarding",
|
||||
":friend_connection",
|
||||
":friend_requests",
|
||||
":group_announce",
|
||||
":group_moderation",
|
||||
":group_onion_announce",
|
||||
":logger",
|
||||
@ -744,6 +795,7 @@ cc_library(
|
||||
":group",
|
||||
":group_moderation",
|
||||
":logger",
|
||||
":mem",
|
||||
":mono_time",
|
||||
":network",
|
||||
"//c-toxcore/toxencryptsave:defines",
|
||||
@ -768,6 +820,7 @@ cc_library(
|
||||
hdrs = ["tox_unpack.h"],
|
||||
visibility = ["//c-toxcore:__subpackages__"],
|
||||
deps = [
|
||||
":attributes",
|
||||
":bin_unpack",
|
||||
":ccompat",
|
||||
":tox",
|
||||
@ -783,9 +836,11 @@ cc_library(
|
||||
hdrs = ["tox_events.h"],
|
||||
visibility = ["//c-toxcore:__subpackages__"],
|
||||
deps = [
|
||||
":attributes",
|
||||
":bin_pack",
|
||||
":bin_unpack",
|
||||
":ccompat",
|
||||
":mem",
|
||||
":tox",
|
||||
":tox_unpack",
|
||||
"//c-toxcore/third_party:cmp",
|
||||
@ -798,6 +853,7 @@ cc_test(
|
||||
srcs = ["tox_events_test.cc"],
|
||||
deps = [
|
||||
":crypto_core",
|
||||
":tox",
|
||||
":tox_events",
|
||||
"@com_google_googletest//:gtest",
|
||||
"@com_google_googletest//:gtest_main",
|
||||
@ -808,7 +864,10 @@ cc_fuzz_test(
|
||||
name = "tox_events_fuzz_test",
|
||||
srcs = ["tox_events_fuzz_test.cc"],
|
||||
corpus = ["//tools/toktok-fuzzer/corpus:tox_events_fuzz_test"],
|
||||
deps = [":tox_events"],
|
||||
deps = [
|
||||
":tox_events",
|
||||
"//c-toxcore/testing/fuzzing:fuzz_support",
|
||||
],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
|
Reference in New Issue
Block a user