mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 21:03:28 +01:00
Merge pull request #1760
efdd783c
add openssl to readme (Riccardo Spagni)058eed36
cmakify openssl (Riccardo Spagni)
This commit is contained in:
commit
2bdad8d695
@ -311,6 +311,23 @@ else()
|
|||||||
message(STATUS "Stack trace on exception disabled")
|
message(STATUS "Stack trace on exception disabled")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Handle OpenSSL, used for sha256sum on binary updates
|
||||||
|
if (APPLE)
|
||||||
|
if (NOT OpenSSL_DIR)
|
||||||
|
EXECUTE_PROCESS(COMMAND brew --prefix openssl
|
||||||
|
OUTPUT_VARIABLE OPENSSL_ROOT_DIR
|
||||||
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
|
message(STATUS "Using OpenSSL found at ${OPENSSL_ROOT_DIR}")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
find_package(OpenSSL REQUIRED)
|
||||||
|
if(STATIC)
|
||||||
|
if(UNIX)
|
||||||
|
set(OPENSSL_LIBRARIES "${OPENSSL_LIBRARIES};${CMAKE_DL_LIBS}")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
if (UNIX AND NOT APPLE)
|
if (UNIX AND NOT APPLE)
|
||||||
# Note that at the time of this writing the -Wstrict-prototypes flag added below will make this fail
|
# Note that at the time of this writing the -Wstrict-prototypes flag added below will make this fail
|
||||||
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||||
|
@ -138,6 +138,7 @@ library archives (`.a`).
|
|||||||
| pkg-config | any | NO | `pkg-config` | `base-devel` | NO | |
|
| pkg-config | any | NO | `pkg-config` | `base-devel` | NO | |
|
||||||
| Boost | 1.58 | NO | `libboost-all-dev` | `boost` | NO | C++ libraries |
|
| Boost | 1.58 | NO | `libboost-all-dev` | `boost` | NO | C++ libraries |
|
||||||
| libevent | 2.0 | NO | `libevent-dev` | `libevent` | NO | Network IO |
|
| libevent | 2.0 | NO | `libevent-dev` | `libevent` | NO | Network IO |
|
||||||
|
| OpenSSL | basically any | NO | `libssl-dev` | `openssl` | NO | sha256 sum |
|
||||||
| libunbound | 1.4.16 | YES | `libunbound-dev` | `unbound` | NO | DNS resolver |
|
| libunbound | 1.4.16 | YES | `libunbound-dev` | `unbound` | NO | DNS resolver |
|
||||||
| libminiupnpc | 2.0 | YES | `libminiupnpc-dev` | `miniupnpc` | YES | NAT punching |
|
| libminiupnpc | 2.0 | YES | `libminiupnpc-dev` | `miniupnpc` | YES | NAT punching |
|
||||||
| libunwind | any | NO | `libunwind8-dev` | `libunwind` | YES | Stack traces |
|
| libunwind | any | NO | `libunwind8-dev` | `libunwind` | YES | Stack traces |
|
||||||
|
16
external/unbound/CMakeLists.txt
vendored
16
external/unbound/CMakeLists.txt
vendored
@ -30,22 +30,6 @@ cmake_minimum_required(VERSION 2.8.7)
|
|||||||
|
|
||||||
project(unbound C)
|
project(unbound C)
|
||||||
|
|
||||||
if (APPLE)
|
|
||||||
if (NOT OpenSSL_DIR)
|
|
||||||
EXECUTE_PROCESS(COMMAND brew --prefix openssl
|
|
||||||
OUTPUT_VARIABLE OPENSSL_ROOT_DIR
|
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
||||||
message(STATUS "Using OpenSSL found at ${OPENSSL_ROOT_DIR}")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
find_package(OpenSSL REQUIRED)
|
|
||||||
if(STATIC)
|
|
||||||
if(UNIX)
|
|
||||||
set(OPENSSL_LIBRARIES "${OPENSSL_LIBRARIES};${CMAKE_DL_LIBS}")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
find_package(Threads)
|
find_package(Threads)
|
||||||
|
|
||||||
include(configure_checks.cmake)
|
include(configure_checks.cmake)
|
||||||
|
@ -26,6 +26,8 @@
|
|||||||
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
||||||
# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
include_directories(SYSTEM ${OPENSSL_INCLUDE_DIR})
|
||||||
|
|
||||||
set(common_sources
|
set(common_sources
|
||||||
base58.cpp
|
base58.cpp
|
||||||
command_line.cpp
|
command_line.cpp
|
||||||
@ -78,7 +80,6 @@ target_link_libraries(common
|
|||||||
PUBLIC
|
PUBLIC
|
||||||
epee
|
epee
|
||||||
crypto
|
crypto
|
||||||
-lcrypto
|
|
||||||
${UNBOUND_LIBRARY}
|
${UNBOUND_LIBRARY}
|
||||||
${LIBUNWIND_LIBRARIES}
|
${LIBUNWIND_LIBRARIES}
|
||||||
${Boost_DATE_TIME_LIBRARY}
|
${Boost_DATE_TIME_LIBRARY}
|
||||||
@ -87,6 +88,7 @@ target_link_libraries(common
|
|||||||
${Boost_THREAD_LIBRARY}
|
${Boost_THREAD_LIBRARY}
|
||||||
${Boost_REGEX_LIBRARY}
|
${Boost_REGEX_LIBRARY}
|
||||||
PRIVATE
|
PRIVATE
|
||||||
|
${OPENSSL_LIBRARIES}
|
||||||
${EXTRA_LIBRARIES})
|
${EXTRA_LIBRARIES})
|
||||||
|
|
||||||
#monero_install_headers(common
|
#monero_install_headers(common
|
||||||
|
Loading…
Reference in New Issue
Block a user