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