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

42 lines
896 B
Python
Raw Permalink Normal View History

load("@rules_cc//cc:defs.bzl", "cc_binary")
load("//tools/project:build_defs.bzl", "project")
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",
"-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
)