mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
chore: Enable layering check in all c-toxcore build files.
This commit is contained in:
parent
ce4b01df94
commit
f5f22a5c76
|
@ -1,6 +1,8 @@
|
||||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||||
load("//tools/project:build_defs.bzl", "project")
|
load("//tools/project:build_defs.bzl", "project")
|
||||||
|
|
||||||
|
package(features = ["layering_check"])
|
||||||
|
|
||||||
project()
|
project()
|
||||||
|
|
||||||
genrule(
|
genrule(
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
|
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
|
||||||
|
|
||||||
|
package(features = ["layering_check"])
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "check_compat",
|
name = "check_compat",
|
||||||
testonly = True,
|
testonly = True,
|
||||||
|
@ -36,6 +38,20 @@ flaky_tests = {
|
||||||
"//c-toxcore/toxav",
|
"//c-toxcore/toxav",
|
||||||
"//c-toxcore/toxcore",
|
"//c-toxcore/toxcore",
|
||||||
"//c-toxcore/toxcore:DHT_srcs",
|
"//c-toxcore/toxcore:DHT_srcs",
|
||||||
|
"//c-toxcore/toxcore:Messenger",
|
||||||
|
"//c-toxcore/toxcore:TCP_connection",
|
||||||
|
"//c-toxcore/toxcore:ccompat",
|
||||||
|
"//c-toxcore/toxcore:crypto_core",
|
||||||
|
"//c-toxcore/toxcore:friend_connection",
|
||||||
|
"//c-toxcore/toxcore:logger",
|
||||||
|
"//c-toxcore/toxcore:mono_time",
|
||||||
|
"//c-toxcore/toxcore:net_crypto",
|
||||||
|
"//c-toxcore/toxcore:network",
|
||||||
|
"//c-toxcore/toxcore:onion",
|
||||||
|
"//c-toxcore/toxcore:onion_announce",
|
||||||
|
"//c-toxcore/toxcore:onion_client",
|
||||||
"//c-toxcore/toxencryptsave",
|
"//c-toxcore/toxencryptsave",
|
||||||
|
"@libsodium",
|
||||||
|
"@libvpx",
|
||||||
],
|
],
|
||||||
) for src in glob(["*_test.c"])]
|
) for src in glob(["*_test.c"])]
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
load("@rules_cc//cc:defs.bzl", "cc_binary")
|
load("@rules_cc//cc:defs.bzl", "cc_binary")
|
||||||
load("//tools:no_undefined.bzl", "cc_library")
|
load("//tools:no_undefined.bzl", "cc_library")
|
||||||
|
|
||||||
|
package(features = ["layering_check"])
|
||||||
|
|
||||||
cc_library(
|
cc_library(
|
||||||
name = "bootstrap_node_packets",
|
name = "bootstrap_node_packets",
|
||||||
srcs = ["bootstrap_node_packets.c"],
|
srcs = ["bootstrap_node_packets.c"],
|
||||||
|
@ -15,5 +17,11 @@ cc_binary(
|
||||||
deps = [
|
deps = [
|
||||||
"//c-toxcore/testing:misc_tools",
|
"//c-toxcore/testing:misc_tools",
|
||||||
"//c-toxcore/toxcore",
|
"//c-toxcore/toxcore",
|
||||||
|
"//c-toxcore/toxcore:DHT",
|
||||||
|
"//c-toxcore/toxcore:TCP_connection",
|
||||||
|
"//c-toxcore/toxcore:friend_requests",
|
||||||
|
"//c-toxcore/toxcore:logger",
|
||||||
|
"//c-toxcore/toxcore:mono_time",
|
||||||
|
"//c-toxcore/toxcore:network",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
load("@rules_cc//cc:defs.bzl", "cc_binary")
|
load("@rules_cc//cc:defs.bzl", "cc_binary")
|
||||||
|
|
||||||
|
package(features = ["layering_check"])
|
||||||
|
|
||||||
#cc_binary(
|
#cc_binary(
|
||||||
# name = "cracker",
|
# name = "cracker",
|
||||||
# srcs = ["cracker.c"],
|
# srcs = ["cracker.c"],
|
||||||
|
@ -16,6 +18,7 @@ cc_binary(
|
||||||
srcs = ["cracker_simple.c"],
|
srcs = ["cracker_simple.c"],
|
||||||
deps = [
|
deps = [
|
||||||
"//c-toxcore/testing:misc_tools",
|
"//c-toxcore/testing:misc_tools",
|
||||||
|
"//c-toxcore/toxcore:ccompat",
|
||||||
"@libsodium",
|
"@libsodium",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
@ -24,6 +27,7 @@ cc_binary(
|
||||||
name = "minimal-save-generator",
|
name = "minimal-save-generator",
|
||||||
srcs = ["minimal-save-generator.c"],
|
srcs = ["minimal-save-generator.c"],
|
||||||
deps = [
|
deps = [
|
||||||
|
"//c-toxcore/toxcore:ccompat",
|
||||||
"@libsodium",
|
"@libsodium",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
@ -34,6 +38,7 @@ cc_binary(
|
||||||
copts = ["-w"],
|
copts = ["-w"],
|
||||||
deps = [
|
deps = [
|
||||||
"//c-toxcore/testing:misc_tools",
|
"//c-toxcore/testing:misc_tools",
|
||||||
|
"//c-toxcore/toxcore:ccompat",
|
||||||
"@libsodium",
|
"@libsodium",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
@ -53,5 +58,6 @@ cc_binary(
|
||||||
deps = [
|
deps = [
|
||||||
"//c-toxcore/testing:misc_tools",
|
"//c-toxcore/testing:misc_tools",
|
||||||
"//c-toxcore/toxcore",
|
"//c-toxcore/toxcore",
|
||||||
|
"//c-toxcore/toxcore:ccompat",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
load("@rules_cc//cc:defs.bzl", "cc_binary")
|
load("@rules_cc//cc:defs.bzl", "cc_binary")
|
||||||
|
|
||||||
|
package(features = ["layering_check"])
|
||||||
|
|
||||||
cc_binary(
|
cc_binary(
|
||||||
name = "grencez_tok5",
|
name = "grencez_tok5",
|
||||||
srcs = ["grencez_tok5.c"],
|
srcs = ["grencez_tok5.c"],
|
||||||
|
|
|
@ -66,6 +66,8 @@ cc_library(
|
||||||
srcs = ["logger.c"],
|
srcs = ["logger.c"],
|
||||||
hdrs = ["logger.h"],
|
hdrs = ["logger.h"],
|
||||||
visibility = [
|
visibility = [
|
||||||
|
"//c-toxcore/auto_tests:__pkg__",
|
||||||
|
"//c-toxcore/other:__pkg__",
|
||||||
"//c-toxcore/other/bootstrap_daemon:__pkg__",
|
"//c-toxcore/other/bootstrap_daemon:__pkg__",
|
||||||
"//c-toxcore/toxav:__pkg__",
|
"//c-toxcore/toxav:__pkg__",
|
||||||
],
|
],
|
||||||
|
@ -84,6 +86,8 @@ cc_library(
|
||||||
srcs = ["mono_time.c"],
|
srcs = ["mono_time.c"],
|
||||||
hdrs = ["mono_time.h"],
|
hdrs = ["mono_time.h"],
|
||||||
visibility = [
|
visibility = [
|
||||||
|
"//c-toxcore/auto_tests:__pkg__",
|
||||||
|
"//c-toxcore/other:__pkg__",
|
||||||
"//c-toxcore/other/bootstrap_daemon:__pkg__",
|
"//c-toxcore/other/bootstrap_daemon:__pkg__",
|
||||||
"//c-toxcore/testing:__pkg__",
|
"//c-toxcore/testing:__pkg__",
|
||||||
"//c-toxcore/toxav:__pkg__",
|
"//c-toxcore/toxav:__pkg__",
|
||||||
|
@ -116,6 +120,7 @@ cc_library(
|
||||||
"util.h",
|
"util.h",
|
||||||
],
|
],
|
||||||
visibility = [
|
visibility = [
|
||||||
|
"//c-toxcore/auto_tests:__pkg__",
|
||||||
"//c-toxcore/other:__pkg__",
|
"//c-toxcore/other:__pkg__",
|
||||||
"//c-toxcore/other/bootstrap_daemon:__pkg__",
|
"//c-toxcore/other/bootstrap_daemon:__pkg__",
|
||||||
"//c-toxcore/toxav:__pkg__",
|
"//c-toxcore/toxav:__pkg__",
|
||||||
|
@ -190,6 +195,7 @@ cc_library(
|
||||||
"ping.h",
|
"ping.h",
|
||||||
],
|
],
|
||||||
visibility = [
|
visibility = [
|
||||||
|
"//c-toxcore/other:__pkg__",
|
||||||
"//c-toxcore/other/bootstrap_daemon:__pkg__",
|
"//c-toxcore/other/bootstrap_daemon:__pkg__",
|
||||||
"//c-toxcore/testing:__pkg__",
|
"//c-toxcore/testing:__pkg__",
|
||||||
],
|
],
|
||||||
|
@ -227,6 +233,7 @@ cc_library(
|
||||||
],
|
],
|
||||||
visibility = [
|
visibility = [
|
||||||
"//c-toxcore/auto_tests:__pkg__",
|
"//c-toxcore/auto_tests:__pkg__",
|
||||||
|
"//c-toxcore/other:__pkg__",
|
||||||
"//c-toxcore/other/bootstrap_daemon:__pkg__",
|
"//c-toxcore/other/bootstrap_daemon:__pkg__",
|
||||||
],
|
],
|
||||||
deps = [
|
deps = [
|
||||||
|
@ -242,6 +249,7 @@ cc_library(
|
||||||
name = "onion",
|
name = "onion",
|
||||||
srcs = ["onion.c"],
|
srcs = ["onion.c"],
|
||||||
hdrs = ["onion.h"],
|
hdrs = ["onion.h"],
|
||||||
|
visibility = ["//c-toxcore/auto_tests:__pkg__"],
|
||||||
deps = [
|
deps = [
|
||||||
":DHT",
|
":DHT",
|
||||||
":crypto_core",
|
":crypto_core",
|
||||||
|
@ -266,7 +274,11 @@ cc_library(
|
||||||
"//tools/config:linux": ["-DTCP_SERVER_USE_EPOLL=1"],
|
"//tools/config:linux": ["-DTCP_SERVER_USE_EPOLL=1"],
|
||||||
"//conditions:default": [],
|
"//conditions:default": [],
|
||||||
}),
|
}),
|
||||||
visibility = ["//c-toxcore/other/bootstrap_daemon:__pkg__"],
|
visibility = [
|
||||||
|
"//c-toxcore/auto_tests:__pkg__",
|
||||||
|
"//c-toxcore/other:__pkg__",
|
||||||
|
"//c-toxcore/other/bootstrap_daemon:__pkg__",
|
||||||
|
],
|
||||||
deps = [
|
deps = [
|
||||||
":crypto_core",
|
":crypto_core",
|
||||||
":list",
|
":list",
|
||||||
|
@ -291,6 +303,7 @@ cc_library(
|
||||||
name = "net_crypto",
|
name = "net_crypto",
|
||||||
srcs = ["net_crypto.c"],
|
srcs = ["net_crypto.c"],
|
||||||
hdrs = ["net_crypto.h"],
|
hdrs = ["net_crypto.h"],
|
||||||
|
visibility = ["//c-toxcore/auto_tests:__pkg__"],
|
||||||
deps = [
|
deps = [
|
||||||
":DHT",
|
":DHT",
|
||||||
":TCP_connection",
|
":TCP_connection",
|
||||||
|
@ -303,7 +316,10 @@ cc_library(
|
||||||
name = "onion_announce",
|
name = "onion_announce",
|
||||||
srcs = ["onion_announce.c"],
|
srcs = ["onion_announce.c"],
|
||||||
hdrs = ["onion_announce.h"],
|
hdrs = ["onion_announce.h"],
|
||||||
visibility = ["//c-toxcore/other/bootstrap_daemon:__pkg__"],
|
visibility = [
|
||||||
|
"//c-toxcore/auto_tests:__pkg__",
|
||||||
|
"//c-toxcore/other/bootstrap_daemon:__pkg__",
|
||||||
|
],
|
||||||
deps = [
|
deps = [
|
||||||
":DHT",
|
":DHT",
|
||||||
":mono_time",
|
":mono_time",
|
||||||
|
@ -316,6 +332,7 @@ cc_library(
|
||||||
name = "onion_client",
|
name = "onion_client",
|
||||||
srcs = ["onion_client.c"],
|
srcs = ["onion_client.c"],
|
||||||
hdrs = ["onion_client.h"],
|
hdrs = ["onion_client.h"],
|
||||||
|
visibility = ["//c-toxcore/auto_tests:__pkg__"],
|
||||||
deps = [
|
deps = [
|
||||||
":DHT",
|
":DHT",
|
||||||
":mono_time",
|
":mono_time",
|
||||||
|
@ -329,6 +346,7 @@ cc_library(
|
||||||
name = "friend_connection",
|
name = "friend_connection",
|
||||||
srcs = ["friend_connection.c"],
|
srcs = ["friend_connection.c"],
|
||||||
hdrs = ["friend_connection.h"],
|
hdrs = ["friend_connection.h"],
|
||||||
|
visibility = ["//c-toxcore/auto_tests:__pkg__"],
|
||||||
deps = [
|
deps = [
|
||||||
":DHT",
|
":DHT",
|
||||||
":mono_time",
|
":mono_time",
|
||||||
|
@ -353,7 +371,11 @@ cc_library(
|
||||||
name = "friend_requests",
|
name = "friend_requests",
|
||||||
srcs = ["friend_requests.c"],
|
srcs = ["friend_requests.c"],
|
||||||
hdrs = ["friend_requests.h"],
|
hdrs = ["friend_requests.h"],
|
||||||
visibility = ["//c-toxcore/testing:__pkg__"],
|
visibility = [
|
||||||
|
"//c-toxcore/auto_tests:__pkg__",
|
||||||
|
"//c-toxcore/other:__pkg__",
|
||||||
|
"//c-toxcore/testing:__pkg__",
|
||||||
|
],
|
||||||
deps = [
|
deps = [
|
||||||
":friend_connection",
|
":friend_connection",
|
||||||
":network",
|
":network",
|
||||||
|
@ -365,6 +387,7 @@ cc_library(
|
||||||
srcs = ["Messenger.c"],
|
srcs = ["Messenger.c"],
|
||||||
hdrs = ["Messenger.h"],
|
hdrs = ["Messenger.h"],
|
||||||
visibility = [
|
visibility = [
|
||||||
|
"//c-toxcore/auto_tests:__pkg__",
|
||||||
"//c-toxcore/testing:__pkg__",
|
"//c-toxcore/testing:__pkg__",
|
||||||
"//c-toxcore/toxav:__pkg__",
|
"//c-toxcore/toxav:__pkg__",
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
load("//tools:no_undefined.bzl", "cc_library")
|
load("//tools:no_undefined.bzl", "cc_library")
|
||||||
|
|
||||||
|
package(features = ["layering_check"])
|
||||||
|
|
||||||
filegroup(
|
filegroup(
|
||||||
name = "public_headers",
|
name = "public_headers",
|
||||||
srcs = ["toxencryptsave.h"],
|
srcs = ["toxencryptsave.h"],
|
||||||
|
@ -21,6 +23,7 @@ cc_library(
|
||||||
":defines",
|
":defines",
|
||||||
"//c-toxcore/toxcore:ccompat",
|
"//c-toxcore/toxcore:ccompat",
|
||||||
"//c-toxcore/toxcore:crypto_core",
|
"//c-toxcore/toxcore:crypto_core",
|
||||||
|
"@libsodium",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -31,7 +34,11 @@ cc_library(
|
||||||
"*.h",
|
"*.h",
|
||||||
]),
|
]),
|
||||||
visibility = ["//c-toxcore/other:__pkg__"],
|
visibility = ["//c-toxcore/other:__pkg__"],
|
||||||
deps = ["//c-toxcore/toxcore:crypto_core"],
|
deps = [
|
||||||
|
"//c-toxcore/toxcore:ccompat",
|
||||||
|
"//c-toxcore/toxcore:crypto_core",
|
||||||
|
"@libsodium",
|
||||||
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
CIMPLE_SRCS = glob(
|
CIMPLE_SRCS = glob(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user