2020-03-12 20:20:54 +08:00
|
|
|
load("@rules_cc//cc:defs.bzl", "cc_binary")
|
|
|
|
|
2022-01-12 05:28:53 +08:00
|
|
|
package(features = ["layering_check"])
|
|
|
|
|
2022-01-11 21:15:33 +08:00
|
|
|
#cc_binary(
|
|
|
|
# name = "cracker",
|
2022-01-16 10:02:53 +08:00
|
|
|
# testonly = 1,
|
2022-01-11 21:15:33 +08:00
|
|
|
# srcs = ["cracker.c"],
|
|
|
|
# copts = ["-fopenmp"],
|
|
|
|
# linkopts = ["-fopenmp"],
|
|
|
|
# deps = [
|
|
|
|
# "//c-toxcore/toxcore:ccompat",
|
|
|
|
# "@libsodium",
|
|
|
|
# ],
|
|
|
|
#)
|
2021-12-17 04:35:30 +08:00
|
|
|
|
|
|
|
cc_binary(
|
|
|
|
name = "cracker_simple",
|
2022-01-16 10:02:53 +08:00
|
|
|
testonly = 1,
|
2021-12-17 04:35:30 +08:00
|
|
|
srcs = ["cracker_simple.c"],
|
2018-01-21 09:05:23 +08:00
|
|
|
deps = [
|
|
|
|
"//c-toxcore/testing:misc_tools",
|
2022-01-12 05:28:53 +08:00
|
|
|
"//c-toxcore/toxcore:ccompat",
|
2018-01-21 09:05:23 +08:00
|
|
|
"@libsodium",
|
|
|
|
],
|
|
|
|
)
|
2020-04-20 08:16:33 +08:00
|
|
|
|
2020-03-24 08:28:19 +08:00
|
|
|
cc_binary(
|
2021-12-29 01:55:51 +08:00
|
|
|
name = "create_minimal_savedata",
|
2022-01-16 10:02:53 +08:00
|
|
|
testonly = 1,
|
2022-01-28 07:38:58 +08:00
|
|
|
srcs = [
|
|
|
|
"create_common.h",
|
|
|
|
"create_minimal_savedata.c",
|
|
|
|
],
|
2021-12-29 01:55:51 +08:00
|
|
|
deps = [
|
|
|
|
"//c-toxcore/toxcore:ccompat",
|
|
|
|
"@libsodium",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_binary(
|
|
|
|
name = "create_savedata",
|
|
|
|
testonly = 1,
|
2022-01-28 07:38:58 +08:00
|
|
|
srcs = [
|
|
|
|
"create_common.h",
|
|
|
|
"create_savedata.c",
|
|
|
|
],
|
2021-12-29 01:55:51 +08:00
|
|
|
deps = [
|
|
|
|
"//c-toxcore/toxcore:ccompat",
|
2022-02-12 21:38:00 +08:00
|
|
|
"//c-toxcore/toxcore:tox",
|
2021-12-29 01:55:51 +08:00
|
|
|
"@libsodium",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_binary(
|
|
|
|
name = "create_bootstrap_keys",
|
|
|
|
testonly = 1,
|
2022-01-28 07:38:58 +08:00
|
|
|
srcs = [
|
|
|
|
"create_bootstrap_keys.c",
|
|
|
|
"create_common.h",
|
|
|
|
],
|
2020-03-24 08:28:19 +08:00
|
|
|
deps = [
|
2022-01-12 05:28:53 +08:00
|
|
|
"//c-toxcore/toxcore:ccompat",
|
2020-03-24 08:28:19 +08:00
|
|
|
"@libsodium",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2018-01-21 09:05:23 +08:00
|
|
|
cc_binary(
|
|
|
|
name = "sign",
|
2022-01-16 10:02:53 +08:00
|
|
|
testonly = 1,
|
2018-01-21 09:05:23 +08:00
|
|
|
srcs = ["sign.c"],
|
2018-02-02 23:37:19 +08:00
|
|
|
copts = ["-w"],
|
2018-01-21 09:05:23 +08:00
|
|
|
deps = [
|
|
|
|
"//c-toxcore/testing:misc_tools",
|
2022-01-12 05:28:53 +08:00
|
|
|
"//c-toxcore/toxcore:ccompat",
|
2018-01-21 09:05:23 +08:00
|
|
|
"@libsodium",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_binary(
|
|
|
|
name = "strkey",
|
2022-01-16 10:02:53 +08:00
|
|
|
testonly = 1,
|
2018-01-21 09:05:23 +08:00
|
|
|
srcs = ["strkey.c"],
|
2018-02-02 23:37:19 +08:00
|
|
|
copts = ["-w"],
|
2018-01-21 09:05:23 +08:00
|
|
|
deps = [
|
2022-01-13 03:07:34 +08:00
|
|
|
"//c-toxcore/toxcore:ccompat",
|
2022-02-12 21:38:00 +08:00
|
|
|
"//c-toxcore/toxcore:tox",
|
2018-01-21 09:05:23 +08:00
|
|
|
"@libsodium",
|
|
|
|
],
|
|
|
|
)
|
2018-08-05 04:56:01 +08:00
|
|
|
|
|
|
|
cc_binary(
|
|
|
|
name = "save-generator",
|
2022-01-16 10:02:53 +08:00
|
|
|
testonly = 1,
|
2018-08-05 04:56:01 +08:00
|
|
|
srcs = ["save-generator.c"],
|
|
|
|
deps = [
|
|
|
|
"//c-toxcore/testing:misc_tools",
|
2022-01-12 05:28:53 +08:00
|
|
|
"//c-toxcore/toxcore:ccompat",
|
2022-02-12 21:38:00 +08:00
|
|
|
"//c-toxcore/toxcore:tox",
|
2018-08-05 04:56:01 +08:00
|
|
|
],
|
|
|
|
)
|