1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-06 12:46:34 +01:00

Half-hearted attempt at making toxic work on osx.

Video has no chance without X11 for now.
This commit is contained in:
iphydf
2020-03-30 13:35:34 +01:00
parent 98cb7f58c0
commit 46513017e3
4 changed files with 44 additions and 35 deletions

View File

@@ -5,17 +5,25 @@ project()
cc_binary(
name = "toxic",
srcs = glob([
"src/*.c",
"src/*.h",
]),
srcs = glob(
[
"src/*.c",
"src/*.h",
],
exclude = ["src/video*"],
) + select({
"//tools/config:linux": glob(["src/video*"]),
"//tools/config:osx": [],
}),
copts = [
"-DAUDIO",
"-DPACKAGE_DATADIR='\"data\"'",
"-DPYTHON",
"-DQRCODE",
"-DVIDEO",
],
] + select({
"//tools/config:linux": ["-DVIDEO"],
"//tools/config:osx": [],
}),
deps = [
"//c-toxcore",
"@curl",
@@ -25,6 +33,8 @@ cc_binary(
"@ncurses",
"@openal",
"@python3//:python",
"@x11",
],
] + select({
"//tools/config:linux": ["@x11"],
"//tools/config:osx": [],
}),
)