ya.make 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. SRCS(
  25. source/cal.c
  26. source/der.c
  27. source/ecc.c
  28. source/hash.c
  29. source/hmac.c
  30. source/symmetric_cipher.c
  31. )
  32. IF (OS_DARWIN)
  33. LDFLAGS(
  34. -framework
  35. Security
  36. )
  37. SRCS(
  38. source/darwin/common_cryptor_spi.h
  39. source/darwin/commoncrypto_aes.c
  40. source/darwin/commoncrypto_hmac.c
  41. source/darwin/commoncrypto_md5.c
  42. source/darwin/commoncrypto_platform_init.c
  43. source/darwin/commoncrypto_sha1.c
  44. source/darwin/commoncrypto_sha256.c
  45. source/darwin/securityframework_ecc.c
  46. )
  47. ELSEIF (OS_LINUX)
  48. SRCS(
  49. source/unix/openssl_aes.c
  50. source/unix/openssl_platform_init.c
  51. source/unix/opensslcrypto_ecc.c
  52. source/unix/opensslcrypto_hash.c
  53. source/unix/opensslcrypto_hmac.c
  54. )
  55. ENDIF()
  56. END()