ya.make 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # Generated by devtools/yamaker from nixpkgs 22.11.
  2. LIBRARY()
  3. LICENSE(
  4. APSL-2.0 AND
  5. Apache-2.0
  6. )
  7. LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
  8. VERSION(0.5.26)
  9. ORIGINAL_SOURCE(https://github.com/awslabs/aws-c-cal/archive/v0.5.26.tar.gz)
  10. PEERDIR(
  11. contrib/libs/openssl
  12. contrib/restricted/aws/aws-c-common
  13. )
  14. ADDINCL(
  15. GLOBAL contrib/restricted/aws/aws-c-cal/include
  16. )
  17. NO_COMPILER_WARNINGS()
  18. NO_RUNTIME()
  19. CFLAGS(
  20. -DAWS_CAL_USE_IMPORT_EXPORT
  21. -DAWS_COMMON_USE_IMPORT_EXPORT
  22. -DHAVE_SYSCONF
  23. )
  24. IF (OS_WINDOWS)
  25. CFLAGS(
  26. -DAWS_CAL_EXPORTS
  27. )
  28. ENDIF()
  29. SRCS(
  30. source/cal.c
  31. source/der.c
  32. source/ecc.c
  33. source/hash.c
  34. source/hmac.c
  35. source/symmetric_cipher.c
  36. )
  37. IF (OS_DARWIN)
  38. LDFLAGS(
  39. -framework
  40. Security
  41. )
  42. SRCS(
  43. source/darwin/common_cryptor_spi.h
  44. source/darwin/commoncrypto_aes.c
  45. source/darwin/commoncrypto_hmac.c
  46. source/darwin/commoncrypto_md5.c
  47. source/darwin/commoncrypto_platform_init.c
  48. source/darwin/commoncrypto_sha1.c
  49. source/darwin/commoncrypto_sha256.c
  50. source/darwin/securityframework_ecc.c
  51. )
  52. ELSEIF (OS_LINUX)
  53. SRCS(
  54. source/unix/openssl_aes.c
  55. source/unix/openssl_platform_init.c
  56. source/unix/opensslcrypto_ecc.c
  57. source/unix/opensslcrypto_hash.c
  58. source/unix/opensslcrypto_hmac.c
  59. )
  60. ELSEIF (OS_WINDOWS)
  61. SRCS(
  62. source/windows/bcrypt_aes.c
  63. source/windows/bcrypt_ecc.c
  64. source/windows/bcrypt_hash.c
  65. source/windows/bcrypt_hmac.c
  66. source/windows/bcrypt_platform_init.c
  67. )
  68. ENDIF()
  69. END()