You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.6 KiB

9 years ago
9 years ago
  1. # Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
  2. #
  3. # This program is free software; you can redistribute it and/or modify
  4. # it under the terms of the GNU General Public License as published by
  5. # the Free Software Foundation; version 2 of the License.
  6. #
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. # GNU General Public License for more details.
  11. #
  12. # You should have received a copy of the GNU General Public License
  13. # along with this program; if not, write to the Free Software
  14. # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  15. INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include
  16. ${CMAKE_SOURCE_DIR}/mysys_ssl
  17. ${SSL_INCLUDE_DIRS})
  18. IF(SSL_DEFINES)
  19. ADD_DEFINITIONS(${SSL_DEFINES})
  20. ENDIF()
  21. SET(MYSYS_SSL_HIDDEN_SOURCES
  22. my_sha1.cc
  23. my_sha224.cc
  24. my_sha256.cc
  25. my_sha384.cc
  26. my_sha512.cc
  27. my_md5.cc
  28. )
  29. SET(MYSYS_SSL_SOURCES
  30. ${MYSYS_SSL_HIDDEN_SOURCES}
  31. my_crypt.cc
  32. )
  33. # We do RESTRICT_SYMBOL_EXPORTS(yassl) elsewhere.
  34. # In order to get correct symbol visibility, these files
  35. # must be compiled with "-fvisibility=hidden"
  36. IF(WITH_SSL STREQUAL "bundled" AND HAVE_VISIBILITY_HIDDEN)
  37. SET_SOURCE_FILES_PROPERTIES(
  38. ${MYSYS_SSL_HIDDEN_SOURCES}
  39. PROPERTIES COMPILE_FLAGS "-fvisibility=hidden")
  40. ENDIF()
  41. ADD_CONVENIENCE_LIBRARY(mysys_ssl ${MYSYS_SSL_SOURCES})
  42. TARGET_LINK_LIBRARIES(mysys_ssl dbug strings ${SSL_LIBRARIES})
  43. DTRACE_INSTRUMENT(mysys_ssl)