mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Split ripple_main into 4 pieces for SCons builds
This commit is contained in:
@@ -109,7 +109,10 @@ COMPILED_FILES = [
|
||||
'modules/ripple_db/ripple_db.cpp',
|
||||
'modules/ripple_json/ripple_json.cpp',
|
||||
'modules/ripple_ledger/ripple_ledger.cpp',
|
||||
'modules/ripple_main/ripple_main.cpp',
|
||||
'modules/ripple_main/ripple_main_pt1.cpp',
|
||||
'modules/ripple_main/ripple_main_pt2.cpp',
|
||||
'modules/ripple_main/ripple_main_pt3.cpp',
|
||||
'modules/ripple_main/ripple_main_pt4.cpp',
|
||||
'modules/ripple_mess/ripple_mess.cpp',
|
||||
'modules/ripple_net/ripple_net.cpp',
|
||||
'Subtrees/beast/modules/beast_core/beast_core.cpp'
|
||||
|
||||
@@ -65,8 +65,6 @@
|
||||
#include <boost/ref.hpp>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <boost/smart_ptr/shared_ptr.hpp>
|
||||
#include <boost/test/included/unit_test.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <boost/thread.hpp>
|
||||
#include <boost/thread/condition_variable.hpp>
|
||||
#include <boost/thread/mutex.hpp>
|
||||
@@ -77,6 +75,12 @@
|
||||
#include <boost/unordered_set.hpp>
|
||||
#include <boost/weak_ptr.hpp>
|
||||
|
||||
#if ! defined (RIPPLE_MAIN_PART) || RIPPLE_MAIN_PART == 1
|
||||
#include <boost/test/included/unit_test.hpp>
|
||||
#endif
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
|
||||
#include <openssl/ec.h>
|
||||
#include <openssl/ripemd.h>
|
||||
#include <openssl/sha.h>
|
||||
@@ -250,19 +254,15 @@ static const uint64 tenTo14m1 = tenTo14 - 1;
|
||||
static const uint64 tenTo17 = tenTo14 * 1000;
|
||||
static const uint64 tenTo17m1 = tenTo17 - 1;
|
||||
|
||||
// This is for PeerDoor and WSDoor
|
||||
// Generate DH for SSL connection.
|
||||
static DH* handleTmpDh(SSL* ssl, int is_export, int iKeyLength)
|
||||
{
|
||||
// VFALCO TODO eliminate this horrendous dependency on theApp and Wallet
|
||||
return 512 == iKeyLength ? theApp->getWallet().getDh512() : theApp->getWallet().getDh1024();
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#if ! defined (RIPPLE_MAIN_PART) || RIPPLE_MAIN_PART == 1
|
||||
|
||||
#include "src/cpp/database/database.cpp"
|
||||
#include "src/cpp/database/SqliteDatabase.cpp"
|
||||
@@ -294,6 +294,21 @@ static DH* handleTmpDh(SSL* ssl, int is_export, int iKeyLength)
|
||||
#include "src/cpp/ripple/Operation.cpp" // no log
|
||||
#include "src/cpp/ripple/OrderBook.cpp" // no log
|
||||
#include "src/cpp/ripple/OrderBookDB.cpp"
|
||||
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#if ! defined (RIPPLE_MAIN_PART) || RIPPLE_MAIN_PART == 2
|
||||
|
||||
// This is for PeerDoor and WSDoor
|
||||
// Generate DH for SSL connection.
|
||||
static DH* handleTmpDh(SSL* ssl, int is_export, int iKeyLength)
|
||||
{
|
||||
// VFALCO TODO eliminate this horrendous dependency on theApp and Wallet
|
||||
return 512 == iKeyLength ? theApp->getWallet().getDh512() : theApp->getWallet().getDh1024();
|
||||
}
|
||||
|
||||
#include "src/cpp/ripple/ParameterTable.cpp" // no log
|
||||
#include "src/cpp/ripple/ParseSection.cpp"
|
||||
#include "src/cpp/ripple/Pathfinder.cpp"
|
||||
@@ -320,9 +335,16 @@ static DH* handleTmpDh(SSL* ssl, int is_export, int iKeyLength)
|
||||
#include "src/cpp/ripple/TransactionQueue.cpp" // no log
|
||||
#include "src/cpp/ripple/Transactor.cpp"
|
||||
#include "src/cpp/ripple/TrustSetTransactor.cpp"
|
||||
#include "src/cpp/ripple/WSDoor.cpp" // uses logging in WSConnection.h
|
||||
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#if ! defined (RIPPLE_MAIN_PART) || RIPPLE_MAIN_PART == 3
|
||||
|
||||
#include "src/cpp/ripple/Wallet.cpp"
|
||||
#include "src/cpp/ripple/WalletAddTransactor.cpp"
|
||||
#include "src/cpp/ripple/WSDoor.cpp" // uses logging in WSConnection.h
|
||||
|
||||
#include "src/cpp/ripple/ripple_HashedObject.cpp"
|
||||
|
||||
@@ -344,6 +366,13 @@ static DH* handleTmpDh(SSL* ssl, int is_export, int iKeyLength)
|
||||
#include "src/cpp/ripple/ripple_HashedObjectStore.cpp"
|
||||
#include "src/cpp/ripple/ripple_HashRouter.cpp"
|
||||
//#include "src/cpp/ripple/ripple_InfoSub.cpp"
|
||||
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#if ! defined (RIPPLE_MAIN_PART) || RIPPLE_MAIN_PART == 4
|
||||
|
||||
#include "src/cpp/ripple/ripple_Job.cpp"
|
||||
#include "src/cpp/ripple/ripple_JobQueue.cpp"
|
||||
#include "src/cpp/ripple/ripple_LedgerAcquire.cpp"
|
||||
@@ -366,6 +395,10 @@ static DH* handleTmpDh(SSL* ssl, int is_export, int iKeyLength)
|
||||
|
||||
#include "src/cpp/ripple/ripple_SHAMapSyncFilters.cpp" // requires Application
|
||||
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
||||
2
modules/ripple_main/ripple_main_pt1.cpp
Normal file
2
modules/ripple_main/ripple_main_pt1.cpp
Normal file
@@ -0,0 +1,2 @@
|
||||
#define RIPPLE_MAIN_PART 1
|
||||
#include "ripple_main.cpp"
|
||||
2
modules/ripple_main/ripple_main_pt2.cpp
Normal file
2
modules/ripple_main/ripple_main_pt2.cpp
Normal file
@@ -0,0 +1,2 @@
|
||||
#define RIPPLE_MAIN_PART 2
|
||||
#include "ripple_main.cpp"
|
||||
2
modules/ripple_main/ripple_main_pt3.cpp
Normal file
2
modules/ripple_main/ripple_main_pt3.cpp
Normal file
@@ -0,0 +1,2 @@
|
||||
#define RIPPLE_MAIN_PART 3
|
||||
#include "ripple_main.cpp"
|
||||
2
modules/ripple_main/ripple_main_pt4.cpp
Normal file
2
modules/ripple_main/ripple_main_pt4.cpp
Normal file
@@ -0,0 +1,2 @@
|
||||
#define RIPPLE_MAIN_PART 4
|
||||
#include "ripple_main.cpp"
|
||||
Reference in New Issue
Block a user