2018-01-22 00:58:32 +08:00
|
|
|
load("//tools:no_undefined.bzl", "cc_library")
|
|
|
|
|
2018-01-18 23:14:50 +08:00
|
|
|
filegroup(
|
2018-01-22 00:58:32 +08:00
|
|
|
name = "public_headers",
|
2018-01-18 23:14:50 +08:00
|
|
|
srcs = ["toxav.h"],
|
2018-01-22 00:58:32 +08:00
|
|
|
visibility = ["//c-toxcore:__pkg__"],
|
2018-01-18 23:14:50 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
2018-01-22 00:58:32 +08:00
|
|
|
name = "public",
|
|
|
|
hdrs = [":public_headers"],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "ring_buffer",
|
|
|
|
srcs = ["ring_buffer.c"],
|
|
|
|
hdrs = ["ring_buffer.h"],
|
2018-01-29 05:30:39 +08:00
|
|
|
deps = ["//c-toxcore/toxcore:ccompat"],
|
2018-01-22 00:58:32 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "bwcontroller",
|
|
|
|
srcs = ["bwcontroller.c"],
|
|
|
|
hdrs = ["bwcontroller.h"],
|
|
|
|
deps = [
|
|
|
|
":ring_buffer",
|
|
|
|
"//c-toxcore/toxcore:Messenger",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "rtp",
|
|
|
|
srcs = ["rtp.c"],
|
|
|
|
hdrs = ["rtp.h"],
|
|
|
|
deps = [":bwcontroller"],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "audio",
|
|
|
|
srcs = ["audio.c"],
|
|
|
|
hdrs = ["audio.h"],
|
|
|
|
deps = [
|
|
|
|
":public",
|
|
|
|
":rtp",
|
|
|
|
"//c-toxcore/toxcore:network",
|
|
|
|
"@opus",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "video",
|
2018-01-18 23:14:50 +08:00
|
|
|
srcs = [
|
|
|
|
"msi.c",
|
|
|
|
"video.c",
|
|
|
|
],
|
|
|
|
hdrs = [
|
|
|
|
"msi.h",
|
|
|
|
"video.h",
|
|
|
|
],
|
2018-01-22 00:58:32 +08:00
|
|
|
deps = [
|
|
|
|
":audio",
|
|
|
|
":public",
|
|
|
|
"//c-toxcore/toxcore:network",
|
|
|
|
"@libvpx",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "groupav",
|
|
|
|
srcs = ["groupav.c"],
|
|
|
|
hdrs = ["groupav.h"],
|
|
|
|
deps = [
|
|
|
|
"//c-toxcore/toxcore:group",
|
|
|
|
"@opus",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "toxav",
|
|
|
|
srcs = [
|
|
|
|
"toxav.c",
|
|
|
|
"toxav_old.c",
|
|
|
|
],
|
|
|
|
hdrs = [
|
|
|
|
"toxav.api.h",
|
|
|
|
"toxav.h",
|
2018-01-19 05:51:45 +08:00
|
|
|
],
|
2018-01-23 03:34:52 +08:00
|
|
|
visibility = ["//c-toxcore:__subpackages__"],
|
2018-01-18 23:14:50 +08:00
|
|
|
deps = [
|
2018-01-22 00:58:32 +08:00
|
|
|
":groupav",
|
|
|
|
":video",
|
2018-01-18 23:14:50 +08:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "monolith",
|
|
|
|
hdrs = glob([
|
|
|
|
"*.c",
|
|
|
|
"*.h",
|
|
|
|
]),
|
2018-01-21 09:05:23 +08:00
|
|
|
visibility = [
|
|
|
|
"//c-toxcore/other:__pkg__",
|
|
|
|
"//c-toxcore/testing:__pkg__",
|
|
|
|
],
|
2018-01-22 00:58:32 +08:00
|
|
|
deps = [
|
2018-01-23 03:34:52 +08:00
|
|
|
"//c-toxcore/toxcore:group",
|
2018-01-22 00:58:32 +08:00
|
|
|
"@libvpx",
|
|
|
|
"@opus",
|
|
|
|
],
|
2018-01-18 23:14:50 +08:00
|
|
|
)
|