diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-07-17 01:18:04 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-07-22 02:34:30 +0000 |
commit | f627a26a7b1c3619ba66f84b87092ff8ba7a95b6 (patch) | |
tree | c72c950fab473dc9bec4b5329d251b790e55443d /toxcore/BUILD.bazel | |
parent | 7245ac11ef9be2420c8356c12acc79f93ea211bb (diff) |
Run Clang global static analysis on Travis.
This uses a single .cc file containing almost all the code in the
repository to perform whole program analysis.
Diffstat (limited to 'toxcore/BUILD.bazel')
-rw-r--r-- | toxcore/BUILD.bazel | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/toxcore/BUILD.bazel b/toxcore/BUILD.bazel index 543bb59f..6fbe016e 100644 --- a/toxcore/BUILD.bazel +++ b/toxcore/BUILD.bazel | |||
@@ -135,6 +135,27 @@ cc_library( | |||
135 | ) | 135 | ) |
136 | 136 | ||
137 | cc_library( | 137 | cc_library( |
138 | name = "DHT_srcs", | ||
139 | hdrs = [ | ||
140 | "DHT.c", | ||
141 | "DHT.h", | ||
142 | "LAN_discovery.c", | ||
143 | "LAN_discovery.h", | ||
144 | "ping.c", | ||
145 | "ping.h", | ||
146 | ], | ||
147 | visibility = [ | ||
148 | "//c-toxcore/auto_tests:__pkg__", | ||
149 | "//c-toxcore/other/bootstrap_daemon:__pkg__", | ||
150 | ], | ||
151 | deps = [ | ||
152 | ":logger", | ||
153 | ":ping_array", | ||
154 | ":state", | ||
155 | ], | ||
156 | ) | ||
157 | |||
158 | cc_library( | ||
138 | name = "onion", | 159 | name = "onion", |
139 | srcs = ["onion.c"], | 160 | srcs = ["onion.c"], |
140 | hdrs = ["onion.h"], | 161 | hdrs = ["onion.h"], |
@@ -242,17 +263,3 @@ cc_library( | |||
242 | "//c-toxcore/toxencryptsave:defines", | 263 | "//c-toxcore/toxencryptsave:defines", |
243 | ], | 264 | ], |
244 | ) | 265 | ) |
245 | |||
246 | cc_library( | ||
247 | name = "monolith", | ||
248 | hdrs = glob([ | ||
249 | "*.c", | ||
250 | "*.h", | ||
251 | ]), | ||
252 | linkopts = ["-lpthread"], | ||
253 | visibility = ["//c-toxcore/other:__pkg__"], | ||
254 | deps = [ | ||
255 | "//c-toxcore/toxencryptsave:defines", | ||
256 | "@libsodium", | ||
257 | ], | ||
258 | ) | ||