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" and target_arch=="ia32"', { | |
39 'defines': [ | |
40 'HAVE_X86', | |
41 ], | |
42 }], | |
43 ['OS!="win"', { | |
44 'defines': [ | |
45 'HAVE_STDINT_H', | |
46 'HAVE_INTTYPES_H', | |
47 ], | |
48 }], | |
49 ['OS=="win"', { | |
50 'defines': [ | |
51 'HAVE_WINSOCK2_H', | |
52 'inline=__inline', | |
53 ], | |
54 }], | |
55 ], | |
56 }, | |
57 'targets': [ | |
58 { | |
59 'target_name': 'libsrtp', | |
60 'type': '<(library)', | |
61 'sources': [ | |
62 'src/srtp/ekt.c', | |
63 'src/srtp/srtp.c', | |
64 'src/tables/aes_tables.c', | |
65 'src/crypto/cipher/aes_icm.c', | |
66 'src/crypto/cipher/null_cipher.c', | |
67 'src/crypto/cipher/aes_cbc.c', | |
68 'src/crypto/cipher/cipher.c', | |
69 'src/crypto/cipher/aes.c', | |
70 'src/crypto/math/datatypes.c', | |
71 'src/crypto/math/gf2_8.c', | |
72 'src/crypto/math/stat.c', | |
73 'src/crypto/replay/rdbx.c', | |
74 'src/crypto/replay/ut_sim.c', | |
75 'src/crypto/replay/rdb.c', | |
76 'src/crypto/kernel/alloc.c', | |
77 'src/crypto/kernel/key.c', | |
78 'src/crypto/kernel/err.c', | |
79 'src/crypto/kernel/crypto_kernel.c', | |
80 'src/crypto/rng/rand_source.c', | |
81 'src/crypto/rng/prng.c', | |
82 'src/crypto/rng/ctr_prng.c', | |
83 'src/crypto/ae_xfm/xfm.c', | |
84 'src/crypto/hash/sha1.c', | |
85 'src/crypto/hash/hmac.c', | |
86 'src/crypto/hash/null_auth.c', | |
87 'src/crypto/hash/auth.c', | |
88 ], | |
89 }, | |
90 ], | |
91 } | |
92 | |
93 # Local Variables: | |
94 # tab-width:2 | |
95 # indent-tabs-mode:nil | |
96 # End: | |
97 # vim: set expandtab tabstop=2 shiftwidth=2: | |
OLD | NEW |