| 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 'variables': { | 6 'variables': { |
| 7 'use_system_libsrtp%': 0, | 7 'use_system_libsrtp%': 0, |
| 8 'use_openssl': 1, |
| 8 }, | 9 }, |
| 9 'target_defaults': { | 10 'target_defaults': { |
| 10 'defines': [ | 11 'defines': [ |
| 12 'HAVE_CONFIG_H', |
| 11 'HAVE_STDLIB_H', | 13 'HAVE_STDLIB_H', |
| 12 'HAVE_STRING_H', | 14 'HAVE_STRING_H', |
| 15 'TESTAPP_SOURCE', |
| 13 ], | 16 ], |
| 14 'include_dirs': [ | 17 'include_dirs': [ |
| 15 './config', | 18 './config', |
| 16 'srtp/include', | 19 'srtp/include', |
| 17 'srtp/crypto/include', | 20 'srtp/crypto/include', |
| 18 ], | 21 ], |
| 19 'conditions': [ | 22 'conditions': [ |
| 23 ['use_openssl==1', { |
| 24 'defines': [ |
| 25 'OPENSSL', |
| 26 ], |
| 27 }], |
| 20 ['os_posix==1', { | 28 ['os_posix==1', { |
| 21 'defines': [ | 29 'defines': [ |
| 22 'HAVE_INT16_T', | 30 'HAVE_INT16_T', |
| 23 'HAVE_INT32_T', | 31 'HAVE_INT32_T', |
| 24 'HAVE_INT8_T', | 32 'HAVE_INT8_T', |
| 25 'HAVE_UINT16_T', | 33 'HAVE_UINT16_T', |
| 26 'HAVE_UINT32_T', | 34 'HAVE_UINT32_T', |
| 27 'HAVE_UINT64_T', | 35 'HAVE_UINT64_T', |
| 28 'HAVE_UINT8_T', | 36 'HAVE_UINT8_T', |
| 29 'HAVE_STDINT_H', | 37 'HAVE_STDINT_H', |
| 30 'HAVE_INTTYPES_H', | 38 'HAVE_INTTYPES_H', |
| 31 'HAVE_NETINET_IN_H', | 39 'HAVE_NETINET_IN_H', |
| 32 'INLINE=inline', | 40 'HAVE_ARPA_INET_H', |
| 41 'HAVE_UNISTD_H', |
| 42 ], |
| 43 'cflags': [ |
| 44 '-Wno-unused-variable', |
| 33 ], | 45 ], |
| 34 }], | 46 }], |
| 35 ['OS=="win"', { | 47 ['OS=="win"', { |
| 36 'defines': [ | 48 'defines': [ |
| 37 'INLINE=__inline', | |
| 38 'HAVE_BYTESWAP_METHODS_H', | 49 'HAVE_BYTESWAP_METHODS_H', |
| 39 # All Windows architectures are this way. | 50 # All Windows architectures are this way. |
| 40 'SIZEOF_UNSIGNED_LONG=4', | 51 'SIZEOF_UNSIGNED_LONG=4', |
| 41 'SIZEOF_UNSIGNED_LONG_LONG=8', | 52 'SIZEOF_UNSIGNED_LONG_LONG=8', |
| 42 ], | 53 ], |
| 43 }], | 54 }], |
| 44 ['target_arch=="x64" or target_arch=="ia32"', { | 55 ['target_arch=="x64" or target_arch=="ia32"', { |
| 45 'defines': [ | 56 'defines': [ |
| 46 'CPU_CISC', | 57 'CPU_CISC', |
| 47 ], | 58 ], |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 'HAVE_INT16_T', | 91 'HAVE_INT16_T', |
| 81 'HAVE_INT32_T', | 92 'HAVE_INT32_T', |
| 82 'HAVE_INT8_T', | 93 'HAVE_INT8_T', |
| 83 'HAVE_UINT16_T', | 94 'HAVE_UINT16_T', |
| 84 'HAVE_UINT32_T', | 95 'HAVE_UINT32_T', |
| 85 'HAVE_UINT64_T', | 96 'HAVE_UINT64_T', |
| 86 'HAVE_UINT8_T', | 97 'HAVE_UINT8_T', |
| 87 'HAVE_STDINT_H', | 98 'HAVE_STDINT_H', |
| 88 'HAVE_INTTYPES_H', | 99 'HAVE_INTTYPES_H', |
| 89 'HAVE_NETINET_IN_H', | 100 'HAVE_NETINET_IN_H', |
| 90 'INLINE=inline', | |
| 91 ], | 101 ], |
| 92 }], | 102 }], |
| 93 ['OS=="win"', { | 103 ['OS=="win"', { |
| 94 'defines': [ | 104 'defines': [ |
| 95 'INLINE=__inline', | |
| 96 'HAVE_BYTESWAP_METHODS_H', | 105 'HAVE_BYTESWAP_METHODS_H', |
| 97 # All Windows architectures are this way. | 106 # All Windows architectures are this way. |
| 98 'SIZEOF_UNSIGNED_LONG=4', | 107 'SIZEOF_UNSIGNED_LONG=4', |
| 99 'SIZEOF_UNSIGNED_LONG_LONG=8', | 108 'SIZEOF_UNSIGNED_LONG_LONG=8', |
| 100 ], | 109 ], |
| 101 }], | 110 }], |
| 102 ['target_arch=="x64" or target_arch=="ia32"', { | 111 ['target_arch=="x64" or target_arch=="ia32"', { |
| 103 'defines': [ | 112 'defines': [ |
| 104 'CPU_CISC', | 113 'CPU_CISC', |
| 105 ], | 114 ], |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 'srtp/crypto/math/datatypes.c', | 181 'srtp/crypto/math/datatypes.c', |
| 173 'srtp/crypto/math/gf2_8.c', | 182 'srtp/crypto/math/gf2_8.c', |
| 174 'srtp/crypto/math/stat.c', | 183 'srtp/crypto/math/stat.c', |
| 175 'srtp/crypto/replay/rdb.c', | 184 'srtp/crypto/replay/rdb.c', |
| 176 'srtp/crypto/replay/rdbx.c', | 185 'srtp/crypto/replay/rdbx.c', |
| 177 'srtp/crypto/replay/ut_sim.c', | 186 'srtp/crypto/replay/ut_sim.c', |
| 178 'srtp/crypto/rng/ctr_prng.c', | 187 'srtp/crypto/rng/ctr_prng.c', |
| 179 'srtp/crypto/rng/prng.c', | 188 'srtp/crypto/rng/prng.c', |
| 180 'srtp/crypto/rng/rand_source.c', | 189 'srtp/crypto/rng/rand_source.c', |
| 181 ], | 190 ], |
| 191 'conditions': [ |
| 192 ['use_openssl==1', { |
| 193 'dependencies': [ |
| 194 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl', |
| 195 ], |
| 196 'sources!': [ |
| 197 'srtp/crypto/cipher/aes_cbc.c', |
| 198 'srtp/crypto/cipher/aes_icm.c', |
| 199 'srtp/crypto/hash/hmac.c', |
| 200 'srtp/crypto/hash/sha1.c', |
| 201 'srtp/crypto/rng/ctr_prng.c', |
| 202 'srtp/crypto/rng/prng.c', |
| 203 'srtp/crypto/rng/rand_source.c', |
| 204 ], |
| 205 'sources': [ |
| 206 'srtp/crypto/cipher/aes_gcm_ossl.c', |
| 207 'srtp/crypto/cipher/aes_icm_ossl.c', |
| 208 'srtp/crypto/hash/hmac_ossl.c', |
| 209 'srtp/crypto/include/aes_gcm_ossl.h', |
| 210 'srtp/crypto/include/aes_icm_ossl.h', |
| 211 'srtp/crypto/rng/rand_source_ossl.c', |
| 212 ], |
| 213 }], |
| 214 ], |
| 182 }, # target libsrtp | 215 }, # target libsrtp |
| 183 { | 216 { |
| 184 'target_name': 'rdbx_driver', | 217 'target_name': 'rdbx_driver', |
| 185 'type': 'executable', | 218 'type': 'executable', |
| 186 'dependencies': [ | 219 'dependencies': [ |
| 187 'libsrtp', | 220 'libsrtp', |
| 188 ], | 221 ], |
| 189 'sources': [ | 222 'sources': [ |
| 190 'srtp/include/getopt_s.h', | 223 'srtp/include/getopt_s.h', |
| 191 'srtp/test/getopt_s.c', | 224 'srtp/test/getopt_s.c', |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 }, | 287 }, |
| 255 { | 288 { |
| 256 'target_name': 'srtp_test_cipher_driver', | 289 'target_name': 'srtp_test_cipher_driver', |
| 257 'type': 'executable', | 290 'type': 'executable', |
| 258 'dependencies': [ | 291 'dependencies': [ |
| 259 'libsrtp', | 292 'libsrtp', |
| 260 ], | 293 ], |
| 261 'sources': [ | 294 'sources': [ |
| 262 'srtp/crypto/test/cipher_driver.c', | 295 'srtp/crypto/test/cipher_driver.c', |
| 263 ], | 296 ], |
| 297 'conditions': [ |
| 298 ['use_openssl==1', { |
| 299 'dependencies': [ |
| 300 '<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl', |
| 301 ], |
| 302 }], |
| 303 ], |
| 264 }, | 304 }, |
| 265 { | 305 { |
| 266 'target_name': 'srtp_test_datatypes_driver', | 306 'target_name': 'srtp_test_datatypes_driver', |
| 267 'type': 'executable', | 307 'type': 'executable', |
| 268 'dependencies': [ | 308 'dependencies': [ |
| 269 'libsrtp', | 309 'libsrtp', |
| 270 ], | 310 ], |
| 271 'sources': [ | 311 'sources': [ |
| 272 'srtp/crypto/test/datatypes_driver.c', | 312 'srtp/crypto/test/datatypes_driver.c', |
| 273 ], | 313 ], |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 'target_name': 'srtp_test_rand_gen', | 356 'target_name': 'srtp_test_rand_gen', |
| 317 'type': 'executable', | 357 'type': 'executable', |
| 318 'dependencies': [ | 358 'dependencies': [ |
| 319 'libsrtp', | 359 'libsrtp', |
| 320 ], | 360 ], |
| 321 'sources': [ | 361 'sources': [ |
| 322 'srtp/crypto/test/rand_gen.c', | 362 'srtp/crypto/test/rand_gen.c', |
| 323 ], | 363 ], |
| 324 }, | 364 }, |
| 325 { | 365 { |
| 366 'target_name': 'srtp_test_rand_gen_soak', |
| 367 'type': 'executable', |
| 368 'dependencies': [ |
| 369 'libsrtp', |
| 370 ], |
| 371 'sources': [ |
| 372 'srtp/crypto/test/rand_gen_soak.c', |
| 373 ], |
| 374 }, |
| 375 { |
| 326 'target_name': 'srtp_test_env', | 376 'target_name': 'srtp_test_env', |
| 327 'type': 'executable', | 377 'type': 'executable', |
| 328 'dependencies': [ | 378 'dependencies': [ |
| 329 'libsrtp', | 379 'libsrtp', |
| 330 ], | 380 ], |
| 331 'sources': [ | 381 'sources': [ |
| 332 'srtp/crypto/test/env.c', | 382 'srtp/crypto/test/env.c', |
| 333 ], | 383 ], |
| 334 }, | 384 }, |
| 335 { | 385 { |
| 336 'target_name': 'srtp_runtest', | 386 'target_name': 'srtp_runtest', |
| 337 'type': 'none', | 387 'type': 'none', |
| 338 'dependencies': [ | 388 'dependencies': [ |
| 339 'rdbx_driver', | 389 'rdbx_driver', |
| 340 'srtp_driver', | 390 'srtp_driver', |
| 341 'roc_driver', | 391 'roc_driver', |
| 342 'replay_driver', | 392 'replay_driver', |
| 343 'rtpw', | 393 'rtpw', |
| 344 'srtp_test_cipher_driver', | 394 'srtp_test_cipher_driver', |
| 345 'srtp_test_datatypes_driver', | 395 'srtp_test_datatypes_driver', |
| 346 'srtp_test_stat_driver', | 396 'srtp_test_stat_driver', |
| 347 'srtp_test_sha1_driver', | 397 'srtp_test_sha1_driver', |
| 348 'srtp_test_kernel_driver', | 398 'srtp_test_kernel_driver', |
| 349 'srtp_test_aes_calc', | 399 'srtp_test_aes_calc', |
| 350 'srtp_test_rand_gen', | 400 'srtp_test_rand_gen', |
| 401 'srtp_test_rand_gen_soak', |
| 351 'srtp_test_env', | 402 'srtp_test_env', |
| 352 ], | 403 ], |
| 353 }, | 404 }, |
| 354 ], # targets | 405 ], # targets |
| 355 }, { # use_system_libsrtp==1 | 406 }, { # use_system_libsrtp==1 |
| 356 'targets': [ | 407 'targets': [ |
| 357 { | 408 { |
| 358 'target_name': 'libsrtp', | 409 'target_name': 'libsrtp', |
| 359 'type': 'none', | 410 'type': 'none', |
| 360 'direct_dependent_settings': { | 411 'direct_dependent_settings': { |
| 361 'defines': [ | 412 'defines': [ |
| 362 'USE_SYSTEM_LIBSRTP', | 413 'USE_SYSTEM_LIBSRTP', |
| 363 ], | 414 ], |
| 364 'include_dirs': [ | 415 'include_dirs': [ |
| 365 '/usr/include/srtp', | 416 '/usr/include/srtp', |
| 366 ], | 417 ], |
| 367 }, | 418 }, |
| 368 'link_settings': { | 419 'link_settings': { |
| 369 'libraries': [ | 420 'libraries': [ |
| 370 '-lsrtp', | 421 '-lsrtp', |
| 371 ], | 422 ], |
| 372 }, | 423 }, |
| 373 }, # target libsrtp | 424 }, # target libsrtp |
| 374 ], # targets | 425 ], # targets |
| 375 }], | 426 }], |
| 376 ], | 427 ], |
| 377 } | 428 } |
| OLD | NEW |