ya.make 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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. LDFLAGS(
  81. /safeseh
  82. )
  83. ENDIF()
  84. CFLAGS(
  85. -DOPENSSL_SYS_WIN32
  86. -DUNICODE
  87. -DWIN32_LEAN_AND_MEAN
  88. -D_CRT_SECURE_NO_DEPRECATE
  89. -D_UNICODE
  90. -D_WINSOCK_DEPRECATED_NO_WARNINGS
  91. /GF
  92. )
  93. ENDIF()
  94. SRCS(
  95. app_rand.c
  96. apps.c
  97. asn1pars.c
  98. bf_prefix.c
  99. ca.c
  100. ciphers.c
  101. cms.c
  102. crl.c
  103. crl2p7.c
  104. dgst.c
  105. dhparam.c
  106. dsa.c
  107. dsaparam.c
  108. ec.c
  109. ecparam.c
  110. enc.c
  111. engine.c
  112. errstr.c
  113. gendsa.c
  114. genpkey.c
  115. genrsa.c
  116. nseq.c
  117. ocsp.c
  118. openssl.c
  119. opt.c
  120. passwd.c
  121. pkcs12.c
  122. pkcs7.c
  123. pkcs8.c
  124. pkey.c
  125. pkeyparam.c
  126. pkeyutl.c
  127. prime.c
  128. rand.c
  129. rehash.c
  130. req.c
  131. rsa.c
  132. rsautl.c
  133. s_cb.c
  134. s_client.c
  135. s_server.c
  136. s_socket.c
  137. s_time.c
  138. sess_id.c
  139. smime.c
  140. speed.c
  141. spkac.c
  142. srp.c
  143. storeutl.c
  144. ts.c
  145. verify.c
  146. version.c
  147. x509.c
  148. )
  149. IF (OS_WINDOWS)
  150. SRCS(
  151. win32_init.c
  152. )
  153. ENDIF()
  154. END()