OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 { |
| 6 'target_defaults': { |
| 7 'defines': [ |
| 8 'HAVE_STDLIB_H', |
| 9 'HAVE_STRING_H', |
| 10 ], |
| 11 'include_dirs': [ |
| 12 './config', |
| 13 './src/include', |
| 14 './src/crypto/include', |
| 15 ], |
| 16 'conditions': [ |
| 17 ['target_arch=="x64"', { |
| 18 'defines': [ |
| 19 'CPU_CISC', |
| 20 'SIZEOF_UNSIGNED_LONG=8', |
| 21 'SIZEOF_UNSIGNED_LONG_LONG=8', |
| 22 ], |
| 23 }], |
| 24 ['target_arch=="ia32"', { |
| 25 'defines': [ |
| 26 'CPU_CISC', |
| 27 'SIZEOF_UNSIGNED_LONG=4', |
| 28 'SIZEOF_UNSIGNED_LONG_LONG=8', |
| 29 ], |
| 30 }], |
| 31 ['target_arch=="arm"', { |
| 32 'defines': [ |
| 33 'CPU_RISC', |
| 34 'SIZEOF_UNSIGNED_LONG=4', |
| 35 'SIZEOF_UNSIGNED_LONG_LONG=8', |
| 36 ], |
| 37 }], |
| 38 ['OS!="win"', { |
| 39 'defines': [ |
| 40 'HAVE_STDINT_H', |
| 41 'HAVE_INTTYPES_H', |
| 42 ], |
| 43 }], |
| 44 ['OS=="win"', { |
| 45 'defines': [ |
| 46 'HAVE_WINSOCK2_H', |
| 47 'inline=__inline', |
| 48 ], |
| 49 }], |
| 50 ], |
| 51 }, |
| 52 'targets': [ |
| 53 { |
| 54 'target_name': 'libsrtp', |
| 55 'type': '<(library)', |
| 56 'sources': [ |
| 57 'src/srtp/ekt.c', |
| 58 'src/srtp/srtp.c', |
| 59 'src/crypto/cipher/aes_icm.c', |
| 60 'src/crypto/cipher/null_cipher.c', |
| 61 'src/crypto/cipher/aes_cbc.c', |
| 62 'src/crypto/cipher/cipher.c', |
| 63 'src/crypto/cipher/aes.c', |
| 64 'src/crypto/math/datatypes.c', |
| 65 'src/crypto/math/gf2_8.c', |
| 66 'src/crypto/math/stat.c', |
| 67 'src/crypto/replay/rdbx.c', |
| 68 'src/crypto/replay/ut_sim.c', |
| 69 'src/crypto/replay/rdb.c', |
| 70 'src/crypto/kernel/alloc.c', |
| 71 'src/crypto/kernel/key.c', |
| 72 'src/crypto/kernel/err.c', |
| 73 'src/crypto/kernel/crypto_kernel.c', |
| 74 'src/crypto/rng/rand_source.c', |
| 75 'src/crypto/rng/prng.c', |
| 76 'src/crypto/rng/ctr_prng.c', |
| 77 'src/crypto/ae_xfm/xfm.c', |
| 78 'src/crypto/hash/sha1.c', |
| 79 'src/crypto/hash/hmac.c', |
| 80 'src/crypto/hash/null_auth.c', |
| 81 'src/crypto/hash/auth.c', |
| 82 ], |
| 83 }, |
| 84 ], |
| 85 } |
| 86 |
| 87 # Local Variables: |
| 88 # tab-width:2 |
| 89 # indent-tabs-mode:nil |
| 90 # End: |
| 91 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |