CMake: Add missing headers via monero_find_all_headers macro

This commit is contained in:
mj-xmr 2022-03-05 10:37:04 +01:00
parent c11385591e
commit 4db6aed98c
15 changed files with 15 additions and 138 deletions

View File

@ -33,10 +33,7 @@ set(blockchain_db_sources
set(blockchain_db_headers) set(blockchain_db_headers)
set(blockchain_db_private_headers monero_find_all_headers(blockchain_db_private_headers "${CMAKE_CURRENT_SOURCE_DIR}")
blockchain_db.h
lmdb/db_lmdb.h
)
monero_private_headers(blockchain_db monero_private_headers(blockchain_db
${crypto_private_headers}) ${crypto_private_headers})

View File

@ -41,8 +41,7 @@ set(checkpoints_sources
set(checkpoints_headers) set(checkpoints_headers)
set(checkpoints_private_headers monero_find_all_headers(checkpoints_private_headers "${CMAKE_CURRENT_SOURCE_DIR}")
checkpoints.h)
monero_private_headers(checkpoints monero_private_headers(checkpoints
${checkpoints_private_headers}) ${checkpoints_private_headers})

View File

@ -58,36 +58,7 @@ endif()
set(common_headers) set(common_headers)
set(common_private_headers monero_find_all_headers(common_private_headers "${CMAKE_CURRENT_SOURCE_DIR}")
apply_permutation.h
base58.h
boost_serialization_helper.h
command_line.h
common_fwd.h
dns_utils.h
download.h
error.h
expect.h
http_connection.h
notify.h
pod-class.h
pruning.h
rpc_client.h
scoped_message_writer.h
unordered_containers_boost_serialization.h
util.h
varint.h
i18n.h
password.h
perf_timer.h
spawn.h
stack_trace.h
threadpool.h
updates.h
aligned.h
timings.h
combinator.h
utf8.h)
monero_private_headers(common monero_private_headers(common
${common_private_headers}) ${common_private_headers})

View File

@ -58,27 +58,7 @@ include_directories(${RANDOMX_INCLUDE})
set(crypto_headers) set(crypto_headers)
set(crypto_private_headers monero_find_all_headers(crypto_private_headers "${CMAKE_CURRENT_SOURCE_DIR}")
blake256.h
chacha.h
crypto-ops.h
crypto.h
generic-ops.h
groestl.h
groestl_tables.h
hash-ops.h
hash.h
hmac-keccak.h
initializer.h
jh.h
keccak.h
oaes_config.h
oaes_lib.h
random.h
skein.h
skein_port.h
CryptonightR_JIT.h
CryptonightR_template.h)
monero_private_headers(cncrypto monero_private_headers(cncrypto
${crypto_private_headers}) ${crypto_private_headers})

View File

@ -56,20 +56,7 @@ set(cryptonote_basic_sources
set(cryptonote_basic_headers) set(cryptonote_basic_headers)
set(cryptonote_basic_private_headers monero_find_all_headers(cryptonote_basic_private_headers "${CMAKE_CURRENT_SOURCE_DIR}")
account.h
account_boost_serialization.h
connection_context.h
cryptonote_basic.h
cryptonote_basic_impl.h
cryptonote_boost_serialization.h
cryptonote_format_utils.h
difficulty.h
hardfork.h
merge_mining.h
miner.h
tx_extra.h
verification_context.h)
monero_private_headers(cryptonote_basic monero_private_headers(cryptonote_basic
${cryptonote_basic_private_headers}) ${cryptonote_basic_private_headers})

View File

@ -35,13 +35,7 @@ set(cryptonote_core_sources
set(cryptonote_core_headers) set(cryptonote_core_headers)
set(cryptonote_core_private_headers monero_find_all_headers(cryptonote_core_private_headers "${CMAKE_CURRENT_SOURCE_DIR}")
blockchain_storage_boost_serialization.h
blockchain.h
cryptonote_core.h
tx_pool.h
tx_sanity_check.h
cryptonote_tx_utils.h)
monero_private_headers(cryptonote_core monero_private_headers(cryptonote_core
${cryptonote_core_private_headers}) ${cryptonote_core_private_headers})

View File

@ -37,30 +37,7 @@ set(daemon_sources
set(daemon_headers) set(daemon_headers)
set(daemon_private_headers monero_find_all_headers(daemon_private_headers "${CMAKE_CURRENT_SOURCE_DIR}")
command_parser_executor.h
command_server.h
core.h
daemon.h
executor.h
p2p.h
protocol.h
rpc.h
rpc_command_executor.h
# cryptonote_protocol
../cryptonote_protocol/cryptonote_protocol_defs.h
../cryptonote_protocol/cryptonote_protocol_handler.h
../cryptonote_protocol/cryptonote_protocol_handler.inl
../cryptonote_protocol/cryptonote_protocol_handler_common.h
# p2p
../p2p/net_node.h
../p2p/net_node_common.h
../p2p/net_peerlist.h
../p2p/net_peerlist_boost_serialization.h
../p2p/p2p_protocol_defs.h
../p2p/stdafx.h)
monero_private_headers(daemon monero_private_headers(daemon
${daemon_private_headers}) ${daemon_private_headers})

View File

@ -29,8 +29,7 @@
set(hardforks_sources set(hardforks_sources
hardforks.cpp) hardforks.cpp)
set(hardforks_headers monero_find_all_headers(hardforks_headers "${CMAKE_CURRENT_SOURCE_DIR}")
hardforks.h)
set(hardforks_private_headers) set(hardforks_private_headers)

View File

@ -27,7 +27,7 @@
# 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.
set(lmdb_sources database.cpp error.cpp table.cpp value_stream.cpp) set(lmdb_sources database.cpp error.cpp table.cpp value_stream.cpp)
set(lmdb_headers database.h error.h key_stream.h table.h transaction.h util.h value_stream.h) monero_find_all_headers(lmdb_headers "${CMAKE_CURRENT_SOURCE_DIR}")
monero_add_library(lmdb_lib ${lmdb_sources} ${lmdb_headers}) monero_add_library(lmdb_lib ${lmdb_sources} ${lmdb_headers})
target_link_libraries(lmdb_lib common ${LMDB_LIBRARY}) target_link_libraries(lmdb_lib common ${LMDB_LIBRARY})

View File

@ -31,23 +31,7 @@ set(mnemonics_sources
set(mnemonics_headers) set(mnemonics_headers)
set(mnemonics_private_headers monero_find_all_headers(mnemonics_private_headers "${CMAKE_CURRENT_SOURCE_DIR}")
electrum-words.h
chinese_simplified.h
english.h
dutch.h
french.h
german.h
italian.h
japanese.h
language_base.h
english_old.h
portuguese.h
russian.h
singleton.h
spanish.h
esperanto.h
lojban.h)
monero_private_headers(mnemonics monero_private_headers(mnemonics
${mnemonics_private_headers}) ${mnemonics_private_headers})

View File

@ -34,10 +34,7 @@ set(multisig_sources
set(multisig_headers) set(multisig_headers)
set(multisig_private_headers monero_find_all_headers(multisig_private_headers "${CMAKE_CURRENT_SOURCE_DIR}")
multisig.h
multisig_account.h
multisig_kex_msg.h)
monero_private_headers(multisig monero_private_headers(multisig
${multisig_private_headers}) ${multisig_private_headers})

View File

@ -29,8 +29,7 @@
set(net_sources dandelionpp.cpp error.cpp http.cpp i2p_address.cpp parse.cpp resolve.cpp set(net_sources dandelionpp.cpp error.cpp http.cpp i2p_address.cpp parse.cpp resolve.cpp
socks.cpp socks_connect.cpp tor_address.cpp zmq.cpp) socks.cpp socks_connect.cpp tor_address.cpp zmq.cpp)
set(net_headers dandelionpp.h error.h http.cpp i2p_address.h parse.h socks.h resolve.h monero_find_all_headers(net_headers "${CMAKE_CURRENT_SOURCE_DIR}")
socks_connect.h tor_address.h zmq.h)
monero_add_library(net ${net_sources} ${net_headers}) monero_add_library(net ${net_sources} ${net_headers})
target_link_libraries(net common epee ${ZMQ_LIB} ${Boost_ASIO_LIBRARY}) target_link_libraries(net common epee ${ZMQ_LIB} ${Boost_ASIO_LIBRARY})

View File

@ -34,12 +34,7 @@ set(ringct_basic_sources
bulletproofs.cc bulletproofs.cc
bulletproofs_plus.cc) bulletproofs_plus.cc)
set(ringct_basic_private_headers monero_find_all_headers(ringct_basic_private_headers "${CMAKE_CURRENT_SOURCE_DIR}")
rctOps.h
rctTypes.h
multiexp.h
bulletproofs.h
bulletproofs_plus.h)
monero_private_headers(ringct_basic monero_private_headers(ringct_basic
${crypto_private_headers}) ${crypto_private_headers})

View File

@ -31,8 +31,7 @@ set(serialization_sources
set(serialization_headers) set(serialization_headers)
set(serialization_private_headers monero_find_all_headers(serialization_private_headers "${CMAKE_CURRENT_SOURCE_DIR}")
json_object.h)
monero_private_headers(serialization monero_private_headers(serialization
${serialization_private_headers}) ${serialization_private_headers})

View File

@ -31,8 +31,7 @@ set(simplewallet_sources
set(simplewallet_headers) set(simplewallet_headers)
set(simplewallet_private_headers monero_find_all_headers(simplewallet_private_headers "${CMAKE_CURRENT_SOURCE_DIR}")
simplewallet.h)
monero_private_headers(simplewallet monero_private_headers(simplewallet
${simplewallet_private_headers}) ${simplewallet_private_headers})