mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
360acd0f42
atoi doesn't check if the conversion from string to int succeeded which doesn't allow us to do proper error handling. We also now make sure that the port argument is a valid port in addition to being properly converted
66 lines
1.2 KiB
Python
66 lines
1.2 KiB
Python
load("@rules_cc//cc:defs.bzl", "cc_binary")
|
|
|
|
package(features = ["layering_check"])
|
|
|
|
#cc_binary(
|
|
# name = "cracker",
|
|
# srcs = ["cracker.c"],
|
|
# copts = ["-fopenmp"],
|
|
# linkopts = ["-fopenmp"],
|
|
# deps = [
|
|
# "//c-toxcore/toxcore:ccompat",
|
|
# "@libsodium",
|
|
# ],
|
|
#)
|
|
|
|
cc_binary(
|
|
name = "cracker_simple",
|
|
srcs = ["cracker_simple.c"],
|
|
deps = [
|
|
"//c-toxcore/testing:misc_tools",
|
|
"//c-toxcore/toxcore:ccompat",
|
|
"@libsodium",
|
|
],
|
|
)
|
|
|
|
cc_binary(
|
|
name = "minimal-save-generator",
|
|
srcs = ["minimal-save-generator.c"],
|
|
deps = [
|
|
"//c-toxcore/toxcore:ccompat",
|
|
"@libsodium",
|
|
],
|
|
)
|
|
|
|
cc_binary(
|
|
name = "sign",
|
|
srcs = ["sign.c"],
|
|
copts = ["-w"],
|
|
deps = [
|
|
"//c-toxcore/testing:misc_tools",
|
|
"//c-toxcore/toxcore:ccompat",
|
|
"@libsodium",
|
|
],
|
|
)
|
|
|
|
cc_binary(
|
|
name = "strkey",
|
|
srcs = ["strkey.c"],
|
|
copts = ["-w"],
|
|
deps = [
|
|
"//c-toxcore/toxcore",
|
|
"//c-toxcore/toxcore:ccompat",
|
|
"@libsodium",
|
|
],
|
|
)
|
|
|
|
cc_binary(
|
|
name = "save-generator",
|
|
srcs = ["save-generator.c"],
|
|
deps = [
|
|
"//c-toxcore/testing:misc_tools",
|
|
"//c-toxcore/toxcore",
|
|
"//c-toxcore/toxcore:ccompat",
|
|
],
|
|
)
|