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
|
|
|
)
|
|
|
|
|
2018-07-04 02:14:36 +08:00
|
|
|
cc_test(
|
|
|
|
name = "ring_buffer_test",
|
|
|
|
srcs = ["ring_buffer_test.cc"],
|
|
|
|
deps = [
|
|
|
|
":ring_buffer",
|
|
|
|
"@com_google_googletest//:gtest_main",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2018-07-17 09:18:04 +08:00
|
|
|
cc_library(
|
|
|
|
name = "ring_buffer_srcs",
|
|
|
|
hdrs = [
|
|
|
|
"ring_buffer.c",
|
|
|
|
"ring_buffer.h",
|
|
|
|
],
|
|
|
|
visibility = ["//c-toxcore/testing:__pkg__"],
|
|
|
|
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"],
|
|
|
|
)
|
|
|
|
|
2018-01-22 06:38:08 +08:00
|
|
|
cc_test(
|
|
|
|
name = "rtp_test",
|
2018-06-23 20:32:41 +08:00
|
|
|
srcs = ["rtp_test.cc"],
|
2018-01-22 06:38:08 +08:00
|
|
|
deps = [
|
|
|
|
":rtp",
|
|
|
|
"//c-toxcore/toxcore:crypto_core",
|
2018-01-20 05:59:42 +08:00
|
|
|
"@com_google_googletest//:gtest_main",
|
2018-01-22 06:38:08 +08:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2018-01-22 00:58:32 +08:00
|
|
|
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 = [
|
2018-08-16 05:31:40 +08:00
|
|
|
"//c-toxcore/toxcore",
|
2018-01-22 00:58:32 +08:00
|
|
|
"@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
|
|
|
],
|
|
|
|
)
|