mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-04 19:25:51 +00:00
- "Rename" the type `LedgerInfo` to `LedgerHeader` (but leave an alias for `LedgerInfo` to not yet disturb existing uses). Put it in its own public header, named after itself, so that it is more easily found. - Move the type `Fees` and NFT serialization functions into public (installed) headers. - Compile the XRPL and gRPC protocol buffers directly into `libxrpl` and install their headers. Fix the Conan recipe to correctly export these types. Addresses change (2) in https://github.com/XRPLF/XRPL-Standards/discussions/121. For context: This work supports Clio's dependence on libxrpl. Clio is just an example consumer. These changes should benefit all current and future consumers. --------- Co-authored-by: cyan317 <120398799+cindyyan317@users.noreply.github.com> Signed-off-by: Manoj Doshi <mdoshi@ripple.com>
40 lines
1.4 KiB
CMake
40 lines
1.4 KiB
CMake
#[===================================================================[
|
|
multiconfig misc
|
|
#]===================================================================]
|
|
|
|
if (is_multiconfig)
|
|
# This code finds all source files in the src subdirectory for inclusion
|
|
# in the IDE file tree as non-compiled sources. Since this file list will
|
|
# have some overlap with files we have already added to our targets to
|
|
# be compiled, we explicitly remove any of these target source files from
|
|
# this list.
|
|
file (GLOB_RECURSE all_sources RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
|
CONFIGURE_DEPENDS
|
|
src/*.* Builds/*.md docs/*.md src/*.md Builds/*.cmake)
|
|
file(GLOB md_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} CONFIGURE_DEPENDS
|
|
*.md)
|
|
LIST(APPEND all_sources ${md_files})
|
|
foreach (_target secp256k1::secp256k1 ed25519::ed25519 xrpl_core rippled)
|
|
get_target_property (_type ${_target} TYPE)
|
|
if(_type STREQUAL "INTERFACE_LIBRARY")
|
|
continue()
|
|
endif()
|
|
get_target_property (_src ${_target} SOURCES)
|
|
list (REMOVE_ITEM all_sources ${_src})
|
|
endforeach ()
|
|
target_sources (rippled PRIVATE ${all_sources})
|
|
set_property (
|
|
SOURCE ${all_sources}
|
|
APPEND
|
|
PROPERTY HEADER_FILE_ONLY true)
|
|
if (MSVC)
|
|
set_property(
|
|
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|
PROPERTY VS_STARTUP_PROJECT rippled)
|
|
endif ()
|
|
|
|
group_sources(src)
|
|
group_sources(docs)
|
|
group_sources(Builds)
|
|
endif ()
|