mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-20 18:45:55 +00:00
Consolidate external libraries
This commit is contained in:
@@ -3,13 +3,13 @@
|
|||||||
#]===================================================================]
|
#]===================================================================]
|
||||||
|
|
||||||
add_library (ed25519-donna STATIC
|
add_library (ed25519-donna STATIC
|
||||||
src/ed25519-donna/ed25519.c)
|
external/ed25519-donna/ed25519.c)
|
||||||
target_include_directories (ed25519-donna
|
target_include_directories (ed25519-donna
|
||||||
PUBLIC
|
PUBLIC
|
||||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/external>
|
||||||
$<INSTALL_INTERFACE:include>
|
$<INSTALL_INTERFACE:include>
|
||||||
PRIVATE
|
PRIVATE
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/src/ed25519-donna)
|
${CMAKE_CURRENT_SOURCE_DIR}/external/ed25519-donna)
|
||||||
#[=========================================================[
|
#[=========================================================[
|
||||||
NOTE for macos:
|
NOTE for macos:
|
||||||
https://github.com/floodyberry/ed25519-donna/issues/29
|
https://github.com/floodyberry/ed25519-donna/issues/29
|
||||||
@@ -24,5 +24,5 @@ target_link_libraries (ripple_libs INTERFACE NIH::ed25519-donna)
|
|||||||
#]===========================]
|
#]===========================]
|
||||||
install (
|
install (
|
||||||
FILES
|
FILES
|
||||||
src/ed25519-donna/ed25519.h
|
external/ed25519-donna/ed25519.h
|
||||||
DESTINATION include/ed25519-donna)
|
DESTINATION include/ed25519-donna)
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ else()
|
|||||||
set(INSTALL_SECP256K1 true)
|
set(INSTALL_SECP256K1 true)
|
||||||
|
|
||||||
add_library (secp256k1 STATIC
|
add_library (secp256k1 STATIC
|
||||||
src/secp256k1/src/secp256k1.c)
|
external/secp256k1/src/secp256k1.c)
|
||||||
target_compile_definitions (secp256k1
|
target_compile_definitions (secp256k1
|
||||||
PRIVATE
|
PRIVATE
|
||||||
USE_NUM_NONE
|
USE_NUM_NONE
|
||||||
@@ -34,9 +34,9 @@ else()
|
|||||||
USE_SCALAR_INV_BUILTIN)
|
USE_SCALAR_INV_BUILTIN)
|
||||||
target_include_directories (secp256k1
|
target_include_directories (secp256k1
|
||||||
PUBLIC
|
PUBLIC
|
||||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/external>
|
||||||
$<INSTALL_INTERFACE:include>
|
$<INSTALL_INTERFACE:include>
|
||||||
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src/secp256k1)
|
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/external/secp256k1)
|
||||||
target_compile_options (secp256k1
|
target_compile_options (secp256k1
|
||||||
PRIVATE
|
PRIVATE
|
||||||
$<$<BOOL:${MSVC}>:-wd4319>
|
$<$<BOOL:${MSVC}>:-wd4319>
|
||||||
@@ -51,7 +51,7 @@ else()
|
|||||||
#]===========================]
|
#]===========================]
|
||||||
install (
|
install (
|
||||||
FILES
|
FILES
|
||||||
src/secp256k1/include/secp256k1.h
|
external/secp256k1/include/secp256k1.h
|
||||||
DESTINATION include/secp256k1/include)
|
DESTINATION include/secp256k1/include)
|
||||||
|
|
||||||
add_library (NIH::secp256k1 ALIAS secp256k1)
|
add_library (NIH::secp256k1 ALIAS secp256k1)
|
||||||
|
|||||||
@@ -83,9 +83,9 @@ include(RippledInterface)
|
|||||||
###
|
###
|
||||||
if (NOT USE_CONAN)
|
if (NOT USE_CONAN)
|
||||||
set(SECP256K1_INSTALL TRUE)
|
set(SECP256K1_INSTALL TRUE)
|
||||||
add_subdirectory(src/secp256k1)
|
add_subdirectory(external/secp256k1)
|
||||||
add_library(secp256k1::secp256k1 ALIAS secp256k1)
|
add_library(secp256k1::secp256k1 ALIAS secp256k1)
|
||||||
add_subdirectory(src/ed25519-donna)
|
add_subdirectory(external/ed25519-donna)
|
||||||
include(deps/Boost)
|
include(deps/Boost)
|
||||||
include(deps/OpenSSL)
|
include(deps/OpenSSL)
|
||||||
# include(deps/Secp256k1)
|
# include(deps/Secp256k1)
|
||||||
@@ -110,9 +110,9 @@ else()
|
|||||||
INTERFACE_COMPILE_DEFINITIONS OPENSSL_NO_SSL2
|
INTERFACE_COMPILE_DEFINITIONS OPENSSL_NO_SSL2
|
||||||
)
|
)
|
||||||
set(SECP256K1_INSTALL TRUE)
|
set(SECP256K1_INSTALL TRUE)
|
||||||
add_subdirectory(src/secp256k1)
|
add_subdirectory(external/secp256k1)
|
||||||
add_library(secp256k1::secp256k1 ALIAS secp256k1)
|
add_library(secp256k1::secp256k1 ALIAS secp256k1)
|
||||||
add_subdirectory(src/ed25519-donna)
|
add_subdirectory(external/ed25519-donna)
|
||||||
find_package(lz4 REQUIRED)
|
find_package(lz4 REQUIRED)
|
||||||
# Target names with :: are not allowed in a generator expression.
|
# Target names with :: are not allowed in a generator expression.
|
||||||
# We need to pull the include directories and imported location properties
|
# We need to pull the include directories and imported location properties
|
||||||
|
|||||||
11
external/README.md
vendored
Normal file
11
external/README.md
vendored
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
The subdirectories in this directory contain either copies or Conan recipes
|
||||||
|
of external libraries used by rippled.
|
||||||
|
The Conan recipes include patches we have not yet pushed upstream.
|
||||||
|
|
||||||
|
| Folder | Upstream | Description |
|
||||||
|
|:----------------|:---------------------------------------------|:------------|
|
||||||
|
| `ed25519-donna` | [Project](https://github.com/floodyberry/ed25519-donna) | [Ed25519](http://ed25519.cr.yp.to/) digital signatures |
|
||||||
|
| `rocksdb` | [Recipe](https://github.com/conan-io/conan-center-index/tree/master/recipes/rocksdb) | Fast key/value database. (Supports rotational disks better than NuDB.) |
|
||||||
|
| `secp256k1` | [Project](https://github.com/bitcoin-core/secp256k1) | ECDSA digital signatures using the **secp256k1** curve |
|
||||||
|
| `snappy` | [Recipe](https://github.com/conan-io/conan-center-index/tree/master/recipes/snappy) | "Snappy" lossless compression algorithm. |
|
||||||
|
| `soci` | [Recipe](https://github.com/conan-io/conan-center-index/tree/master/recipes/soci) | Abstraction layer for database access. |
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user