2020-03-12 13:23:57 +01:00
|
|
|
load("@rules_cc//cc:defs.bzl", "cc_binary")
|
2018-08-18 01:48:35 +02:00
|
|
|
load("//tools/project:build_defs.bzl", "project")
|
|
|
|
|
|
|
|
project()
|
|
|
|
|
2018-01-20 20:04:27 +01:00
|
|
|
cc_binary(
|
|
|
|
name = "toxic",
|
2020-03-30 14:35:34 +02:00
|
|
|
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 = [
|
2020-04-17 21:34:27 +02:00
|
|
|
"-std=gnu99",
|
2018-01-20 20:04:27 +01:00
|
|
|
"-DAUDIO",
|
|
|
|
"-DPACKAGE_DATADIR='\"data\"'",
|
|
|
|
"-DPYTHON",
|
2018-09-08 19:23:07 +02:00
|
|
|
"-DQRCODE",
|
2020-03-30 14:35:34 +02:00
|
|
|
] + select({
|
|
|
|
"//tools/config:linux": ["-DVIDEO"],
|
|
|
|
"//tools/config:osx": [],
|
|
|
|
}),
|
2018-01-20 20:04:27 +01:00
|
|
|
deps = [
|
|
|
|
"//c-toxcore",
|
|
|
|
"@curl",
|
2018-07-15 17:33:35 +02:00
|
|
|
"@libconfig",
|
2018-01-20 20:04:27 +01:00
|
|
|
"@libqrencode",
|
|
|
|
"@libvpx",
|
2018-08-05 21:17:57 +02:00
|
|
|
"@ncurses",
|
|
|
|
"@openal",
|
2018-01-20 20:04:27 +01:00
|
|
|
"@python3//:python",
|
2020-03-30 14:35:34 +02:00
|
|
|
] + select({
|
|
|
|
"//tools/config:linux": ["@x11"],
|
|
|
|
"//tools/config:osx": [],
|
|
|
|
}),
|
2018-01-20 20:04:27 +01:00
|
|
|
)
|