mirror of https://github.com/oxen-io/lokinet
Removed empty cpp files
These aren't needed: CMake already knows how to follow #includes and rebuild when headers change as long as the headers are included *somewhere*. The extra .cpp files here just require building a bunch of .cpp files with just header content that we just end up throw away during linking (since the same things will also be compiled in whatever other compilation units include the same headers).
This commit is contained in:
parent
fe61367a87
commit
f84ce61d66
|
@ -4,21 +4,11 @@ set(LIB_UTIL_SRC
|
|||
config/config.cpp
|
||||
config/ini.cpp
|
||||
config/key_manager.cpp
|
||||
constants/defaults.cpp
|
||||
constants/limits.cpp
|
||||
constants/link_layer.cpp
|
||||
constants/path.cpp
|
||||
constants/proto.cpp
|
||||
${CMAKE_CURRENT_BINARY_DIR}/constants/version.cpp
|
||||
util/aligned.cpp
|
||||
util/bencode.cpp
|
||||
util/bits.cpp
|
||||
util/buffer.cpp
|
||||
util/codel.cpp
|
||||
util/common.cpp
|
||||
util/encode.cpp
|
||||
util/endian.cpp
|
||||
util/decaying_hashset.cpp
|
||||
util/fs.cpp
|
||||
util/json.cpp
|
||||
util/logging/android_logger.cpp
|
||||
|
@ -31,19 +21,14 @@ set(LIB_UTIL_SRC
|
|||
util/logging/win32_logger.cpp
|
||||
util/lokinet_init.c
|
||||
util/mem.cpp
|
||||
util/meta/traits.cpp
|
||||
util/printer.cpp
|
||||
util/status.cpp
|
||||
util/str.cpp
|
||||
util/string_view.cpp
|
||||
util/thread/logic.cpp
|
||||
util/thread/queue_manager.cpp
|
||||
util/thread/queue.cpp
|
||||
util/thread/thread_pool.cpp
|
||||
util/thread/threading.cpp
|
||||
util/thread/threadpool.cpp
|
||||
util/time.cpp
|
||||
util/types.cpp
|
||||
)
|
||||
|
||||
add_library(${UTIL_LIB} STATIC ${LIB_UTIL_SRC})
|
||||
|
@ -113,15 +98,12 @@ if(WIN32)
|
|||
target_link_libraries(${PLATFORM_LIB} PUBLIC iphlpapi)
|
||||
endif()
|
||||
set(DNSLIB_SRC
|
||||
dns/dns.cpp
|
||||
dns/message.cpp
|
||||
dns/name.cpp
|
||||
dns/query.cpp
|
||||
dns/question.cpp
|
||||
dns/rr.cpp
|
||||
dns/serialize.cpp
|
||||
dns/server.cpp
|
||||
dns/string.cpp
|
||||
)
|
||||
|
||||
set(CONSENSUS_SRC
|
||||
|
@ -133,19 +115,13 @@ set(LIB_SRC
|
|||
${DNSLIB_SRC}
|
||||
bootstrap.cpp
|
||||
context.cpp
|
||||
crypto/constants.cpp
|
||||
crypto/crypto_libsodium.cpp
|
||||
crypto/crypto_noop.cpp
|
||||
crypto/crypto.cpp
|
||||
crypto/encrypted_frame.cpp
|
||||
crypto/encrypted.cpp
|
||||
crypto/types.cpp
|
||||
dht/bucket.cpp
|
||||
dht/context.cpp
|
||||
dht/dht.cpp
|
||||
dht/explorenetworkjob.cpp
|
||||
dht/kademlia.cpp
|
||||
dht/key.cpp
|
||||
dht/localtaglookup.cpp
|
||||
dht/localrouterlookup.cpp
|
||||
dht/localserviceaddresslookup.cpp
|
||||
|
@ -155,21 +131,16 @@ set(LIB_SRC
|
|||
dht/messages/gotintro.cpp
|
||||
dht/messages/gotrouter.cpp
|
||||
dht/messages/pubintro.cpp
|
||||
dht/node.cpp
|
||||
dht/publishservicejob.cpp
|
||||
dht/recursiverouterlookup.cpp
|
||||
dht/serviceaddresslookup.cpp
|
||||
dht/taglookup.cpp
|
||||
dht/tx.cpp
|
||||
dht/txholder.cpp
|
||||
dht/txowner.cpp
|
||||
exit/context.cpp
|
||||
exit/endpoint.cpp
|
||||
exit/exit_messages.cpp
|
||||
exit/policy.cpp
|
||||
exit/session.cpp
|
||||
handlers/exit.cpp
|
||||
handlers/null.cpp
|
||||
handlers/tun.cpp
|
||||
hook/shell.cpp
|
||||
iwp/iwp.cpp
|
||||
|
@ -177,15 +148,11 @@ set(LIB_SRC
|
|||
iwp/message_buffer.cpp
|
||||
iwp/session.cpp
|
||||
link/factory.cpp
|
||||
link/i_link_manager.cpp
|
||||
link/link_manager.cpp
|
||||
link/server.cpp
|
||||
link/session.cpp
|
||||
messages/dht_immediate.cpp
|
||||
messages/discard.cpp
|
||||
messages/link_intro.cpp
|
||||
messages/link_message_parser.cpp
|
||||
messages/link_message.cpp
|
||||
messages/relay.cpp
|
||||
messages/relay_commit.cpp
|
||||
messages/relay_status.cpp
|
||||
|
@ -194,30 +161,22 @@ set(LIB_SRC
|
|||
nodedb.cpp
|
||||
path/ihophandler.cpp
|
||||
path/path_context.cpp
|
||||
path/path_types.cpp
|
||||
path/path.cpp
|
||||
path/pathbuilder.cpp
|
||||
path/pathset.cpp
|
||||
path/transit_hop.cpp
|
||||
pow.cpp
|
||||
profiling.cpp
|
||||
router/abstractrouter.cpp
|
||||
router/i_outbound_message_handler.cpp
|
||||
router/outbound_message_handler.cpp
|
||||
router/i_outbound_session_maker.cpp
|
||||
router/outbound_session_maker.cpp
|
||||
router/i_rc_lookup_handler.cpp
|
||||
router/rc_lookup_handler.cpp
|
||||
router/i_gossiper.cpp
|
||||
router/rc_gossiper.cpp
|
||||
router/router.cpp
|
||||
router_contact.cpp
|
||||
router_id.cpp
|
||||
router_version.cpp
|
||||
routing/dht_message.cpp
|
||||
routing/handler.cpp
|
||||
routing/message_parser.cpp
|
||||
routing/message.cpp
|
||||
routing/path_confirm_message.cpp
|
||||
routing/path_latency_message.cpp
|
||||
routing/path_transfer_message.cpp
|
||||
|
@ -230,7 +189,6 @@ set(LIB_SRC
|
|||
service/endpoint_state.cpp
|
||||
service/endpoint_util.cpp
|
||||
service/endpoint.cpp
|
||||
service/handler.cpp
|
||||
service/hidden_service_address_lookup.cpp
|
||||
service/identity.cpp
|
||||
service/info.cpp
|
||||
|
@ -238,14 +196,12 @@ set(LIB_SRC
|
|||
service/intro.cpp
|
||||
service/lookup.cpp
|
||||
service/outbound_context.cpp
|
||||
service/pendingbuffer.cpp
|
||||
service/protocol.cpp
|
||||
service/router_lookup_job.cpp
|
||||
service/sendcontext.cpp
|
||||
service/session.cpp
|
||||
service/tag_lookup_job.cpp
|
||||
service/tag.cpp
|
||||
service/vanity.cpp
|
||||
)
|
||||
if(TESTNET)
|
||||
set(LIB_SRC ${LIB_SRC} testnet.c)
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
#include <constants/defaults.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <constants/link_layer.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <constants/path.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <constants/proto.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <crypto/constants.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <crypto/crypto_noop.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <crypto/encrypted.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <dht/bucket.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <dht/kademlia.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <dht/key.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <dht/node.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <dht/tx.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <dht/txholder.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <dht/txowner.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <dns/dns.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <dns/query.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <dns/string.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <handlers/null.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <link/i_link_manager.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <link/session.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <messages/discard.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <messages/link_message.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <path/path_types.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <router/abstractrouter.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <router/i_gossiper.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <router/i_outbound_message_handler.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <router/i_outbound_session_maker.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <router/i_rc_lookup_handler.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <routing/handler.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <routing/message.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <service/handler.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <service/pendingbuffer.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <service/vanity.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <util/aligned.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <util/bits.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <util/codel.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <util/common.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <util/decaying_hashset.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <util/endian.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <util/meta/memfn.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <util/meta/traits.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <util/status.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <util/string_view.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <util/thread/queue.hpp>
|
|
@ -1 +0,0 @@
|
|||
#include <util/types.hpp>
|
Loading…
Reference in New Issue