ya.make 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. # Generated by devtools/yamaker from nixpkgs 22.11.
  2. LIBRARY()
  3. LICENSE(
  4. Apache-2.0 AND
  5. Custom-Oasis-Pkcs11
  6. )
  7. LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
  8. VERSION(0.13.21)
  9. ORIGINAL_SOURCE(https://github.com/awslabs/aws-c-io/archive/v0.13.21.tar.gz)
  10. PEERDIR(
  11. contrib/restricted/aws/aws-c-cal
  12. contrib/restricted/aws/aws-c-common
  13. )
  14. ADDINCL(
  15. GLOBAL contrib/restricted/aws/aws-c-io/include
  16. )
  17. NO_COMPILER_WARNINGS()
  18. NO_RUNTIME()
  19. CFLAGS(
  20. -DAWS_CAL_USE_IMPORT_EXPORT
  21. -DAWS_COMMON_USE_IMPORT_EXPORT
  22. -DAWS_IO_USE_IMPORT_EXPORT
  23. -DAWS_USE_EPOLL
  24. -DHAVE_SYSCONF
  25. -DS2N_CLONE_SUPPORTED
  26. -DS2N_CPUID_AVAILABLE
  27. -DS2N_FALL_THROUGH_SUPPORTED
  28. -DS2N_FEATURES_AVAILABLE
  29. -DS2N_KYBER512R3_AVX2_BMI2
  30. -DS2N_LIBCRYPTO_SUPPORTS_EVP_MD5_SHA1_HASH
  31. -DS2N_LIBCRYPTO_SUPPORTS_EVP_MD_CTX_SET_PKEY_CTX
  32. -DS2N_LIBCRYPTO_SUPPORTS_EVP_RC4
  33. -DS2N_MADVISE_SUPPORTED
  34. -DS2N_STACKTRACE
  35. -DS2N___RESTRICT__SUPPORTED
  36. )
  37. IF (CLANG_CL)
  38. CFLAGS(
  39. -DAWS_IO_EXPORTS
  40. -DAWS_USE_IO_COMPLETION_PORTS
  41. -std=c99
  42. )
  43. ELSEIF (OS_WINDOWS)
  44. CFLAGS(
  45. -DAWS_IO_EXPORTS
  46. -DAWS_USE_IO_COMPLETION_PORTS
  47. )
  48. ELSE()
  49. PEERDIR(
  50. contrib/restricted/aws/s2n
  51. )
  52. CFLAGS(
  53. -DUSE_S2N
  54. )
  55. ENDIF()
  56. SRCS(
  57. source/alpn_handler.c
  58. source/channel.c
  59. source/channel_bootstrap.c
  60. source/event_loop.c
  61. source/exponential_backoff_retry_strategy.c
  62. source/host_resolver.c
  63. source/io.c
  64. source/message_pool.c
  65. source/pem_utils.c
  66. source/pkcs11_lib.c
  67. source/pkcs11_tls_op_handler.c
  68. source/pki_utils.c
  69. source/retry_strategy.c
  70. source/socket_channel_handler.c
  71. source/standard_retry_strategy.c
  72. source/statistics.c
  73. source/stream.c
  74. source/tls_channel_handler.c
  75. source/tls_channel_handler_shared.c
  76. )
  77. IF (OS_DARWIN)
  78. SRCS(
  79. source/bsd/kqueue_event_loop.c
  80. source/posix/host_resolver.c
  81. source/posix/pipe.c
  82. source/posix/shared_library.c
  83. source/posix/socket.c
  84. source/s2n/s2n_tls_channel_handler.c
  85. )
  86. ELSEIF (OS_LINUX)
  87. SRCS(
  88. source/linux/epoll_event_loop.c
  89. source/posix/host_resolver.c
  90. source/posix/pipe.c
  91. source/posix/shared_library.c
  92. source/posix/socket.c
  93. source/s2n/s2n_tls_channel_handler.c
  94. )
  95. ENDIF()
  96. END()