ya.make 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. PROGRAM(openssl)
  2. VERSION(1.1.1t)
  3. LICENSE(
  4. OpenSSL AND
  5. Public-Domain
  6. )
  7. LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
  8. PEERDIR(
  9. contrib/libs/openssl
  10. contrib/libs/openssl/crypto
  11. library/cpp/sanitizer/include
  12. )
  13. ADDINCL(
  14. contrib/libs/openssl
  15. contrib/libs/openssl/apps
  16. contrib/libs/openssl/include
  17. )
  18. NO_COMPILER_WARNINGS()
  19. NO_RUNTIME()
  20. CFLAGS(
  21. -DAESNI_ASM
  22. -DECP_NISTZ256_ASM
  23. -DKECCAK1600_ASM
  24. -DOPENSSL_BN_ASM_MONT
  25. -DOPENSSL_CPUID_OBJ
  26. -DOPENSSL_PIC
  27. -DPOLY1305_ASM
  28. -DSHA1_ASM
  29. -DSHA256_ASM
  30. -DSHA512_ASM
  31. -DVPAES_ASM
  32. -DZLIB
  33. )
  34. IF (OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64)
  35. CFLAGS(
  36. -DENGINESDIR=\"/usr/local/lib/engines-1.1\"
  37. -DOPENSSLDIR=\"/usr/local/ssl\"
  38. )
  39. ENDIF()
  40. IF (OS_DARWIN AND ARCH_X86_64 OR OS_LINUX AND ARCH_X86_64 OR OS_WINDOWS AND ARCH_X86_64)
  41. CFLAGS(
  42. -DGHASH_ASM
  43. -DL_ENDIAN
  44. -DMD5_ASM
  45. -DOPENSSL_BN_ASM_GF2m
  46. -DOPENSSL_BN_ASM_MONT5
  47. -DOPENSSL_IA32_SSE2
  48. -DPADLOCK_ASM
  49. -DRC4_ASM
  50. -DX25519_ASM
  51. )
  52. ENDIF()
  53. IF (OS_LINUX AND ARCH_AARCH64 OR OS_LINUX AND ARCH_X86_64)
  54. CFLAGS(
  55. -DOPENSSL_USE_NODELETE
  56. )
  57. ENDIF()
  58. IF (OS_DARWIN AND ARCH_X86_64)
  59. CFLAGS(
  60. -D_REENTRANT
  61. )
  62. ENDIF()
  63. IF (OS_DARWIN AND ARCH_ARM64)
  64. CFLAGS(
  65. -DL_ENDIAN
  66. -DOPENSSL_PIC
  67. -D_REENTRANT
  68. )
  69. ENDIF()
  70. IF (OS_WINDOWS)
  71. IF (ARCH_X86_64)
  72. CFLAGS(
  73. -DENGINESDIR="\"C:\\\\Program\ Files\\\\OpenSSL\\\\lib\\\\engines-1_1\""
  74. -DOPENSSLDIR="\"C:\\\\Program\ Files\\\\Common\ Files\\\\SSL\""
  75. )
  76. ELSEIF (ARCH_I386)
  77. CFLAGS(
  78. -DENGINESDIR="\"C:\\\\Program\ Files\ \(x86\)\\\\OpenSSL\\\\lib\\\\engines-1_1\""
  79. -DOPENSSLDIR="\"C:\\\\Program\ Files\ \(x86\)\\\\Common\ Files\\\\SSL\""
  80. )
  81. LDFLAGS(
  82. /safeseh
  83. )
  84. ENDIF()
  85. CFLAGS(
  86. -DOPENSSL_SYS_WIN32
  87. -DUNICODE
  88. -DWIN32_LEAN_AND_MEAN
  89. -D_CRT_SECURE_NO_DEPRECATE
  90. -D_UNICODE
  91. -D_WINSOCK_DEPRECATED_NO_WARNINGS
  92. /GF
  93. )
  94. ENDIF()
  95. SRCS(
  96. app_rand.c
  97. apps.c
  98. asn1pars.c
  99. bf_prefix.c
  100. ca.c
  101. ciphers.c
  102. cms.c
  103. crl.c
  104. crl2p7.c
  105. dgst.c
  106. dhparam.c
  107. dsa.c
  108. dsaparam.c
  109. ec.c
  110. ecparam.c
  111. enc.c
  112. engine.c
  113. errstr.c
  114. gendsa.c
  115. genpkey.c
  116. genrsa.c
  117. nseq.c
  118. ocsp.c
  119. openssl.c
  120. opt.c
  121. passwd.c
  122. pkcs12.c
  123. pkcs7.c
  124. pkcs8.c
  125. pkey.c
  126. pkeyparam.c
  127. pkeyutl.c
  128. prime.c
  129. rand.c
  130. rehash.c
  131. req.c
  132. rsa.c
  133. rsautl.c
  134. s_cb.c
  135. s_client.c
  136. s_server.c
  137. s_socket.c
  138. s_time.c
  139. sess_id.c
  140. smime.c
  141. speed.c
  142. spkac.c
  143. srp.c
  144. storeutl.c
  145. ts.c
  146. verify.c
  147. version.c
  148. x509.c
  149. )
  150. IF (OS_WINDOWS)
  151. SRCS(
  152. win32_init.c
  153. )
  154. ENDIF()
  155. END()