Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Side by Side Diff: build/secondary/third_party/libsrtp/BUILD.gn

Issue 534713003: Add some more libjingle targets to the GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl try Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/config/win/BUILD.gn ('k') | content/renderer/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 declare_args() { 5 declare_args() {
6 use_system_libsrtp = false 6 use_system_libsrtp = false
7 } 7 }
8 8
9 config("libsrtp_config") { 9 config("libsrtp_config") {
10 defines = [ 10 defines = [
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 if (use_system_libsrtp) { 68 if (use_system_libsrtp) {
69 group("libsrtp") { 69 group("libsrtp") {
70 direct_dependent_configs = [ ":libsrtp_config", ":system_libsrtp_config" ] 70 direct_dependent_configs = [ ":libsrtp_config", ":system_libsrtp_config" ]
71 libs = [ "-lsrtp" ] 71 libs = [ "-lsrtp" ]
72 } 72 }
73 } else { 73 } else {
74 static_library("libsrtp") { 74 static_library("libsrtp") {
75 configs -= [ "//build/config/compiler:chromium_code" ] 75 configs -= [ "//build/config/compiler:chromium_code" ]
76 configs += [ "//build/config/compiler:no_chromium_code" ] 76 configs += [ "//build/config/compiler:no_chromium_code" ]
77 configs += [ ":libsrtp_config" ] 77 direct_dependent_configs = [ ":libsrtp_config" ]
78 78
79 sources = [ 79 sources = [
80 # includes 80 # includes
81 "srtp/include/ekt.h", 81 "srtp/include/ekt.h",
82 "srtp/include/getopt_s.h", 82 "srtp/include/getopt_s.h",
83 "srtp/include/rtp.h", 83 "srtp/include/rtp.h",
84 "srtp/include/rtp_priv.h", 84 "srtp/include/rtp_priv.h",
85 "srtp/include/srtp.h", 85 "srtp/include/srtp.h",
86 "srtp/include/srtp_priv.h", 86 "srtp/include/srtp_priv.h",
87 "srtp/include/ut_sim.h", 87 "srtp/include/ut_sim.h",
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 "srtp/crypto/math/datatypes.c", 135 "srtp/crypto/math/datatypes.c",
136 "srtp/crypto/math/gf2_8.c", 136 "srtp/crypto/math/gf2_8.c",
137 "srtp/crypto/math/stat.c", 137 "srtp/crypto/math/stat.c",
138 "srtp/crypto/replay/rdb.c", 138 "srtp/crypto/replay/rdb.c",
139 "srtp/crypto/replay/rdbx.c", 139 "srtp/crypto/replay/rdbx.c",
140 "srtp/crypto/replay/ut_sim.c", 140 "srtp/crypto/replay/ut_sim.c",
141 "srtp/crypto/rng/ctr_prng.c", 141 "srtp/crypto/rng/ctr_prng.c",
142 "srtp/crypto/rng/prng.c", 142 "srtp/crypto/rng/prng.c",
143 "srtp/crypto/rng/rand_source.c", 143 "srtp/crypto/rng/rand_source.c",
144 ] 144 ]
145
146 if (is_clang) {
147 cflags = [ "-Wno-implicit-function-declaration" ]
148 }
145 } 149 }
146 150
147 # TODO(GYP): A bunch of these tests don't compile (in gyp either). They're 151 # TODO(GYP): A bunch of these tests don't compile (in gyp either). They're
148 # not very broken, so could probably be made to work if it's useful. 152 # not very broken, so could probably be made to work if it's useful.
149 if (!is_win) { 153 if (!is_win) {
150 executable("rdbx_driver") { 154 executable("rdbx_driver") {
151 configs -= [ "//build/config/compiler:chromium_code" ] 155 configs -= [ "//build/config/compiler:chromium_code" ]
152 configs += [ "//build/config/compiler:no_chromium_code" ] 156 configs += [ "//build/config/compiler:no_chromium_code" ]
153 configs += [ ":libsrtp_config" ]
154 deps = [ ":libsrtp" ] 157 deps = [ ":libsrtp" ]
155 sources = [ 158 sources = [
156 "srtp/include/getopt_s.h", 159 "srtp/include/getopt_s.h",
157 "srtp/test/getopt_s.c", 160 "srtp/test/getopt_s.c",
158 "srtp/test/rdbx_driver.c", 161 "srtp/test/rdbx_driver.c",
159 ] 162 ]
160 } 163 }
161 164
162 executable("srtp_driver") { 165 executable("srtp_driver") {
163 configs -= [ "//build/config/compiler:chromium_code" ] 166 configs -= [ "//build/config/compiler:chromium_code" ]
164 configs += [ "//build/config/compiler:no_chromium_code" ] 167 configs += [ "//build/config/compiler:no_chromium_code" ]
165 configs += [ ":libsrtp_config" ]
166 deps = [ ":libsrtp" ] 168 deps = [ ":libsrtp" ]
167 sources = [ 169 sources = [
168 "srtp/include/getopt_s.h", 170 "srtp/include/getopt_s.h",
169 "srtp/include/srtp_priv.h", 171 "srtp/include/srtp_priv.h",
170 "srtp/test/getopt_s.c", 172 "srtp/test/getopt_s.c",
171 "srtp/test/srtp_driver.c", 173 "srtp/test/srtp_driver.c",
172 ] 174 ]
173 } 175 }
174 176
175 executable("roc_driver") { 177 executable("roc_driver") {
176 configs -= [ "//build/config/compiler:chromium_code" ] 178 configs -= [ "//build/config/compiler:chromium_code" ]
177 configs += [ "//build/config/compiler:no_chromium_code" ] 179 configs += [ "//build/config/compiler:no_chromium_code" ]
178 configs += [ ":libsrtp_config" ]
179 deps = [ ":libsrtp" ] 180 deps = [ ":libsrtp" ]
180 sources = [ 181 sources = [
181 "srtp/crypto/include/rdbx.h", 182 "srtp/crypto/include/rdbx.h",
182 "srtp/include/ut_sim.h", 183 "srtp/include/ut_sim.h",
183 "srtp/test/roc_driver.c", 184 "srtp/test/roc_driver.c",
184 ] 185 ]
185 } 186 }
186 187
187 executable("replay_driver") { 188 executable("replay_driver") {
188 configs -= [ "//build/config/compiler:chromium_code" ] 189 configs -= [ "//build/config/compiler:chromium_code" ]
189 configs += [ "//build/config/compiler:no_chromium_code" ] 190 configs += [ "//build/config/compiler:no_chromium_code" ]
190 configs += [ ":libsrtp_config" ]
191 deps = [ ":libsrtp" ] 191 deps = [ ":libsrtp" ]
192 sources = [ 192 sources = [
193 "srtp/crypto/include/rdbx.h", 193 "srtp/crypto/include/rdbx.h",
194 "srtp/include/ut_sim.h", 194 "srtp/include/ut_sim.h",
195 "srtp/test/replay_driver.c", 195 "srtp/test/replay_driver.c",
196 ] 196 ]
197 } 197 }
198 198
199 executable("rtpw") { 199 executable("rtpw") {
200 configs -= [ "//build/config/compiler:chromium_code" ] 200 configs -= [ "//build/config/compiler:chromium_code" ]
201 configs += [ "//build/config/compiler:no_chromium_code" ] 201 configs += [ "//build/config/compiler:no_chromium_code" ]
202 configs += [ ":libsrtp_config" ]
203 deps = [ ":libsrtp" ] 202 deps = [ ":libsrtp" ]
204 sources = [ 203 sources = [
205 "srtp/include/getopt_s.h", 204 "srtp/include/getopt_s.h",
206 "srtp/include/rtp.h", 205 "srtp/include/rtp.h",
207 "srtp/include/srtp.h", 206 "srtp/include/srtp.h",
208 "srtp/crypto/include/datatypes.h", 207 "srtp/crypto/include/datatypes.h",
209 "srtp/test/getopt_s.c", 208 "srtp/test/getopt_s.c",
210 "srtp/test/rtp.c", 209 "srtp/test/rtp.c",
211 "srtp/test/rtpw.c", 210 "srtp/test/rtpw.c",
212 ] 211 ]
213 if (is_android) { 212 if (is_android) {
214 defines = [ "HAVE_SYS_SOCKET_H" ] 213 defines = [ "HAVE_SYS_SOCKET_H" ]
215 } 214 }
216 } 215 }
217 216
218 executable("srtp_test_cipher_driver") { 217 executable("srtp_test_cipher_driver") {
219 configs -= [ "//build/config/compiler:chromium_code" ] 218 configs -= [ "//build/config/compiler:chromium_code" ]
220 configs += [ "//build/config/compiler:no_chromium_code" ] 219 configs += [ "//build/config/compiler:no_chromium_code" ]
221 configs += [ ":libsrtp_config" ]
222 deps = [ ":libsrtp" ] 220 deps = [ ":libsrtp" ]
223 sources = [ 221 sources = [
224 "srtp/crypto/test/cipher_driver.c", 222 "srtp/crypto/test/cipher_driver.c",
225 ] 223 ]
226 } 224 }
227 225
228 executable("srtp_test_datatypes_driver") { 226 executable("srtp_test_datatypes_driver") {
229 configs -= [ "//build/config/compiler:chromium_code" ] 227 configs -= [ "//build/config/compiler:chromium_code" ]
230 configs += [ "//build/config/compiler:no_chromium_code" ] 228 configs += [ "//build/config/compiler:no_chromium_code" ]
231 configs += [ ":libsrtp_config" ]
232 deps = [ ":libsrtp" ] 229 deps = [ ":libsrtp" ]
233 sources = [ 230 sources = [
234 "srtp/crypto/test/datatypes_driver.c", 231 "srtp/crypto/test/datatypes_driver.c",
235 ] 232 ]
236 } 233 }
237 234
238 executable("srtp_test_stat_driver") { 235 executable("srtp_test_stat_driver") {
239 configs -= [ "//build/config/compiler:chromium_code" ] 236 configs -= [ "//build/config/compiler:chromium_code" ]
240 configs += [ "//build/config/compiler:no_chromium_code" ] 237 configs += [ "//build/config/compiler:no_chromium_code" ]
241 configs += [ ":libsrtp_config" ]
242 deps = [ ":libsrtp" ] 238 deps = [ ":libsrtp" ]
243 sources = [ 239 sources = [
244 "srtp/crypto/test/stat_driver.c", 240 "srtp/crypto/test/stat_driver.c",
245 ] 241 ]
246 } 242 }
247 243
248 executable("srtp_test_sha1_driver") { 244 executable("srtp_test_sha1_driver") {
249 configs -= [ "//build/config/compiler:chromium_code" ] 245 configs -= [ "//build/config/compiler:chromium_code" ]
250 configs += [ "//build/config/compiler:no_chromium_code" ] 246 configs += [ "//build/config/compiler:no_chromium_code" ]
251 configs += [ ":libsrtp_config" ]
252 deps = [ ":libsrtp" ] 247 deps = [ ":libsrtp" ]
253 sources = [ 248 sources = [
254 "srtp/crypto/test/sha1_driver.c", 249 "srtp/crypto/test/sha1_driver.c",
255 ] 250 ]
256 } 251 }
257 252
258 executable("srtp_test_kernel_driver") { 253 executable("srtp_test_kernel_driver") {
259 configs -= [ "//build/config/compiler:chromium_code" ] 254 configs -= [ "//build/config/compiler:chromium_code" ]
260 configs += [ "//build/config/compiler:no_chromium_code" ] 255 configs += [ "//build/config/compiler:no_chromium_code" ]
261 configs += [ ":libsrtp_config" ]
262 deps = [ ":libsrtp" ] 256 deps = [ ":libsrtp" ]
263 sources = [ 257 sources = [
264 "srtp/crypto/test/kernel_driver.c", 258 "srtp/crypto/test/kernel_driver.c",
265 ] 259 ]
266 } 260 }
267 261
268 executable("srtp_test_aes_calc") { 262 executable("srtp_test_aes_calc") {
269 configs -= [ "//build/config/compiler:chromium_code" ] 263 configs -= [ "//build/config/compiler:chromium_code" ]
270 configs += [ "//build/config/compiler:no_chromium_code" ] 264 configs += [ "//build/config/compiler:no_chromium_code" ]
271 configs += [ ":libsrtp_config" ]
272 deps = [ ":libsrtp" ] 265 deps = [ ":libsrtp" ]
273 sources = [ 266 sources = [
274 "srtp/crypto/test/aes_calc.c", 267 "srtp/crypto/test/aes_calc.c",
275 ] 268 ]
276 } 269 }
277 270
278 executable("srtp_test_rand_gen") { 271 executable("srtp_test_rand_gen") {
279 configs -= [ "//build/config/compiler:chromium_code" ] 272 configs -= [ "//build/config/compiler:chromium_code" ]
280 configs += [ "//build/config/compiler:no_chromium_code" ] 273 configs += [ "//build/config/compiler:no_chromium_code" ]
281 configs += [ ":libsrtp_config" ]
282 deps = [ ":libsrtp" ] 274 deps = [ ":libsrtp" ]
283 sources = [ 275 sources = [
284 "srtp/crypto/test/rand_gen.c", 276 "srtp/crypto/test/rand_gen.c",
285 ] 277 ]
286 } 278 }
287 279
288 executable("srtp_test_env") { 280 executable("srtp_test_env") {
289 configs -= [ "//build/config/compiler:chromium_code" ] 281 configs -= [ "//build/config/compiler:chromium_code" ]
290 configs += [ "//build/config/compiler:no_chromium_code" ] 282 configs += [ "//build/config/compiler:no_chromium_code" ]
291 configs += [ ":libsrtp_config" ]
292 deps = [ ":libsrtp" ] 283 deps = [ ":libsrtp" ]
293 sources = [ 284 sources = [
294 "srtp/crypto/test/env.c", 285 "srtp/crypto/test/env.c",
295 ] 286 ]
296 } 287 }
297 288
298 group("srtp_runtest") { 289 group("srtp_runtest") {
299 deps = [ 290 deps = [
300 ":rdbx_driver", 291 ":rdbx_driver",
301 ":srtp_driver", 292 ":srtp_driver",
302 ":roc_driver", 293 ":roc_driver",
303 ":replay_driver", 294 ":replay_driver",
304 ":rtpw", 295 ":rtpw",
305 ":srtp_test_cipher_driver", 296 ":srtp_test_cipher_driver",
306 ":srtp_test_datatypes_driver", 297 ":srtp_test_datatypes_driver",
307 ":srtp_test_stat_driver", 298 ":srtp_test_stat_driver",
308 ":srtp_test_sha1_driver", 299 ":srtp_test_sha1_driver",
309 ":srtp_test_kernel_driver", 300 ":srtp_test_kernel_driver",
310 ":srtp_test_aes_calc", 301 ":srtp_test_aes_calc",
311 ":srtp_test_rand_gen", 302 ":srtp_test_rand_gen",
312 ":srtp_test_env", 303 ":srtp_test_env",
313 ] 304 ]
314 } 305 }
315 } 306 }
316 } 307 }
OLDNEW
« no previous file with comments | « build/config/win/BUILD.gn ('k') | content/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698