1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-25 03:43:02 +01:00
toxic/BUILD.bazel

52 lines
1.0 KiB
Python
Raw Permalink Normal View History

load("@rules_cc//cc:defs.bzl", "cc_binary")
load("//tools/project:build_defs.bzl", "project")
package(features = ["layering_check"])
project()
2018-01-20 20:04:27 +01:00
cc_binary(
name = "toxic",
srcs = glob(
[
"src/*.c",
"src/*.h",
],
exclude = ["src/video*"],
) + select({
"//tools/config:linux": glob(["src/video*"]),
"//tools/config:osx": [],
}),
2018-01-20 20:04:27 +01:00
copts = [
"-std=gnu99",
2018-01-20 20:04:27 +01:00
"-DAUDIO",
2021-12-10 18:52:43 +01:00
"-DGAMES",
2018-01-20 20:04:27 +01:00
"-DPACKAGE_DATADIR='\"data\"'",
"-DPYTHON",
"-DQRCODE",
] + select({
"//tools/config:linux": ["-DVIDEO"],
"//tools/config:osx": [],
}),
2018-01-20 20:04:27 +01:00
deps = [
"//c-toxcore",
"@curl",
"@libconfig",
2018-01-20 20:04:27 +01:00
"@libqrencode",
"@libvpx",
"@ncurses",
"@openal",
2018-01-20 20:04:27 +01:00
"@python3//:python",
] + select({
"//tools/config:linux": ["@x11"],
"//tools/config:osx": [],
}),
2018-01-20 20:04:27 +01:00
)
sh_test(
name = "toxic_test",
size = "small",
srcs = [":toxic"],
args = ["--help"],
)