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