diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-01-28 15:17:34 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-01-28 15:17:34 +0000 |
commit | 6e0ac337c979af420bef197f2a9e2bde5e65d0fc (patch) | |
tree | 77f2a92c7f09d994b207ddf8a10658ca5ccf4df2 /toxav/BUILD.bazel | |
parent | 651ef3adb6299e66745cc1d1b57feb29fd17090a (diff) |
Avoid clashes with "build" directories on case-insensitive file systems.
Diffstat (limited to 'toxav/BUILD.bazel')
-rw-r--r-- | toxav/BUILD.bazel | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/toxav/BUILD.bazel b/toxav/BUILD.bazel new file mode 100644 index 00000000..38bdaeba --- /dev/null +++ b/toxav/BUILD.bazel | |||
@@ -0,0 +1,109 @@ | |||
1 | load("//tools:no_undefined.bzl", "cc_library") | ||
2 | |||
3 | filegroup( | ||
4 | name = "public_headers", | ||
5 | srcs = ["toxav.h"], | ||
6 | visibility = ["//c-toxcore:__pkg__"], | ||
7 | ) | ||
8 | |||
9 | cc_library( | ||
10 | name = "public", | ||
11 | hdrs = [":public_headers"], | ||
12 | ) | ||
13 | |||
14 | cc_library( | ||
15 | name = "ring_buffer", | ||
16 | srcs = ["ring_buffer.c"], | ||
17 | hdrs = ["ring_buffer.h"], | ||
18 | ) | ||
19 | |||
20 | cc_library( | ||
21 | name = "bwcontroller", | ||
22 | srcs = ["bwcontroller.c"], | ||
23 | hdrs = ["bwcontroller.h"], | ||
24 | deps = [ | ||
25 | ":ring_buffer", | ||
26 | "//c-toxcore/toxcore:Messenger", | ||
27 | ], | ||
28 | ) | ||
29 | |||
30 | cc_library( | ||
31 | name = "rtp", | ||
32 | srcs = ["rtp.c"], | ||
33 | hdrs = ["rtp.h"], | ||
34 | deps = [":bwcontroller"], | ||
35 | ) | ||
36 | |||
37 | cc_library( | ||
38 | name = "audio", | ||
39 | srcs = ["audio.c"], | ||
40 | hdrs = ["audio.h"], | ||
41 | deps = [ | ||
42 | ":public", | ||
43 | ":rtp", | ||
44 | "//c-toxcore/toxcore:network", | ||
45 | "@opus", | ||
46 | ], | ||
47 | ) | ||
48 | |||
49 | cc_library( | ||
50 | name = "video", | ||
51 | srcs = [ | ||
52 | "msi.c", | ||
53 | "video.c", | ||
54 | ], | ||
55 | hdrs = [ | ||
56 | "msi.h", | ||
57 | "video.h", | ||
58 | ], | ||
59 | deps = [ | ||
60 | ":audio", | ||
61 | ":public", | ||
62 | "//c-toxcore/toxcore:network", | ||
63 | "@libvpx", | ||
64 | ], | ||
65 | ) | ||
66 | |||
67 | cc_library( | ||
68 | name = "groupav", | ||
69 | srcs = ["groupav.c"], | ||
70 | hdrs = ["groupav.h"], | ||
71 | deps = [ | ||
72 | "//c-toxcore/toxcore:group", | ||
73 | "@opus", | ||
74 | ], | ||
75 | ) | ||
76 | |||
77 | cc_library( | ||
78 | name = "toxav", | ||
79 | srcs = [ | ||
80 | "toxav.c", | ||
81 | "toxav_old.c", | ||
82 | ], | ||
83 | hdrs = [ | ||
84 | "toxav.api.h", | ||
85 | "toxav.h", | ||
86 | ], | ||
87 | visibility = ["//c-toxcore:__subpackages__"], | ||
88 | deps = [ | ||
89 | ":groupav", | ||
90 | ":video", | ||
91 | ], | ||
92 | ) | ||
93 | |||
94 | cc_library( | ||
95 | name = "monolith", | ||
96 | hdrs = glob([ | ||
97 | "*.c", | ||
98 | "*.h", | ||
99 | ]), | ||
100 | visibility = [ | ||
101 | "//c-toxcore/other:__pkg__", | ||
102 | "//c-toxcore/testing:__pkg__", | ||
103 | ], | ||
104 | deps = [ | ||
105 | "//c-toxcore/toxcore:group", | ||
106 | "@libvpx", | ||
107 | "@opus", | ||
108 | ], | ||
109 | ) | ||