ya.make 2.8 KB

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