mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 19:15:54 +00:00
Add QTCreator .pro based build
This commit is contained in:
5
Builds/QtCreator/.gitignore
vendored
Normal file
5
Builds/QtCreator/.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# QTCreator
|
||||||
|
|
||||||
|
Makefile
|
||||||
|
*.user
|
||||||
|
|
||||||
85
Builds/QtCreator/rippled.pro
Normal file
85
Builds/QtCreator/rippled.pro
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
# Google Protocol Buffers support
|
||||||
|
|
||||||
|
PROTOPATH += .
|
||||||
|
PROTOPATH += ../Protocol
|
||||||
|
for(p, PROTOPATH):PROTOPATHS += --proto_path=$${p}
|
||||||
|
|
||||||
|
protobuf_decl.name = protobuf header
|
||||||
|
protobuf_decl.input = PROTOS
|
||||||
|
protobuf_decl.output = ${QMAKE_FILE_BASE}.pb.h
|
||||||
|
protobuf_decl.commands = protoc --cpp_out="../../build/proto/" --proto_path="../../src/cpp/ripple" ${QMAKE_FILE_NAME}
|
||||||
|
protobuf_decl.variable_out = GENERATED_FILES
|
||||||
|
QMAKE_EXTRA_COMPILERS += protobuf_decl
|
||||||
|
|
||||||
|
protobuf_impl.name = protobuf implementation
|
||||||
|
protobuf_impl.input = PROTOS
|
||||||
|
protobuf_impl.output = ${QMAKE_FILE_BASE}.pb.cc
|
||||||
|
protobuf_impl.depends = ${QMAKE_FILE_BASE}.pb.h
|
||||||
|
protobuf_impl.commands = $$escape_expand(\n)
|
||||||
|
protobuf_impl.variable_out = GENERATED_SOURCES
|
||||||
|
QMAKE_EXTRA_COMPILERS += protobuf_impl
|
||||||
|
|
||||||
|
# Ripple compilation
|
||||||
|
|
||||||
|
DESTDIR = ../../build/QtCreator
|
||||||
|
OBJECTS_DIR = ../../build/QtCreator/obj
|
||||||
|
|
||||||
|
TEMPLATE = app
|
||||||
|
CONFIG += console thread
|
||||||
|
CONFIG -= qt gui
|
||||||
|
|
||||||
|
QMAKE_CXXFLAGS += \
|
||||||
|
-Wno-sign-compare \
|
||||||
|
-Wno-char-subscripts \
|
||||||
|
-Wno-invalid-offsetof \
|
||||||
|
-Wno-unused-parameter \
|
||||||
|
-Wformat \
|
||||||
|
-O0 \
|
||||||
|
-pthread
|
||||||
|
|
||||||
|
INCLUDEPATH += \
|
||||||
|
"../.." \
|
||||||
|
"../../build/proto" \
|
||||||
|
"../../Subtrees" \
|
||||||
|
"../../Subtrees/leveldb/" \
|
||||||
|
"../../Subtrees/leveldb/port" \
|
||||||
|
"../../Subtrees/leveldb/include"
|
||||||
|
|
||||||
|
SOURCES += \
|
||||||
|
../../Subtrees/beast/modules/beast_basics/beast_basics.cpp \
|
||||||
|
../../Subtrees/beast/modules/beast_core/beast_core.cpp \
|
||||||
|
../../modules/ripple_app/ripple_app_pt1.cpp \
|
||||||
|
../../modules/ripple_app/ripple_app_pt2.cpp \
|
||||||
|
../../modules/ripple_app/ripple_app_pt3.cpp \
|
||||||
|
../../modules/ripple_app/ripple_app_pt4.cpp \
|
||||||
|
../../modules/ripple_app/ripple_app_pt5.cpp \
|
||||||
|
../../modules/ripple_app/ripple_app_pt6.cpp \
|
||||||
|
../../modules/ripple_app/ripple_app_pt7.cpp \
|
||||||
|
../../modules/ripple_app/ripple_app_pt8.cpp \
|
||||||
|
../../modules/ripple_basics/ripple_basics.cpp \
|
||||||
|
../../modules/ripple_core/ripple_core.cpp \
|
||||||
|
../../modules/ripple_client/ripple_client.cpp \
|
||||||
|
../../modules/ripple_data/ripple_data.cpp \
|
||||||
|
../../modules/ripple_json/ripple_json.cpp \
|
||||||
|
../../modules/ripple_leveldb/ripple_leveldb.cpp \
|
||||||
|
../../modules/ripple_sqlite/ripple_sqlite.c \
|
||||||
|
../../modules/ripple_websocket/ripple_websocket.cpp \
|
||||||
|
../../build/proto/ripple.pb.cc
|
||||||
|
|
||||||
|
PROTOS = ../../src/cpp/ripple/ripple.proto
|
||||||
|
|
||||||
|
LIBS += \
|
||||||
|
-lboost_date_time-mt\
|
||||||
|
-lboost_filesystem-mt \
|
||||||
|
-lboost_program_options-mt \
|
||||||
|
-lboost_regex-mt \
|
||||||
|
-lboost_system-mt \
|
||||||
|
-lboost_thread-mt \
|
||||||
|
-lboost_random-mt \
|
||||||
|
-lprotobuf \
|
||||||
|
-lssl \
|
||||||
|
-lrt
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
#include "BeastConfig.h"
|
#include "BeastConfig.h"
|
||||||
|
|
||||||
// This must come first to work around the boost placeholders issues
|
// This must come first to work around the boost placeholders issues
|
||||||
#include "modules/beast_basics/beast_basics.h"
|
#include "beast/modules/beast_basics/beast_basics.h"
|
||||||
|
|
||||||
// VFALCO NOTE Holy smokes...that's a lot of boost!!!
|
// VFALCO NOTE Holy smokes...that's a lot of boost!!!
|
||||||
#include <boost/algorithm/string.hpp>
|
#include <boost/algorithm/string.hpp>
|
||||||
@@ -57,9 +57,9 @@
|
|||||||
#include <boost/unordered_set.hpp>
|
#include <boost/unordered_set.hpp>
|
||||||
#include <boost/weak_ptr.hpp>
|
#include <boost/weak_ptr.hpp>
|
||||||
|
|
||||||
#include "../modules/ripple_sqlite/ripple_sqlite.h" // for SqliteDatabase.cpp
|
#include "../ripple_sqlite/ripple_sqlite.h" // for SqliteDatabase.cpp
|
||||||
|
|
||||||
#include "../modules/ripple_core/ripple_core.h"
|
#include "../ripple_core/ripple_core.h"
|
||||||
|
|
||||||
// VFALCO TODO fix these warnings!
|
// VFALCO TODO fix these warnings!
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
#include "system/ripple_StandardIncludes.h"
|
#include "system/ripple_StandardIncludes.h"
|
||||||
|
|
||||||
// This must come before Boost, to fix the boost placeholders problem
|
// This must come before Boost, to fix the boost placeholders problem
|
||||||
#include "modules/beast_basics/beast_basics.h"
|
#include "beast/modules/beast_basics/beast_basics.h"
|
||||||
|
|
||||||
#include "system/ripple_BoostIncludes.h"
|
#include "system/ripple_BoostIncludes.h"
|
||||||
|
|
||||||
@@ -64,11 +64,7 @@ namespace boost
|
|||||||
# include <sys/types.h>
|
# include <sys/types.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "modules/beast_core/beast_core.h"
|
#include "beast/modules/beast_core/beast_core.h"
|
||||||
//#include "modules/beast_basics/beast_basics.h"
|
|
||||||
|
|
||||||
// VFALCO TODO Fix this for FreeBSD
|
|
||||||
//#include "modules/beast_basics/beast_basics.h"
|
|
||||||
|
|
||||||
#include "../ripple_json/ripple_json.h"
|
#include "../ripple_json/ripple_json.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user