OLD | NEW |
---|---|
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 'target_defaults': { | 6 'target_defaults': { |
7 'defines': [ | 7 'defines': [ |
8 'HAVE_STDLIB_H', | 8 'HAVE_STDLIB_H', |
9 'HAVE_STRING_H', | 9 'HAVE_STRING_H', |
10 ], | 10 ], |
(...skipping 12 matching lines...) Expand all Loading... | |
23 }], | 23 }], |
24 ['target_arch=="ia32"', { | 24 ['target_arch=="ia32"', { |
25 'defines': [ | 25 'defines': [ |
26 'CPU_CISC', | 26 'CPU_CISC', |
27 'SIZEOF_UNSIGNED_LONG=4', | 27 'SIZEOF_UNSIGNED_LONG=4', |
28 'SIZEOF_UNSIGNED_LONG_LONG=8', | 28 'SIZEOF_UNSIGNED_LONG_LONG=8', |
29 ], | 29 ], |
30 }], | 30 }], |
31 ['target_arch=="arm"', { | 31 ['target_arch=="arm"', { |
32 'defines': [ | 32 'defines': [ |
33 'CPU_RISC', | 33 'CPU_CISC', |
Sergey Ulanov
2012/04/09 17:54:32
This would be very confusing for anybody looking a
leozwang
2012/04/09 18:27:44
Done.
| |
34 'HAVE_INT16_T', | |
35 'HAVE_INT32_T', | |
36 'HAVE_INT8_T', | |
37 'HAVE_UINT16_T', | |
38 'HAVE_UINT32_T', | |
39 'HAVE_UINT64_T', | |
40 'HAVE_UINT8_T', | |
34 'SIZEOF_UNSIGNED_LONG=4', | 41 'SIZEOF_UNSIGNED_LONG=4', |
35 'SIZEOF_UNSIGNED_LONG_LONG=8', | 42 'SIZEOF_UNSIGNED_LONG_LONG=8', |
36 ], | 43 ], |
37 }], | 44 }], |
38 ['OS!="win"', { | 45 ['OS!="win"', { |
39 'defines': [ | 46 'defines': [ |
40 'HAVE_STDINT_H', | 47 'HAVE_STDINT_H', |
41 'HAVE_INTTYPES_H', | 48 'HAVE_INTTYPES_H', |
42 'HAVE_NETINET_IN_H', | 49 'HAVE_NETINET_IN_H', |
43 ], | 50 ], |
(...skipping 21 matching lines...) Expand all Loading... | |
65 }], | 72 }], |
66 ['target_arch=="ia32"', { | 73 ['target_arch=="ia32"', { |
67 'defines': [ | 74 'defines': [ |
68 'CPU_CISC', | 75 'CPU_CISC', |
69 'SIZEOF_UNSIGNED_LONG=4', | 76 'SIZEOF_UNSIGNED_LONG=4', |
70 'SIZEOF_UNSIGNED_LONG_LONG=8', | 77 'SIZEOF_UNSIGNED_LONG_LONG=8', |
71 ], | 78 ], |
72 }], | 79 }], |
73 ['target_arch=="arm"', { | 80 ['target_arch=="arm"', { |
74 'defines': [ | 81 'defines': [ |
75 'CPU_RISC', | 82 'CPU_CISC', |
Sergey Ulanov
2012/04/09 17:54:32
Don't think we need this in direct_dependent_setti
leozwang
2012/04/09 18:27:44
Done.
| |
83 'HAVE_INT16_T', | |
84 'HAVE_INT32_T', | |
85 'HAVE_INT8_T', | |
86 'HAVE_UINT16_T', | |
87 'HAVE_UINT32_T', | |
88 'HAVE_UINT64_T', | |
89 'HAVE_UINT8_T', | |
76 'SIZEOF_UNSIGNED_LONG=4', | 90 'SIZEOF_UNSIGNED_LONG=4', |
77 'SIZEOF_UNSIGNED_LONG_LONG=8', | 91 'SIZEOF_UNSIGNED_LONG_LONG=8', |
78 ], | 92 ], |
79 }], | 93 }], |
80 ['OS!="win"', { | 94 ['OS!="win"', { |
81 'defines': [ | 95 'defines': [ |
82 'HAVE_STDINT_H', | 96 'HAVE_STDINT_H', |
83 'HAVE_INTTYPES_H', | 97 'HAVE_INTTYPES_H', |
84 'HAVE_NETINET_IN_H', | 98 'HAVE_NETINET_IN_H', |
85 ], | 99 ], |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
156 'srtp/crypto/math/datatypes.c', | 170 'srtp/crypto/math/datatypes.c', |
157 'srtp/crypto/math/gf2_8.c', | 171 'srtp/crypto/math/gf2_8.c', |
158 'srtp/crypto/math/stat.c', | 172 'srtp/crypto/math/stat.c', |
159 'srtp/crypto/replay/rdb.c', | 173 'srtp/crypto/replay/rdb.c', |
160 'srtp/crypto/replay/rdbx.c', | 174 'srtp/crypto/replay/rdbx.c', |
161 'srtp/crypto/replay/ut_sim.c', | 175 'srtp/crypto/replay/ut_sim.c', |
162 'srtp/crypto/rng/ctr_prng.c', | 176 'srtp/crypto/rng/ctr_prng.c', |
163 'srtp/crypto/rng/prng.c', | 177 'srtp/crypto/rng/prng.c', |
164 'srtp/crypto/rng/rand_source.c', | 178 'srtp/crypto/rng/rand_source.c', |
165 ], | 179 ], |
180 }, # target libsrtp | |
181 { | |
182 'target_name': 'rdbx_driver', | |
183 'type': 'executable', | |
184 'dependencies': [ | |
185 'libsrtp', | |
186 ], | |
187 'sources': [ | |
188 'srtp/include/getopt_s.h', | |
189 'srtp/test/getopt_s.c', | |
190 'srtp/test/rdbx_driver.c', | |
191 ], | |
192 }, | |
193 { | |
194 'target_name': 'srtp_driver', | |
195 'type': 'executable', | |
196 'dependencies': [ | |
197 'libsrtp', | |
198 ], | |
199 'sources': [ | |
200 'srtp/include/getopt_s.h', | |
201 'srtp/include/srtp_priv.h', | |
202 'srtp/test/getopt_s.c', | |
203 'srtp/test/srtp_driver.c', | |
204 ], | |
205 }, | |
206 { | |
207 'target_name': 'roc_driver', | |
208 'type': 'executable', | |
209 'dependencies': [ | |
210 'libsrtp', | |
211 ], | |
212 'sources': [ | |
213 'srtp/crypto/include/rdbx.h', | |
214 'srtp/include/ut_sim.h', | |
215 'srtp/test/roc_driver.c', | |
216 ], | |
217 }, | |
218 { | |
219 'target_name': 'replay_driver', | |
220 'type': 'executable', | |
221 'dependencies': [ | |
222 'libsrtp', | |
223 ], | |
224 'sources': [ | |
225 'srtp/crypto/include/rdbx.h', | |
226 'srtp/include/ut_sim.h', | |
227 'srtp/test/replay_driver.c', | |
228 ], | |
229 }, | |
230 { | |
231 'target_name': 'rtpw', | |
232 'type': 'executable', | |
233 'dependencies': [ | |
234 'libsrtp', | |
235 ], | |
236 'sources': [ | |
237 'srtp/include/getopt_s.h', | |
238 'srtp/include/rtp.h', | |
239 'srtp/include/srtp.h', | |
240 'srtp/crypto/include/datatypes.h', | |
241 'srtp/test/getopt_s.c', | |
242 'srtp/test/rtp.c', | |
243 'srtp/test/rtpw.c', | |
244 ], | |
245 'conditions': [ | |
246 ['OS=="android"', { | |
247 'defines': [ | |
248 'HAVE_SYS_SOCKET_H', | |
249 ], | |
250 }], | |
251 ], | |
252 }, | |
253 { | |
254 'target_name': 'srtp_test_cipher_driver', | |
255 'type': 'executable', | |
256 'dependencies': [ | |
257 'libsrtp', | |
258 ], | |
259 'sources': [ | |
260 'srtp/crypto/test/cipher_driver.c', | |
261 ], | |
262 }, | |
263 { | |
264 'target_name': 'srtp_test_datatypes_driver', | |
265 'type': 'executable', | |
266 'dependencies': [ | |
267 'libsrtp', | |
268 ], | |
269 'sources': [ | |
270 'srtp/crypto/test/datatypes_driver.c', | |
271 ], | |
272 }, | |
273 { | |
274 'target_name': 'srtp_test_stat_driver', | |
275 'type': 'executable', | |
276 'dependencies': [ | |
277 'libsrtp', | |
278 ], | |
279 'sources': [ | |
280 'srtp/crypto/test/stat_driver.c', | |
281 ], | |
282 }, | |
283 { | |
284 'target_name': 'srtp_test_sha1_driver', | |
285 'type': 'executable', | |
286 'dependencies': [ | |
287 'libsrtp', | |
288 ], | |
289 'sources': [ | |
290 'srtp/crypto/test/sha1_driver.c', | |
291 ], | |
292 }, | |
293 { | |
294 'target_name': 'srtp_test_kernel_driver', | |
295 'type': 'executable', | |
296 'dependencies': [ | |
297 'libsrtp', | |
298 ], | |
299 'sources': [ | |
300 'srtp/crypto/test/kernel_driver.c', | |
301 ], | |
302 }, | |
303 { | |
304 'target_name': 'srtp_test_aes_calc', | |
305 'type': 'executable', | |
306 'dependencies': [ | |
307 'libsrtp', | |
308 ], | |
309 'sources': [ | |
310 'srtp/crypto/test/aes_calc.c', | |
311 ], | |
312 }, | |
313 { | |
314 'target_name': 'srtp_test_rand_gen', | |
315 'type': 'executable', | |
316 'dependencies': [ | |
317 'libsrtp', | |
318 ], | |
319 'sources': [ | |
320 'srtp/crypto/test/rand_gen.c', | |
321 ], | |
322 }, | |
323 { | |
324 'target_name': 'srtp_test_env', | |
325 'type': 'executable', | |
326 'dependencies': [ | |
327 'libsrtp', | |
328 ], | |
329 'sources': [ | |
330 'srtp/crypto/test/env.c', | |
331 ], | |
332 }, | |
333 { | |
334 'target_name': 'srtp_runtest', | |
335 'type': 'none', | |
336 'dependencies': [ | |
337 'rdbx_driver', | |
338 'srtp_driver', | |
339 'roc_driver', | |
340 'replay_driver', | |
341 'rtpw', | |
342 'srtp_test_cipher_driver', | |
343 'srtp_test_datatypes_driver', | |
344 'srtp_test_stat_driver', | |
345 'srtp_test_sha1_driver', | |
346 'srtp_test_kernel_driver', | |
347 'srtp_test_aes_calc', | |
348 'srtp_test_rand_gen', | |
349 'srtp_test_env', | |
350 ], | |
351 'actions': [{ | |
352 'action_name': 'help', | |
353 'inputs': [''], | |
354 'outputs': [''], | |
355 'action': [ | |
356 'python', '-c', | |
357 'print "Please run srtp tests on the target, for example, on linux"; \ | |
358 print " rdbx_driver"; \ | |
359 print " srtp_driver"; \ | |
360 print " roc_driver"; \ | |
361 print " replay_driver"; \ | |
362 print " rtpw"; \ | |
363 print " srtp_test_aes_calc \ | |
364 000102030405060708090a0b0c0d0e0f \ | |
365 00112233445566778899aabbccddeeff "; \ | |
366 print " (srtp_test_aes_calc output should be 69c4e0d86a7b0430d8cdb 78070b4c55a)"; \ | |
367 print " srtp_test_cipher_driver -v"; \ | |
368 print " srtp_test_datatypes_driver -v"; \ | |
369 print " srtp_test_stat_driver"; \ | |
370 print " srtp_test_sha1_driver -v"; \ | |
371 print " srtp_test_kernel_driver -v"; \ | |
372 print " srtp_test_rand_gen -n 256"; \ | |
373 print "";' ], | |
374 }], | |
166 }, | 375 }, |
167 ], # targets | 376 ], # targets |
168 } | 377 } |
169 | 378 |
170 # Local Variables: | 379 # Local Variables: |
171 # tab-width:2 | 380 # tab-width:2 |
172 # indent-tabs-mode:nil | 381 # indent-tabs-mode:nil |
173 # End: | 382 # End: |
174 # vim: set expandtab tabstop=2 shiftwidth=2: | 383 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |