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 /toxcore/BUILD.bazel | |
parent | 651ef3adb6299e66745cc1d1b57feb29fd17090a (diff) |
Avoid clashes with "build" directories on case-insensitive file systems.
Diffstat (limited to 'toxcore/BUILD.bazel')
-rw-r--r-- | toxcore/BUILD.bazel | 213 |
1 files changed, 213 insertions, 0 deletions
diff --git a/toxcore/BUILD.bazel b/toxcore/BUILD.bazel new file mode 100644 index 00000000..f59e55fc --- /dev/null +++ b/toxcore/BUILD.bazel | |||
@@ -0,0 +1,213 @@ | |||
1 | load("//tools:no_undefined.bzl", "cc_library") | ||
2 | |||
3 | filegroup( | ||
4 | name = "public_headers", | ||
5 | srcs = ["tox.h"], | ||
6 | visibility = ["//c-toxcore:__pkg__"], | ||
7 | ) | ||
8 | |||
9 | cc_library( | ||
10 | name = "ccompat", | ||
11 | hdrs = ["ccompat.h"], | ||
12 | ) | ||
13 | |||
14 | cc_library( | ||
15 | name = "crypto_core", | ||
16 | srcs = [ | ||
17 | "crypto_core.c", | ||
18 | "crypto_core_mem.c", | ||
19 | ], | ||
20 | hdrs = [ | ||
21 | "crypto_core.h", | ||
22 | ], | ||
23 | visibility = ["//c-toxcore/toxencryptsave:__pkg__"], | ||
24 | deps = [ | ||
25 | ":ccompat", | ||
26 | "@libsodium", | ||
27 | ], | ||
28 | ) | ||
29 | |||
30 | cc_library( | ||
31 | name = "list", | ||
32 | srcs = ["list.c"], | ||
33 | hdrs = ["list.h"], | ||
34 | ) | ||
35 | |||
36 | cc_library( | ||
37 | name = "logger", | ||
38 | srcs = ["logger.c"], | ||
39 | hdrs = ["logger.h"], | ||
40 | ) | ||
41 | |||
42 | cc_library( | ||
43 | name = "network", | ||
44 | srcs = [ | ||
45 | "network.c", | ||
46 | "util.c", | ||
47 | ], | ||
48 | hdrs = [ | ||
49 | "network.h", | ||
50 | "util.h", | ||
51 | ], | ||
52 | linkopts = ["-lpthread"], | ||
53 | visibility = [ | ||
54 | "//c-toxcore/other:__pkg__", | ||
55 | "//c-toxcore/toxav:__pkg__", | ||
56 | ], | ||
57 | deps = [ | ||
58 | ":ccompat", | ||
59 | ":crypto_core", | ||
60 | ":logger", | ||
61 | ], | ||
62 | ) | ||
63 | |||
64 | cc_library( | ||
65 | name = "ping_array", | ||
66 | srcs = ["ping_array.c"], | ||
67 | hdrs = ["ping_array.h"], | ||
68 | deps = [":network"], | ||
69 | ) | ||
70 | |||
71 | cc_library( | ||
72 | name = "DHT", | ||
73 | srcs = [ | ||
74 | "DHT.c", | ||
75 | "LAN_discovery.c", | ||
76 | "ping.c", | ||
77 | ], | ||
78 | hdrs = [ | ||
79 | "DHT.h", | ||
80 | "LAN_discovery.h", | ||
81 | "ping.h", | ||
82 | ], | ||
83 | copts = [ | ||
84 | "-Wno-parentheses", | ||
85 | ], | ||
86 | visibility = ["//c-toxcore/other/bootstrap_daemon:__pkg__"], | ||
87 | deps = [ | ||
88 | ":crypto_core", | ||
89 | ":logger", | ||
90 | ":ping_array", | ||
91 | ], | ||
92 | ) | ||
93 | |||
94 | cc_library( | ||
95 | name = "onion", | ||
96 | srcs = ["onion.c"], | ||
97 | hdrs = ["onion.h"], | ||
98 | deps = [":DHT"], | ||
99 | ) | ||
100 | |||
101 | cc_library( | ||
102 | name = "TCP_connection", | ||
103 | srcs = [ | ||
104 | "TCP_client.c", | ||
105 | "TCP_connection.c", | ||
106 | "TCP_server.c", | ||
107 | ], | ||
108 | hdrs = [ | ||
109 | "TCP_client.h", | ||
110 | "TCP_connection.h", | ||
111 | "TCP_server.h", | ||
112 | ], | ||
113 | deps = [ | ||
114 | ":crypto_core", | ||
115 | ":list", | ||
116 | ":onion", | ||
117 | ], | ||
118 | ) | ||
119 | |||
120 | cc_library( | ||
121 | name = "net_crypto", | ||
122 | srcs = ["net_crypto.c"], | ||
123 | hdrs = ["net_crypto.h"], | ||
124 | deps = [ | ||
125 | ":DHT", | ||
126 | ":TCP_connection", | ||
127 | ], | ||
128 | ) | ||
129 | |||
130 | cc_library( | ||
131 | name = "onion_announce", | ||
132 | srcs = ["onion_announce.c"], | ||
133 | hdrs = ["onion_announce.h"], | ||
134 | deps = [":onion"], | ||
135 | ) | ||
136 | |||
137 | cc_library( | ||
138 | name = "onion_client", | ||
139 | srcs = ["onion_client.c"], | ||
140 | hdrs = ["onion_client.h"], | ||
141 | deps = [ | ||
142 | ":net_crypto", | ||
143 | ":onion_announce", | ||
144 | ], | ||
145 | ) | ||
146 | |||
147 | cc_library( | ||
148 | name = "friend_connection", | ||
149 | srcs = ["friend_connection.c"], | ||
150 | hdrs = ["friend_connection.h"], | ||
151 | deps = [ | ||
152 | ":DHT", | ||
153 | ":net_crypto", | ||
154 | ":onion_client", | ||
155 | ], | ||
156 | ) | ||
157 | |||
158 | cc_library( | ||
159 | name = "friend_requests", | ||
160 | srcs = ["friend_requests.c"], | ||
161 | hdrs = ["friend_requests.h"], | ||
162 | deps = [":friend_connection"], | ||
163 | ) | ||
164 | |||
165 | cc_library( | ||
166 | name = "Messenger", | ||
167 | srcs = ["Messenger.c"], | ||
168 | hdrs = ["Messenger.h"], | ||
169 | visibility = ["//c-toxcore/toxav:__pkg__"], | ||
170 | deps = [":friend_requests"], | ||
171 | ) | ||
172 | |||
173 | cc_library( | ||
174 | name = "group", | ||
175 | srcs = ["group.c"], | ||
176 | hdrs = ["group.h"], | ||
177 | visibility = ["//c-toxcore/toxav:__pkg__"], | ||
178 | deps = [":Messenger"], | ||
179 | ) | ||
180 | |||
181 | cc_library( | ||
182 | name = "toxcore", | ||
183 | srcs = [ | ||
184 | "tox.c", | ||
185 | "tox.h", | ||
186 | "tox_api.c", | ||
187 | ], | ||
188 | copts = [ | ||
189 | "-Wno-parentheses", | ||
190 | ], | ||
191 | visibility = ["//c-toxcore:__subpackages__"], | ||
192 | deps = [ | ||
193 | ":group", | ||
194 | "//c-toxcore/toxencryptsave:defines", | ||
195 | ], | ||
196 | ) | ||
197 | |||
198 | cc_library( | ||
199 | name = "monolith", | ||
200 | hdrs = glob([ | ||
201 | "*.c", | ||
202 | "*.h", | ||
203 | ]), | ||
204 | copts = [ | ||
205 | "-Wno-parentheses", | ||
206 | ], | ||
207 | linkopts = ["-lpthread"], | ||
208 | visibility = ["//c-toxcore/other:__pkg__"], | ||
209 | deps = [ | ||
210 | "//c-toxcore/toxencryptsave:defines", | ||
211 | "@libsodium", | ||
212 | ], | ||
213 | ) | ||