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

Side by Side Diff: libsrtp.gyp

Issue 889083003: Update libsrtp to upstream 1.5.0 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libsrtp@master
Patch Set: Minimal changes against upstream 1.5.0 Created 5 years, 10 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
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 { 5 {
6 'variables': { 6 'variables': {
7 'use_system_libsrtp%': 0, 7 'use_system_libsrtp%': 0,
8 'use_openssl%': 0,
8 }, 9 },
9 'target_defaults': { 10 'target_defaults': {
10 'defines': [ 11 'defines': [
12 'HAVE_CONFIG_H',
11 'HAVE_STDLIB_H', 13 'HAVE_STDLIB_H',
12 'HAVE_STRING_H', 14 'HAVE_STRING_H',
13 ], 15 ],
14 'include_dirs': [ 16 'include_dirs': [
15 './config', 17 './config',
16 'srtp/include', 18 'srtp/include',
17 'srtp/crypto/include', 19 'srtp/crypto/include',
18 ], 20 ],
19 'conditions': [ 21 'conditions': [
22 ['use_openssl==1', {
23 'defines': [
24 'OPENSSL',
25 ],
26 }],
20 ['os_posix==1', { 27 ['os_posix==1', {
21 'defines': [ 28 'defines': [
22 'HAVE_INT16_T', 29 'HAVE_INT16_T',
23 'HAVE_INT32_T', 30 'HAVE_INT32_T',
24 'HAVE_INT8_T', 31 'HAVE_INT8_T',
25 'HAVE_UINT16_T', 32 'HAVE_UINT16_T',
26 'HAVE_UINT32_T', 33 'HAVE_UINT32_T',
27 'HAVE_UINT64_T', 34 'HAVE_UINT64_T',
28 'HAVE_UINT8_T', 35 'HAVE_UINT8_T',
29 'HAVE_STDINT_H', 36 'HAVE_STDINT_H',
30 'HAVE_INTTYPES_H', 37 'HAVE_INTTYPES_H',
31 'HAVE_NETINET_IN_H', 38 'HAVE_NETINET_IN_H',
39 'HAVE_ARPA_INET_H',
40 'HAVE_UNISTD_H',
32 'INLINE=inline', 41 'INLINE=inline',
33 ], 42 ],
43 'cflags': [
44 '-Wno-unused-variable',
45 ],
34 }], 46 }],
35 ['OS=="win"', { 47 ['OS=="win"', {
36 'defines': [ 48 'defines': [
37 'INLINE=__inline', 49 'INLINE=__inline',
38 'HAVE_BYTESWAP_METHODS_H', 50 'HAVE_BYTESWAP_METHODS_H',
39 # All Windows architectures are this way. 51 # All Windows architectures are this way.
40 'SIZEOF_UNSIGNED_LONG=4', 52 'SIZEOF_UNSIGNED_LONG=4',
41 'SIZEOF_UNSIGNED_LONG_LONG=8', 53 'SIZEOF_UNSIGNED_LONG_LONG=8',
42 ], 54 ],
43 }], 55 }],
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 'srtp/crypto/math/datatypes.c', 184 'srtp/crypto/math/datatypes.c',
173 'srtp/crypto/math/gf2_8.c', 185 'srtp/crypto/math/gf2_8.c',
174 'srtp/crypto/math/stat.c', 186 'srtp/crypto/math/stat.c',
175 'srtp/crypto/replay/rdb.c', 187 'srtp/crypto/replay/rdb.c',
176 'srtp/crypto/replay/rdbx.c', 188 'srtp/crypto/replay/rdbx.c',
177 'srtp/crypto/replay/ut_sim.c', 189 'srtp/crypto/replay/ut_sim.c',
178 'srtp/crypto/rng/ctr_prng.c', 190 'srtp/crypto/rng/ctr_prng.c',
179 'srtp/crypto/rng/prng.c', 191 'srtp/crypto/rng/prng.c',
180 'srtp/crypto/rng/rand_source.c', 192 'srtp/crypto/rng/rand_source.c',
181 ], 193 ],
194 'conditions': [
195 ['use_openssl==1', {
196 'dependencies': [
197 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
198 ],
199 'sources!': [
200 'srtp/crypto/cipher/aes_cbc.c',
201 'srtp/crypto/cipher/aes_icm.c',
202 'srtp/crypto/hash/hmac.c',
203 'srtp/crypto/hash/sha1.c',
204 'srtp/crypto/rng/ctr_prng.c',
205 'srtp/crypto/rng/prng.c',
206 'srtp/crypto/rng/rand_source.c',
207 ],
208 'sources': [
209 'srtp/crypto/cipher/aes_gcm_ossl.c',
210 'srtp/crypto/cipher/aes_icm_ossl.c',
211 'srtp/crypto/hash/hmac_ossl.c',
212 'srtp/crypto/include/aes_gcm_ossl.h',
213 'srtp/crypto/include/aes_icm_ossl.h',
214 'srtp/crypto/rng/rand_source_ossl.c',
215 ],
216 }],
217 ],
182 }, # target libsrtp 218 }, # target libsrtp
183 { 219 {
184 'target_name': 'rdbx_driver', 220 'target_name': 'rdbx_driver',
185 'type': 'executable', 221 'type': 'executable',
186 'dependencies': [ 222 'dependencies': [
187 'libsrtp', 223 'libsrtp',
188 ], 224 ],
189 'sources': [ 225 'sources': [
190 'srtp/include/getopt_s.h', 226 'srtp/include/getopt_s.h',
191 'srtp/test/getopt_s.c', 227 'srtp/test/getopt_s.c',
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 }, 290 },
255 { 291 {
256 'target_name': 'srtp_test_cipher_driver', 292 'target_name': 'srtp_test_cipher_driver',
257 'type': 'executable', 293 'type': 'executable',
258 'dependencies': [ 294 'dependencies': [
259 'libsrtp', 295 'libsrtp',
260 ], 296 ],
261 'sources': [ 297 'sources': [
262 'srtp/crypto/test/cipher_driver.c', 298 'srtp/crypto/test/cipher_driver.c',
263 ], 299 ],
300 'conditions': [
301 ['use_openssl==1', {
302 'dependencies': [
303 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
304 ],
305 }],
306 ],
264 }, 307 },
265 { 308 {
266 'target_name': 'srtp_test_datatypes_driver', 309 'target_name': 'srtp_test_datatypes_driver',
267 'type': 'executable', 310 'type': 'executable',
268 'dependencies': [ 311 'dependencies': [
269 'libsrtp', 312 'libsrtp',
270 ], 313 ],
271 'sources': [ 314 'sources': [
272 'srtp/crypto/test/datatypes_driver.c', 315 'srtp/crypto/test/datatypes_driver.c',
273 ], 316 ],
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 'target_name': 'srtp_test_rand_gen', 359 'target_name': 'srtp_test_rand_gen',
317 'type': 'executable', 360 'type': 'executable',
318 'dependencies': [ 361 'dependencies': [
319 'libsrtp', 362 'libsrtp',
320 ], 363 ],
321 'sources': [ 364 'sources': [
322 'srtp/crypto/test/rand_gen.c', 365 'srtp/crypto/test/rand_gen.c',
323 ], 366 ],
324 }, 367 },
325 { 368 {
369 'target_name': 'srtp_test_rand_gen_soak',
370 'type': 'executable',
371 'dependencies': [
372 'libsrtp',
373 ],
374 'sources': [
375 'srtp/crypto/test/rand_gen_soak.c',
376 ],
377 },
378 {
326 'target_name': 'srtp_test_env', 379 'target_name': 'srtp_test_env',
327 'type': 'executable', 380 'type': 'executable',
328 'dependencies': [ 381 'dependencies': [
329 'libsrtp', 382 'libsrtp',
330 ], 383 ],
331 'sources': [ 384 'sources': [
332 'srtp/crypto/test/env.c', 385 'srtp/crypto/test/env.c',
333 ], 386 ],
334 }, 387 },
335 { 388 {
336 'target_name': 'srtp_runtest', 389 'target_name': 'srtp_runtest',
337 'type': 'none', 390 'type': 'none',
338 'dependencies': [ 391 'dependencies': [
339 'rdbx_driver', 392 'rdbx_driver',
340 'srtp_driver', 393 'srtp_driver',
341 'roc_driver', 394 'roc_driver',
342 'replay_driver', 395 'replay_driver',
343 'rtpw', 396 'rtpw',
344 'srtp_test_cipher_driver', 397 'srtp_test_cipher_driver',
345 'srtp_test_datatypes_driver', 398 'srtp_test_datatypes_driver',
346 'srtp_test_stat_driver', 399 'srtp_test_stat_driver',
347 'srtp_test_sha1_driver', 400 'srtp_test_sha1_driver',
348 'srtp_test_kernel_driver', 401 'srtp_test_kernel_driver',
349 'srtp_test_aes_calc', 402 'srtp_test_aes_calc',
350 'srtp_test_rand_gen', 403 'srtp_test_rand_gen',
404 'srtp_test_rand_gen_soak',
351 'srtp_test_env', 405 'srtp_test_env',
352 ], 406 ],
353 }, 407 },
354 ], # targets 408 ], # targets
355 }, { # use_system_libsrtp==1 409 }, { # use_system_libsrtp==1
356 'targets': [ 410 'targets': [
357 { 411 {
358 'target_name': 'libsrtp', 412 'target_name': 'libsrtp',
359 'type': 'none', 413 'type': 'none',
360 'direct_dependent_settings': { 414 'direct_dependent_settings': {
361 'defines': [ 415 'defines': [
362 'USE_SYSTEM_LIBSRTP', 416 'USE_SYSTEM_LIBSRTP',
363 ], 417 ],
364 'include_dirs': [ 418 'include_dirs': [
365 '/usr/include/srtp', 419 '/usr/include/srtp',
366 ], 420 ],
367 }, 421 },
368 'link_settings': { 422 'link_settings': {
369 'libraries': [ 423 'libraries': [
370 '-lsrtp', 424 '-lsrtp',
371 ], 425 ],
372 }, 426 },
373 }, # target libsrtp 427 }, # target libsrtp
374 ], # targets 428 ], # targets
375 }], 429 }],
376 ], 430 ],
377 } 431 }
OLDNEW
« README.chromium ('K') | « config/config.h ('k') | srtp/.cvsignore » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698