pk11_gtest.gyp 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # This Source Code Form is subject to the terms of the Mozilla Public
  2. # License, v. 2.0. If a copy of the MPL was not distributed with this
  3. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  4. {
  5. 'includes': [
  6. '../../coreconf/config.gypi',
  7. '../common/gtest.gypi',
  8. ],
  9. 'targets': [
  10. {
  11. 'target_name': 'pk11_gtest',
  12. 'type': 'executable',
  13. 'sources': [
  14. 'pk11_aes_cmac_unittest.cc',
  15. 'pk11_aes_gcm_unittest.cc',
  16. 'pk11_aeskeywrap_unittest.cc',
  17. 'pk11_aeskeywrapkwp_unittest.cc',
  18. 'pk11_aeskeywrappad_unittest.cc',
  19. 'pk11_cbc_unittest.cc',
  20. 'pk11_chacha20poly1305_unittest.cc',
  21. 'pk11_cipherop_unittest.cc',
  22. 'pk11_curve25519_unittest.cc',
  23. 'pk11_der_private_key_import_unittest.cc',
  24. 'pk11_des_unittest.cc',
  25. 'pk11_ecdsa_unittest.cc',
  26. 'pk11_ecdh_unittest.cc',
  27. 'pk11_encrypt_derive_unittest.cc',
  28. 'pk11_find_certs_unittest.cc',
  29. 'pk11_hkdf_unittest.cc',
  30. 'pk11_import_unittest.cc',
  31. 'pk11_kbkdf.cc',
  32. 'pk11_keygen.cc',
  33. 'pk11_key_unittest.cc',
  34. 'pk11_module_unittest.cc',
  35. 'pk11_pbkdf2_unittest.cc',
  36. 'pk11_prf_unittest.cc',
  37. 'pk11_prng_unittest.cc',
  38. 'pk11_rsaencrypt_unittest.cc',
  39. 'pk11_rsaoaep_unittest.cc',
  40. 'pk11_rsapkcs1_unittest.cc',
  41. 'pk11_rsapss_unittest.cc',
  42. 'pk11_seed_cbc_unittest.cc',
  43. '<(DEPTH)/gtests/common/gtests.cc'
  44. ],
  45. 'dependencies': [
  46. '<(DEPTH)/exports.gyp:nss_exports',
  47. '<(DEPTH)/cpputil/cpputil.gyp:cpputil',
  48. '<(DEPTH)/gtests/google_test/google_test.gyp:gtest',
  49. '<(DEPTH)/lib/util/util.gyp:nssutil3',
  50. ],
  51. 'conditions': [
  52. [ 'static_libs==1', {
  53. 'dependencies': [
  54. '<(DEPTH)/lib/base/base.gyp:nssb',
  55. '<(DEPTH)/lib/certdb/certdb.gyp:certdb',
  56. '<(DEPTH)/lib/certhigh/certhigh.gyp:certhi',
  57. '<(DEPTH)/lib/cryptohi/cryptohi.gyp:cryptohi',
  58. '<(DEPTH)/lib/dev/dev.gyp:nssdev',
  59. '<(DEPTH)/lib/nss/nss.gyp:nss_static',
  60. '<(DEPTH)/lib/pk11wrap/pk11wrap.gyp:pk11wrap_static',
  61. '<(DEPTH)/lib/pki/pki.gyp:nsspki',
  62. '<(DEPTH)/lib/ssl/ssl.gyp:ssl',
  63. '<(DEPTH)/lib/libpkix/libpkix.gyp:libpkix',
  64. ],
  65. }, {
  66. 'dependencies': [
  67. '<(DEPTH)/lib/nss/nss.gyp:nss3',
  68. '<(DEPTH)/lib/ssl/ssl.gyp:ssl3',
  69. ],
  70. }],
  71. ],
  72. }
  73. ],
  74. 'target_defaults': {
  75. 'defines': [
  76. 'DLL_PREFIX=\"<(dll_prefix)\"',
  77. 'DLL_SUFFIX=\"<(dll_suffix)\"'
  78. ]
  79. },
  80. 'variables': {
  81. 'module': 'nss'
  82. }
  83. }