diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-22 20:20:12 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-22 20:20:12 +0000 |
commit | c038370e7085e13de58a6056b6a0351c8ddad97a (patch) | |
tree | bf6505291551fae84ee2b8aeba31887af456f6f5 /third_party | |
parent | 9c482597fb08e8383ce6c22238346219fcc64219 (diff) | |
download | chromium_src-c038370e7085e13de58a6056b6a0351c8ddad97a.zip chromium_src-c038370e7085e13de58a6056b6a0351c8ddad97a.tar.gz chromium_src-c038370e7085e13de58a6056b6a0351c8ddad97a.tar.bz2 |
Add libsrtp in DEPS, gyp file for libsrtp.
BUG=53986
TEST=none
Review URL: http://codereview.chromium.org/3382013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60213 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/libsrtp/README.chromium | 6 | ||||
-rw-r--r-- | third_party/libsrtp/config/config.h | 6 | ||||
-rw-r--r-- | third_party/libsrtp/libsrtp.gyp | 91 |
3 files changed, 103 insertions, 0 deletions
diff --git a/third_party/libsrtp/README.chromium b/third_party/libsrtp/README.chromium new file mode 100644 index 0000000..25c24c9 --- /dev/null +++ b/third_party/libsrtp/README.chromium @@ -0,0 +1,6 @@ +Name: libsrtp +URL: http://srtp.sourceforge.net +License File: src/LICENSE + +Chromoting uses libSRTP to encrypt video stream. +See source/README.chromium for about current revision. diff --git a/third_party/libsrtp/config/config.h b/third_party/libsrtp/config/config.h new file mode 100644 index 0000000..8a4f96f --- /dev/null +++ b/third_party/libsrtp/config/config.h @@ -0,0 +1,6 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This is a stub config.h for libSRTP. It doesn't define anything because +// build is configured by libsrtp.gyp. diff --git a/third_party/libsrtp/libsrtp.gyp b/third_party/libsrtp/libsrtp.gyp new file mode 100644 index 0000000..e73e827 --- /dev/null +++ b/third_party/libsrtp/libsrtp.gyp @@ -0,0 +1,91 @@ +# Copyright (c) 2009 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +{ + 'target_defaults': { + 'defines': [ + 'HAVE_STDLIB_H', + 'HAVE_STRING_H', + ], + 'include_dirs': [ + './config', + './src/include', + './src/crypto/include', + ], + 'conditions': [ + ['target_arch=="x64"', { + 'defines': [ + 'CPU_CISC', + 'SIZEOF_UNSIGNED_LONG=8', + 'SIZEOF_UNSIGNED_LONG_LONG=8', + ], + }], + ['target_arch=="ia32"', { + 'defines': [ + 'CPU_CISC', + 'SIZEOF_UNSIGNED_LONG=4', + 'SIZEOF_UNSIGNED_LONG_LONG=8', + ], + }], + ['target_arch=="arm"', { + 'defines': [ + 'CPU_RISC', + 'SIZEOF_UNSIGNED_LONG=4', + 'SIZEOF_UNSIGNED_LONG_LONG=8', + ], + }], + ['OS!="win"', { + 'defines': [ + 'HAVE_STDINT_H', + 'HAVE_INTTYPES_H', + ], + }], + ['OS=="win"', { + 'defines': [ + 'HAVE_WINSOCK2_H', + 'inline=__inline', + ], + }], + ], + }, + 'targets': [ + { + 'target_name': 'libsrtp', + 'type': '<(library)', + 'sources': [ + 'src/srtp/ekt.c', + 'src/srtp/srtp.c', + 'src/crypto/cipher/aes_icm.c', + 'src/crypto/cipher/null_cipher.c', + 'src/crypto/cipher/aes_cbc.c', + 'src/crypto/cipher/cipher.c', + 'src/crypto/cipher/aes.c', + 'src/crypto/math/datatypes.c', + 'src/crypto/math/gf2_8.c', + 'src/crypto/math/stat.c', + 'src/crypto/replay/rdbx.c', + 'src/crypto/replay/ut_sim.c', + 'src/crypto/replay/rdb.c', + 'src/crypto/kernel/alloc.c', + 'src/crypto/kernel/key.c', + 'src/crypto/kernel/err.c', + 'src/crypto/kernel/crypto_kernel.c', + 'src/crypto/rng/rand_source.c', + 'src/crypto/rng/prng.c', + 'src/crypto/rng/ctr_prng.c', + 'src/crypto/ae_xfm/xfm.c', + 'src/crypto/hash/sha1.c', + 'src/crypto/hash/hmac.c', + 'src/crypto/hash/null_auth.c', + 'src/crypto/hash/auth.c', + ], + }, + ], +} + +# Local Variables: +# tab-width:2 +# indent-tabs-mode:nil +# End: +# vim: set expandtab tabstop=2 shiftwidth=2: |