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

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

Issue 1422333008: Remove Windows-related GN build configuration (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Review feedback addressed Created 5 years, 1 month 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
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 use_srtp_boringssl = true 7 use_srtp_boringssl = true
8 } 8 }
9 9
10 config("libsrtp_config") { 10 config("libsrtp_config") {
(...skipping 25 matching lines...) Expand all
36 "HAVE_UINT8_T", 36 "HAVE_UINT8_T",
37 "HAVE_STDINT_H", 37 "HAVE_STDINT_H",
38 "HAVE_INTTYPES_H", 38 "HAVE_INTTYPES_H",
39 "HAVE_NETINET_IN_H", 39 "HAVE_NETINET_IN_H",
40 "HAVE_ARPA_INET_H", 40 "HAVE_ARPA_INET_H",
41 "HAVE_UNISTD_H", 41 "HAVE_UNISTD_H",
42 ] 42 ]
43 cflags = [ "-Wno-unused-variable" ] 43 cflags = [ "-Wno-unused-variable" ]
44 } 44 }
45 45
46 if (is_win) {
47 defines += [
48 "HAVE_BYTESWAP_METHODS_H",
49
50 # All Windows architectures are this way.
51 "SIZEOF_UNSIGNED_LONG=4",
52 "SIZEOF_UNSIGNED_LONG_LONG=8",
53 ]
54 }
55
56 if (current_cpu == "x64" || current_cpu == "x86" || current_cpu == "arm") { 46 if (current_cpu == "x64" || current_cpu == "x86" || current_cpu == "arm") {
57 defines += [ 47 defines += [
58 # TODO(leozwang): CPU_RISC doesn"t work properly on android/arm 48 # TODO(leozwang): CPU_RISC doesn"t work properly on android/arm
59 # platform for unknown reasons, need to investigate the root cause 49 # platform for unknown reasons, need to investigate the root cause
60 # of it. CPU_RISC is used for optimization only, and CPU_CISC should 50 # of it. CPU_RISC is used for optimization only, and CPU_CISC should
61 # just work just fine, it has been tested on android/arm with srtp 51 # just work just fine, it has been tested on android/arm with srtp
62 # test applications and libjingle. 52 # test applications and libjingle.
63 "CPU_CISC", 53 "CPU_CISC",
64 ] 54 ]
65 } 55 }
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 sources += [ 166 sources += [
177 "srtp/crypto/cipher/aes_gcm_ossl.c", 167 "srtp/crypto/cipher/aes_gcm_ossl.c",
178 "srtp/crypto/cipher/aes_icm_ossl.c", 168 "srtp/crypto/cipher/aes_icm_ossl.c",
179 "srtp/crypto/hash/hmac_ossl.c", 169 "srtp/crypto/hash/hmac_ossl.c",
180 "srtp/crypto/include/aes_gcm_ossl.h", 170 "srtp/crypto/include/aes_gcm_ossl.h",
181 "srtp/crypto/include/aes_icm_ossl.h", 171 "srtp/crypto/include/aes_icm_ossl.h",
182 ] 172 ]
183 } 173 }
184 } 174 }
185 175
186 # TODO(GYP): A bunch of these tests don't compile (in gyp either). They're 176 executable("rdbx_driver") {
187 # not very broken, so could probably be made to work if it's useful. 177 configs -= [ "//build/config/compiler:chromium_code" ]
188 if (!is_win) { 178 configs += [ "//build/config/compiler:no_chromium_code" ]
189 executable("rdbx_driver") { 179 deps = [
190 configs -= [ "//build/config/compiler:chromium_code" ] 180 ":libsrtp",
191 configs += [ "//build/config/compiler:no_chromium_code" ] 181 ]
192 deps = [ 182 sources = [
193 ":libsrtp", 183 "srtp/include/getopt_s.h",
194 ] 184 "srtp/test/getopt_s.c",
195 sources = [ 185 "srtp/test/rdbx_driver.c",
196 "srtp/include/getopt_s.h", 186 ]
197 "srtp/test/getopt_s.c", 187 }
198 "srtp/test/rdbx_driver.c", 188
199 ] 189 executable("srtp_driver") {
190 configs -= [ "//build/config/compiler:chromium_code" ]
191 configs += [ "//build/config/compiler:no_chromium_code" ]
192 deps = [
193 ":libsrtp",
194 ]
195 sources = [
196 "srtp/include/getopt_s.h",
197 "srtp/include/srtp_priv.h",
198 "srtp/test/getopt_s.c",
199 "srtp/test/srtp_driver.c",
200 ]
201 }
202
203 executable("roc_driver") {
204 configs -= [ "//build/config/compiler:chromium_code" ]
205 configs += [ "//build/config/compiler:no_chromium_code" ]
206 deps = [
207 ":libsrtp",
208 ]
209 sources = [
210 "srtp/crypto/include/rdbx.h",
211 "srtp/include/ut_sim.h",
212 "srtp/test/roc_driver.c",
213 ]
214 }
215
216 executable("replay_driver") {
217 configs -= [ "//build/config/compiler:chromium_code" ]
218 configs += [ "//build/config/compiler:no_chromium_code" ]
219 deps = [
220 ":libsrtp",
221 ]
222 sources = [
223 "srtp/crypto/include/rdbx.h",
224 "srtp/include/ut_sim.h",
225 "srtp/test/replay_driver.c",
226 ]
227 }
228
229 executable("rtpw") {
230 configs -= [ "//build/config/compiler:chromium_code" ]
231 configs += [ "//build/config/compiler:no_chromium_code" ]
232 deps = [
233 ":libsrtp",
234 ]
235 sources = [
236 "srtp/crypto/include/datatypes.h",
237 "srtp/include/getopt_s.h",
238 "srtp/include/rtp.h",
239 "srtp/include/srtp.h",
240 "srtp/test/getopt_s.c",
241 "srtp/test/rtp.c",
242 "srtp/test/rtpw.c",
243 ]
244 if (is_android) {
245 defines = [ "HAVE_SYS_SOCKET_H" ]
200 } 246 }
201 247 if (is_clang) {
202 executable("srtp_driver") { 248 cflags = [ "-Wno-implicit-function-declaration" ]
203 configs -= [ "//build/config/compiler:chromium_code" ]
204 configs += [ "//build/config/compiler:no_chromium_code" ]
205 deps = [
206 ":libsrtp",
207 ]
208 sources = [
209 "srtp/include/getopt_s.h",
210 "srtp/include/srtp_priv.h",
211 "srtp/test/getopt_s.c",
212 "srtp/test/srtp_driver.c",
213 ]
214 } 249 }
215 250 }
216 executable("roc_driver") { 251
217 configs -= [ "//build/config/compiler:chromium_code" ] 252 executable("srtp_test_cipher_driver") {
218 configs += [ "//build/config/compiler:no_chromium_code" ] 253 configs -= [ "//build/config/compiler:chromium_code" ]
219 deps = [ 254 configs += [ "//build/config/compiler:no_chromium_code" ]
220 ":libsrtp", 255 deps = [
221 ] 256 ":libsrtp",
222 sources = [ 257 ]
223 "srtp/crypto/include/rdbx.h", 258 sources = [
224 "srtp/include/ut_sim.h", 259 "srtp/crypto/test/cipher_driver.c",
225 "srtp/test/roc_driver.c", 260 "srtp/include/getopt_s.h",
226 ] 261 "srtp/test/getopt_s.c",
227 } 262 ]
228 263 }
229 executable("replay_driver") { 264
230 configs -= [ "//build/config/compiler:chromium_code" ] 265 executable("srtp_test_datatypes_driver") {
231 configs += [ "//build/config/compiler:no_chromium_code" ] 266 configs -= [ "//build/config/compiler:chromium_code" ]
232 deps = [ 267 configs += [ "//build/config/compiler:no_chromium_code" ]
233 ":libsrtp", 268 deps = [
234 ] 269 ":libsrtp",
235 sources = [ 270 ]
236 "srtp/crypto/include/rdbx.h", 271 sources = [
237 "srtp/include/ut_sim.h", 272 "srtp/crypto/test/datatypes_driver.c",
238 "srtp/test/replay_driver.c", 273 ]
239 ] 274 }
240 } 275
241 276 executable("srtp_test_stat_driver") {
242 executable("rtpw") { 277 configs -= [ "//build/config/compiler:chromium_code" ]
243 configs -= [ "//build/config/compiler:chromium_code" ] 278 configs += [ "//build/config/compiler:no_chromium_code" ]
244 configs += [ "//build/config/compiler:no_chromium_code" ] 279 deps = [
245 deps = [ 280 ":libsrtp",
246 ":libsrtp", 281 ]
247 ] 282 sources = [
248 sources = [ 283 "srtp/crypto/test/stat_driver.c",
249 "srtp/crypto/include/datatypes.h", 284 ]
250 "srtp/include/getopt_s.h", 285 }
251 "srtp/include/rtp.h", 286
252 "srtp/include/srtp.h", 287 executable("srtp_test_sha1_driver") {
253 "srtp/test/getopt_s.c", 288 configs -= [ "//build/config/compiler:chromium_code" ]
254 "srtp/test/rtp.c", 289 configs += [ "//build/config/compiler:no_chromium_code" ]
255 "srtp/test/rtpw.c", 290 deps = [
256 ] 291 ":libsrtp",
257 if (is_android) { 292 ]
258 defines = [ "HAVE_SYS_SOCKET_H" ] 293 sources = [
259 } 294 "srtp/crypto/test/sha1_driver.c",
260 if (is_clang) { 295 ]
261 cflags = [ "-Wno-implicit-function-declaration" ] 296 }
262 } 297
263 } 298 executable("srtp_test_kernel_driver") {
264 299 configs -= [ "//build/config/compiler:chromium_code" ]
265 executable("srtp_test_cipher_driver") { 300 configs += [ "//build/config/compiler:no_chromium_code" ]
266 configs -= [ "//build/config/compiler:chromium_code" ] 301 deps = [
267 configs += [ "//build/config/compiler:no_chromium_code" ] 302 ":libsrtp",
268 deps = [ 303 ]
269 ":libsrtp", 304 sources = [
270 ] 305 "srtp/crypto/test/kernel_driver.c",
271 sources = [ 306 "srtp/include/getopt_s.h",
272 "srtp/crypto/test/cipher_driver.c", 307 "srtp/test/getopt_s.c",
273 "srtp/include/getopt_s.h", 308 ]
274 "srtp/test/getopt_s.c", 309 }
275 ] 310
276 } 311 executable("srtp_test_aes_calc") {
277 312 configs -= [ "//build/config/compiler:chromium_code" ]
278 executable("srtp_test_datatypes_driver") { 313 configs += [ "//build/config/compiler:no_chromium_code" ]
279 configs -= [ "//build/config/compiler:chromium_code" ] 314 deps = [
280 configs += [ "//build/config/compiler:no_chromium_code" ] 315 ":libsrtp",
281 deps = [ 316 ]
282 ":libsrtp", 317 sources = [
283 ] 318 "srtp/crypto/test/aes_calc.c",
284 sources = [ 319 ]
285 "srtp/crypto/test/datatypes_driver.c", 320 }
286 ] 321
287 } 322 executable("srtp_test_rand_gen") {
288 323 configs -= [ "//build/config/compiler:chromium_code" ]
289 executable("srtp_test_stat_driver") { 324 configs += [ "//build/config/compiler:no_chromium_code" ]
290 configs -= [ "//build/config/compiler:chromium_code" ] 325 deps = [
291 configs += [ "//build/config/compiler:no_chromium_code" ] 326 ":libsrtp",
292 deps = [ 327 ]
293 ":libsrtp", 328 sources = [
294 ] 329 "srtp/crypto/test/rand_gen.c",
295 sources = [ 330 "srtp/include/getopt_s.h",
296 "srtp/crypto/test/stat_driver.c", 331 "srtp/test/getopt_s.c",
297 ] 332 ]
298 } 333 }
299 334
300 executable("srtp_test_sha1_driver") { 335 executable("srtp_test_rand_gen_soak") {
301 configs -= [ "//build/config/compiler:chromium_code" ] 336 configs -= [ "//build/config/compiler:chromium_code" ]
302 configs += [ "//build/config/compiler:no_chromium_code" ] 337 configs += [ "//build/config/compiler:no_chromium_code" ]
303 deps = [ 338 deps = [
304 ":libsrtp", 339 ":libsrtp",
305 ] 340 ]
306 sources = [ 341 sources = [
307 "srtp/crypto/test/sha1_driver.c", 342 "srtp/crypto/test/rand_gen_soak.c",
308 ] 343 "srtp/include/getopt_s.h",
309 } 344 "srtp/test/getopt_s.c",
310 345 ]
311 executable("srtp_test_kernel_driver") { 346 }
312 configs -= [ "//build/config/compiler:chromium_code" ] 347
313 configs += [ "//build/config/compiler:no_chromium_code" ] 348 executable("srtp_test_env") {
314 deps = [ 349 configs -= [ "//build/config/compiler:chromium_code" ]
315 ":libsrtp", 350 configs += [ "//build/config/compiler:no_chromium_code" ]
316 ] 351 deps = [
317 sources = [ 352 ":libsrtp",
318 "srtp/crypto/test/kernel_driver.c", 353 ]
319 "srtp/include/getopt_s.h", 354 sources = [
320 "srtp/test/getopt_s.c", 355 "srtp/crypto/test/env.c",
321 ] 356 ]
322 } 357 }
323 358
324 executable("srtp_test_aes_calc") { 359 group("srtp_runtest") {
325 configs -= [ "//build/config/compiler:chromium_code" ] 360 deps = [
326 configs += [ "//build/config/compiler:no_chromium_code" ] 361 ":rdbx_driver",
327 deps = [ 362 ":srtp_driver",
328 ":libsrtp", 363 ":roc_driver",
329 ] 364 ":replay_driver",
330 sources = [ 365 ":rtpw",
331 "srtp/crypto/test/aes_calc.c", 366 ":srtp_test_cipher_driver",
332 ] 367 ":srtp_test_datatypes_driver",
333 } 368 ":srtp_test_stat_driver",
334 369 ":srtp_test_sha1_driver",
335 executable("srtp_test_rand_gen") { 370 ":srtp_test_kernel_driver",
336 configs -= [ "//build/config/compiler:chromium_code" ] 371 ":srtp_test_aes_calc",
337 configs += [ "//build/config/compiler:no_chromium_code" ] 372 ":srtp_test_rand_gen",
338 deps = [ 373 ":srtp_test_rand_gen_soak",
339 ":libsrtp", 374 ":srtp_test_env",
340 ] 375 ]
341 sources = [
342 "srtp/crypto/test/rand_gen.c",
343 "srtp/include/getopt_s.h",
344 "srtp/test/getopt_s.c",
345 ]
346 }
347
348 executable("srtp_test_rand_gen_soak") {
349 configs -= [ "//build/config/compiler:chromium_code" ]
350 configs += [ "//build/config/compiler:no_chromium_code" ]
351 deps = [
352 ":libsrtp",
353 ]
354 sources = [
355 "srtp/crypto/test/rand_gen_soak.c",
356 "srtp/include/getopt_s.h",
357 "srtp/test/getopt_s.c",
358 ]
359 }
360
361 executable("srtp_test_env") {
362 configs -= [ "//build/config/compiler:chromium_code" ]
363 configs += [ "//build/config/compiler:no_chromium_code" ]
364 deps = [
365 ":libsrtp",
366 ]
367 sources = [
368 "srtp/crypto/test/env.c",
369 ]
370 }
371
372 group("srtp_runtest") {
373 deps = [
374 ":rdbx_driver",
375 ":srtp_driver",
376 ":roc_driver",
377 ":replay_driver",
378 ":rtpw",
379 ":srtp_test_cipher_driver",
380 ":srtp_test_datatypes_driver",
381 ":srtp_test_stat_driver",
382 ":srtp_test_sha1_driver",
383 ":srtp_test_kernel_driver",
384 ":srtp_test_aes_calc",
385 ":srtp_test_rand_gen",
386 ":srtp_test_rand_gen_soak",
387 ":srtp_test_env",
388 ]
389 }
390 } 376 }
391 } 377 }
OLDNEW
« no previous file with comments | « build/secondary/third_party/libjpeg_turbo/BUILD.gn ('k') | build/secondary/third_party/nss/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698