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 'CPU_CISC', |
|
leozwang
2012/04/04 16:39:32
CPU_CISC is used for arm now. CPU_RISC is the caus
| |
| 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', | |
|
leozwang
2012/04/04 16:39:32
I have to add these defines to make it compile on
| |
| 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', |
| 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': 'libcryptomodule', | |
|
Mallinath (Gone from Chromium)
2012/04/04 16:45:46
Why do you need one more target, compiling same fi
leozwang
2012/04/04 16:53:11
One reason is its from original makefile, another
Mallinath (Gone from Chromium)
2012/04/05 16:37:14
I would prefer having the single target. If there
| |
| 255 'type': 'static_library', | |
| 256 'sources': [ | |
| 257 # headers | |
| 258 'srtp/crypto/include/aes_cbc.h', | |
| 259 'srtp/crypto/include/aes.h', | |
| 260 'srtp/crypto/include/aes_icm.h', | |
| 261 'srtp/crypto/include/alloc.h', | |
| 262 'srtp/crypto/include/auth.h', | |
| 263 'srtp/crypto/include/cipher.h', | |
| 264 'srtp/crypto/include/cryptoalg.h', | |
| 265 'srtp/crypto/include/crypto.h', | |
| 266 'srtp/crypto/include/crypto_kernel.h', | |
| 267 'srtp/crypto/include/crypto_math.h', | |
| 268 'srtp/crypto/include/crypto_types.h', | |
| 269 'srtp/crypto/include/datatypes.h', | |
| 270 'srtp/crypto/include/err.h', | |
| 271 'srtp/crypto/include/gf2_8.h', | |
| 272 'srtp/crypto/include/hmac.h', | |
| 273 'srtp/crypto/include/integers.h', | |
| 274 'srtp/crypto/include/kernel_compat.h', | |
| 275 'srtp/crypto/include/key.h', | |
| 276 'srtp/crypto/include/null_auth.h', | |
| 277 'srtp/crypto/include/null_cipher.h', | |
| 278 'srtp/crypto/include/prng.h', | |
| 279 'srtp/crypto/include/rand_source.h', | |
| 280 'srtp/crypto/include/rdb.h', | |
| 281 'srtp/crypto/include/rdbx.h', | |
| 282 'srtp/crypto/include/sha1.h', | |
| 283 'srtp/crypto/include/stat.h', | |
| 284 'srtp/crypto/include/xfm.h', | |
| 285 | |
| 286 # sources | |
| 287 'srtp/crypto/cipher/aes.c', | |
| 288 'srtp/crypto/cipher/aes_cbc.c', | |
| 289 'srtp/crypto/cipher/aes_icm.c', | |
| 290 'srtp/crypto/cipher/cipher.c', | |
| 291 'srtp/crypto/cipher/null_cipher.c', | |
| 292 'srtp/crypto/hash/auth.c', | |
| 293 'srtp/crypto/hash/hmac.c', | |
| 294 'srtp/crypto/hash/null_auth.c', | |
| 295 'srtp/crypto/hash/sha1.c', | |
| 296 'srtp/crypto/kernel/alloc.c', | |
| 297 'srtp/crypto/kernel/crypto_kernel.c', | |
| 298 'srtp/crypto/kernel/err.c', | |
| 299 'srtp/crypto/kernel/key.c', | |
| 300 'srtp/crypto/math/datatypes.c', | |
| 301 'srtp/crypto/math/stat.c', | |
| 302 'srtp/crypto/rng/ctr_prng.c', | |
| 303 'srtp/crypto/ae_xfm/xfm.c', | |
| 304 'srtp/crypto/rng/prng.c', | |
| 305 'srtp/crypto/rng/rand_source.c', | |
| 306 ], | |
| 307 }, # target libcryptomodule | |
| 308 { | |
| 309 'target_name': 'srtp_test_cipher_driver', | |
| 310 'type': 'executable', | |
| 311 'dependencies': [ | |
| 312 'libcryptomodule', | |
| 313 ], | |
| 314 'sources': [ | |
| 315 'srtp/crypto/test/cipher_driver.c', | |
| 316 ], | |
| 317 }, | |
| 318 { | |
| 319 'target_name': 'srtp_test_datatypes_driver', | |
| 320 'type': 'executable', | |
| 321 'dependencies': [ | |
| 322 'libcryptomodule', | |
| 323 ], | |
| 324 'sources': [ | |
| 325 'srtp/crypto/test/datatypes_driver.c', | |
| 326 ], | |
| 327 }, | |
| 328 { | |
| 329 'target_name': 'srtp_test_stat_driver', | |
| 330 'type': 'executable', | |
| 331 'dependencies': [ | |
| 332 'libcryptomodule', | |
| 333 ], | |
| 334 'sources': [ | |
| 335 'srtp/crypto/test/stat_driver.c', | |
| 336 ], | |
| 337 }, | |
| 338 { | |
| 339 'target_name': 'srtp_test_sha1_driver', | |
| 340 'type': 'executable', | |
| 341 'dependencies': [ | |
| 342 'libcryptomodule', | |
| 343 ], | |
| 344 'sources': [ | |
| 345 'srtp/crypto/test/sha1_driver.c', | |
| 346 ], | |
| 347 }, | |
| 348 { | |
| 349 'target_name': 'srtp_test_kernel_driver', | |
| 350 'type': 'executable', | |
| 351 'dependencies': [ | |
| 352 'libcryptomodule', | |
| 353 ], | |
| 354 'sources': [ | |
| 355 'srtp/crypto/test/kernel_driver.c', | |
| 356 ], | |
| 357 }, | |
| 358 { | |
| 359 'target_name': 'srtp_test_aes_calc', | |
| 360 'type': 'executable', | |
| 361 'dependencies': [ | |
| 362 'libcryptomodule', | |
| 363 ], | |
| 364 'sources': [ | |
| 365 'srtp/crypto/test/aes_calc.c', | |
| 366 ], | |
| 367 }, | |
| 368 { | |
| 369 'target_name': 'srtp_test_rand_gen', | |
| 370 'type': 'executable', | |
| 371 'dependencies': [ | |
| 372 'libcryptomodule', | |
| 373 ], | |
| 374 'sources': [ | |
| 375 'srtp/crypto/test/rand_gen.c', | |
| 376 ], | |
| 377 }, | |
| 378 { | |
| 379 'target_name': 'srtp_test_env', | |
| 380 'type': 'executable', | |
| 381 'dependencies': [ | |
| 382 'libcryptomodule', | |
| 383 ], | |
| 384 'sources': [ | |
| 385 'srtp/crypto/test/env.c', | |
| 386 ], | |
| 387 }, | |
| 388 { | |
| 389 'target_name': 'srtp_runtest', | |
| 390 'type': 'none', | |
| 391 'dependencies': [ | |
| 392 'rdbx_driver', | |
| 393 'srtp_driver', | |
| 394 'roc_driver', | |
| 395 'replay_driver', | |
| 396 'rtpw', | |
| 397 'srtp_test_cipher_driver', | |
| 398 'srtp_test_datatypes_driver', | |
| 399 'srtp_test_stat_driver', | |
| 400 'srtp_test_sha1_driver', | |
| 401 'srtp_test_kernel_driver', | |
| 402 'srtp_test_aes_calc', | |
| 403 'srtp_test_rand_gen', | |
| 404 'srtp_test_env', | |
| 405 ], | |
| 406 'actions': [{ | |
| 407 'action_name': 'help', | |
| 408 'inputs': [''], | |
| 409 'outputs': [''], | |
| 410 'action': [ | |
| 411 'python', '-c', | |
| 412 'print "Please run srtp tests on the target, for example, on linux"; \ | |
| 413 print " rdbx_driver"; \ | |
| 414 print " srtp_driver"; \ | |
| 415 print " roc_driver"; \ | |
| 416 print " replay_driver"; \ | |
| 417 print " rtpw"; \ | |
| 418 print " srtp_test_aes_calc \ | |
| 419 000102030405060708090a0b0c0d0e0f \ | |
| 420 00112233445566778899aabbccddeeff "; \ | |
| 421 print " (srtp_test_aes_calc output should be 69c4e0d86a7b0430d8cdb 78070b4c55a)"; \ | |
| 422 print " srtp_test_cipher_driver -v"; \ | |
| 423 print " srtp_test_datatypes_driver -v"; \ | |
| 424 print " srtp_test_stat_driver"; \ | |
| 425 print " srtp_test_sha1_driver -v"; \ | |
| 426 print " srtp_test_kernel_driver -v"; \ | |
| 427 print " srtp_test_rand_gen -n 256"; \ | |
| 428 print "";' ], | |
| 429 }], | |
| 166 }, | 430 }, |
| 167 ], # targets | 431 ], # targets |
| 168 } | 432 } |
| 169 | 433 |
| 170 # Local Variables: | 434 # Local Variables: |
| 171 # tab-width:2 | 435 # tab-width:2 |
| 172 # indent-tabs-mode:nil | 436 # indent-tabs-mode:nil |
| 173 # End: | 437 # End: |
| 174 # vim: set expandtab tabstop=2 shiftwidth=2: | 438 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |