From 3f0c811917274e8beb437c6b06e855a6406ac8d4 Mon Sep 17 00:00:00 2001 From: chrisparker126 Date: Wed, 11 Jan 2012 23:01:29 +0000 Subject: [PATCH] initial addition general exchange service interfaces git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-new_cache_system@4781 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/gxs/rsgdp.cpp | 5 + libretroshare/src/gxs/rsgdp.h | 58 ++ libretroshare/src/gxs/rsgixs.cpp | 5 + libretroshare/src/gxs/rsgixs.h | 19 + libretroshare/src/gxs/rsgnp.cpp | 5 + libretroshare/src/gxs/rsgnp.h | 20 + libretroshare/src/gxs/rsgxs.cpp | 5 + libretroshare/src/gxs/rsgxs.h | 60 ++ libretroshare/src/libretroshare.pro | 1327 ++++++++++++++------------- libretroshare/src/util/rssqlite.cpp | 5 + libretroshare/src/util/rssqlite.h | 10 + 11 files changed, 865 insertions(+), 654 deletions(-) create mode 100644 libretroshare/src/gxs/rsgdp.cpp create mode 100644 libretroshare/src/gxs/rsgdp.h create mode 100644 libretroshare/src/gxs/rsgixs.cpp create mode 100644 libretroshare/src/gxs/rsgixs.h create mode 100644 libretroshare/src/gxs/rsgnp.cpp create mode 100644 libretroshare/src/gxs/rsgnp.h create mode 100644 libretroshare/src/gxs/rsgxs.cpp create mode 100644 libretroshare/src/gxs/rsgxs.h create mode 100644 libretroshare/src/util/rssqlite.cpp create mode 100644 libretroshare/src/util/rssqlite.h diff --git a/libretroshare/src/gxs/rsgdp.cpp b/libretroshare/src/gxs/rsgdp.cpp new file mode 100644 index 000000000..8bebc85bd --- /dev/null +++ b/libretroshare/src/gxs/rsgdp.cpp @@ -0,0 +1,5 @@ +#include "rsgdp.h" + +RsGdp::RsGdp() +{ +} diff --git a/libretroshare/src/gxs/rsgdp.h b/libretroshare/src/gxs/rsgdp.h new file mode 100644 index 000000000..d1710dee5 --- /dev/null +++ b/libretroshare/src/gxs/rsgdp.h @@ -0,0 +1,58 @@ +#ifndef RSGDP_H +#define RSGDP_H + +#include + +#include "inttypes.h" +#include "util/rssqlite.h" + +/*! + * + * The main role of GDP is to receive and start sync requests + * and prepare exchange data for RsGnp. + * It is also the curator (write authority) of externally received messages + */ +class RsGdp +{ +public: + RsGdp(); +}; + +class RsGxsMessage { + +}; + +/*! + * + * + */ +class RsGss { + +public: + RsGss(RsSqlite*, uint8_t io_stat); + + /*! + * stores message in associate RsSqlite db + * if RsGss is in read only mode this function will always \n + * return false + * + * @param message the message to store + * @return true if message successfully stored + */ + virtual bool store(const RsGxsMessage& message) = 0; + + /*! + * retrieve message from associate RsSqlite db \n + * + * @return true if successfully retrieved, false otherwise + */ + virtual bool retrieve(const std::string msgId, RsGxsMessage&) = 0; + + uint8_t getIoStat(); + + + static uint8_t READ_ONLY; + static uint8_t READ_AND_WRITE; +}; + +#endif // RSGDP_H diff --git a/libretroshare/src/gxs/rsgixs.cpp b/libretroshare/src/gxs/rsgixs.cpp new file mode 100644 index 000000000..c03d23903 --- /dev/null +++ b/libretroshare/src/gxs/rsgixs.cpp @@ -0,0 +1,5 @@ +#include "rsgixs.h" + +RsGixs::RsGixs() +{ +} diff --git a/libretroshare/src/gxs/rsgixs.h b/libretroshare/src/gxs/rsgixs.h new file mode 100644 index 000000000..de3e0de82 --- /dev/null +++ b/libretroshare/src/gxs/rsgixs.h @@ -0,0 +1,19 @@ +#ifndef RSGIXS_H +#define RSGIXS_H + +#include "gxs/rsgxs.h" + +/*! + * Retroshare general identity exchange service + * provides a means to distribute identities among peers + * also provides encyption, decryption, verification, + * and signing functionality using any created identities + */ +class RsGixs : RsGxs +{ +public: + RsGixs(); + +}; + +#endif // RSGIXS_H diff --git a/libretroshare/src/gxs/rsgnp.cpp b/libretroshare/src/gxs/rsgnp.cpp new file mode 100644 index 000000000..dc4ab034d --- /dev/null +++ b/libretroshare/src/gxs/rsgnp.cpp @@ -0,0 +1,5 @@ +#include "rsgnp.h" + +RsGnp::RsGnp() +{ +} diff --git a/libretroshare/src/gxs/rsgnp.h b/libretroshare/src/gxs/rsgnp.h new file mode 100644 index 000000000..1d762747a --- /dev/null +++ b/libretroshare/src/gxs/rsgnp.h @@ -0,0 +1,20 @@ +#ifndef RSGNP_H +#define RSGNP_H + +#include "pqi/pqiservice.h" + + +/*! + * Retroshare general network protocol + * + * This deals with the receiving and sending + * RsGxs data + * + */ +class RsGnp +{ +public: + RsGnp(); +}; + +#endif // RSGNP_H diff --git a/libretroshare/src/gxs/rsgxs.cpp b/libretroshare/src/gxs/rsgxs.cpp new file mode 100644 index 000000000..e3e2a65ea --- /dev/null +++ b/libretroshare/src/gxs/rsgxs.cpp @@ -0,0 +1,5 @@ +#include "rsgxs.h" + +RsGxs::RsGxs() +{ +} diff --git a/libretroshare/src/gxs/rsgxs.h b/libretroshare/src/gxs/rsgxs.h new file mode 100644 index 000000000..be5bb736d --- /dev/null +++ b/libretroshare/src/gxs/rsgxs.h @@ -0,0 +1,60 @@ +#ifndef RSGXS_H +#define RSGXS_H + +/* + * libretroshare/src/gxs : rsgxs.h + * + * GXS interface for RetroShare. + * + * Copyright 2011 Christopher Evi-Parker + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License Version 2 as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + * USA. + * + * Please report all bugs and problems to "retroshare@lunamutt.com". + * + * This is *THE* auth manager. It provides the web-of-trust via + * gpgme, and authenticates the certificates that are managed + * by the sublayer AuthSSL. + * + */ + +#include "rsgdp.h" + +/*! + * Retroshare general exchange service + * This forms the basic interface that classes need to inherit + * in order to use the general exchange service + * General GNP drives the service. + * GDP deals with exporting and importing + * data from the derived class + * GXIP is used to maintain + */ +class RsGxs +{ +public: + RsGxs(); + +public: + + virtual void receiveMessage(RsGxsMessage*) = 0; + void sendMessage(RsGxsMessage*) = 0; + + /*! + * drives synchronisation between peers + */ + void tick(); +}; + +#endif // RSGXS_H diff --git a/libretroshare/src/libretroshare.pro b/libretroshare/src/libretroshare.pro index 1fe429cf0..69d4fe17a 100644 --- a/libretroshare/src/libretroshare.pro +++ b/libretroshare/src/libretroshare.pro @@ -1,654 +1,673 @@ -TEMPLATE = lib -#CONFIG += staticlib release -#CONFIG += staticlib testnetwork -CONFIG += staticlib bitdht -CONFIG -= qt -TARGET = retroshare - -CONFIG += test_voip - -# Beware: All data of the stripped services are lost -#CONFIG += minimal -DEFINES *= PQI_DISABLE_TUNNEL -#ENABLE_CACHE_OPT - -minimal { - CONFIG -= use_blogs - - DEFINES += MINIMAL_LIBRS -} - -profiling { - QMAKE_CXXFLAGS -= -fomit-frame-pointer - QMAKE_CXXFLAGS *= -pg -g -fno-omit-frame-pointer -} - -release { - # UDP and TUNNEL dont work anymore. - #DEFINES *= PQI_DISABLE_UDP -} - - - -testnetwork { - #DEFINES *= PQI_DISABLE_UDP - DEFINES *= PQI_DISABLE_TUNNEL - - # DEFINES *= AUTHSSL_DEBUG GPG_DEBUG - # DEFINES *= CONN_DEBUG - # DEFINES *= P3DISC_DEBUG - - # DEFINES *= PGRP_DEBUG - # DEFINES *= PERSON_DEBUG - - #DEFINES *= DEBUG_UDP_SORTER DEBUG_UDP_LAYER EXTADDRSEARCH_DEBUG - - QMAKE_CXXFLAGS -= -fomit-frame-pointer - QMAKE_CXXFLAGS -= -O2 - QMAKE_CXXFLAGS *= -g -fno-omit-frame-pointer -} - - -#CONFIG += debug -debug { -# DEFINES *= DEBUG -# DEFINES *= OPENDHT_DEBUG DHT_DEBUG CONN_DEBUG DEBUG_UDP_SORTER P3DISC_DEBUG DEBUG_UDP_LAYER FT_DEBUG EXTADDRSEARCH_DEBUG -# DEFINES *= CONTROL_DEBUG FT_DEBUG DEBUG_FTCHUNK P3TURTLE_DEBUG -# DEFINES *= P3TURTLE_DEBUG -# DEFINES *= NET_DEBUG -# DEFINES *= DISTRIB_DEBUG -# DEFINES *= P3TURTLE_DEBUG FT_DEBUG DEBUG_FTCHUNK MPLEX_DEBUG -# DEFINES *= STATUS_DEBUG SERV_DEBUG RSSERIAL_DEBUG #CONN_DEBUG - - QMAKE_CXXFLAGS -= -O2 -fomit-frame-pointer - QMAKE_CXXFLAGS *= -g -fno-omit-frame-pointer -} - -bitdht { - -HEADERS += dht/p3bitdht.h \ - dht/connectstatebox.h \ - dht/stunaddrassist.h - -SOURCES += dht/p3bitdht.cc \ - dht/p3bitdht_interface.cc \ - dht/p3bitdht_peers.cc \ - dht/p3bitdht_peernet.cc \ - dht/p3bitdht_relay.cc \ - dht/connectstatebox.cc - -HEADERS += tcponudp/udppeer.h \ - tcponudp/bio_tou.h \ - tcponudp/tcppacket.h \ - tcponudp/tcpstream.h \ - tcponudp/tou.h \ - tcponudp/udpstunner.h \ - tcponudp/udprelay.h \ - -SOURCES += tcponudp/udppeer.cc \ - tcponudp/tcppacket.cc \ - tcponudp/tcpstream.cc \ - tcponudp/tou.cc \ - tcponudp/bss_tou.c \ - tcponudp/udpstunner.cc \ - tcponudp/udprelay.cc \ - -# These two aren't actually used (and don't compile) .... -# but could be useful later -# -# tcponudp/udpstunner.h \ -# tcponudp/udpstunner.cc \ -# - - - BITDHT_DIR = ../../libbitdht/src - INCLUDEPATH += . $${BITDHT_DIR} - # The next line if for compliance with debian packages. Keep it! - INCLUDEPATH += ../libbitdht - DEFINES *= RS_USE_BITDHT -} - - - -test_bitdht { - # DISABLE TCP CONNECTIONS... - DEFINES *= P3CONNMGR_NO_TCP_CONNECTIONS - - # NO AUTO CONNECTIONS??? FOR TESTING DHT STATUS. - DEFINES *= P3CONNMGR_NO_AUTO_CONNECTION - - # ENABLED UDP NOW. -} - - - - -use_blogs { - - HEADERS += services/p3blogs.h - SOURCES += services/p3blogs.cc - - DEFINES *= RS_USE_BLOGS -} - - - -PUBLIC_HEADERS = retroshare/rsblogs.h \ - retroshare/rschannels.h \ - retroshare/rsdisc.h \ - retroshare/rsdistrib.h \ - retroshare/rsexpr.h \ - retroshare/rsfiles.h \ - retroshare/rsforums.h \ - retroshare/rshistory.h \ - retroshare/rsiface.h \ - retroshare/rsinit.h \ - retroshare/rsplugin.h \ - retroshare/rsloginhandler.h \ - retroshare/rsmsgs.h \ - retroshare/rsnotify.h \ - retroshare/rspeers.h \ - retroshare/rsrank.h \ - retroshare/rsstatus.h \ - retroshare/rsturtle.h \ - retroshare/rstypes.h \ - retroshare/rsdht.h \ - retroshare/rsdsdv.h \ - retroshare/rsconfig.h - -HEADERS += plugins/pluginmanager.h \ - plugins/dlfcn_win32.h \ - serialiser/rspluginitems.h - -HEADERS += $$PUBLIC_HEADERS - -# public headers to be... -HEADERS += retroshare/rsgame.h \ - retroshare/rsphoto.h - -################################# Linux ########################################## -linux-* { - isEmpty(PREFIX) { PREFIX = /usr } - isEmpty(INC_DIR) { INC_DIR = $${PREFIX}/include/retroshare/ } - isEmpty(LIB_DIR) { LIB_DIR = $${PREFIX}/lib/ } - - # These two lines fixe compilation on ubuntu natty. Probably a ubuntu packaging error. - INCLUDEPATH *= /usr/lib/x86_64-linux-gnu/glib-2.0/include/ - INCLUDEPATH *= /usr/lib/i386-linux-gnu/glib-2.0/include/ - - DESTDIR = lib - QMAKE_CXXFLAGS *= -Wall -D_FILE_OFFSET_BITS=64 - QMAKE_CC = g++ - - SSL_DIR = /usr/include/openssl - UPNP_DIR = /usr/include/upnp - INCLUDEPATH += . $${SSL_DIR} $${UPNP_DIR} - - #gpg files - system(which gpg-error-config >/dev/null 2>&1) { - INCLUDEPATH += $$system(gpg-error-config --cflags | sed -e "s/-I//g") - } else { - message(Could not find gpg-error-config on your system, assuming gpg-error.h is in /usr/include) - } - system(which gpgme-config >/dev/null 2>&1) { - INCLUDEPATH += $$system(gpgme-config --cflags | sed -e "s/-I//g") - } else { - message(Could not find gpgme-config on your system, assuming gpgme.h is in /usr/include) - } - - #libupnp implementation files - HEADERS += upnp/UPnPBase.h - SOURCES += upnp/UPnPBase.cpp - - # where to put the shared library itself - target.path = $$LIB_DIR - INSTALLS *= target - - # where to put the library's interface - include_rsiface.path = $${INC_DIR} - include_rsiface.files = $$PUBLIC_HEADERS - INSTALLS += include_rsiface - - #CONFIG += version_detail_bash_script - - DEFINES *= UBUNTU - INCLUDEPATH += /usr/include/glib-2.0/ /usr/lib/glib-2.0/include - LIBS *= -lgnome-keyring -} - -linux-g++ { - OBJECTS_DIR = temp/linux-g++/obj -} - -linux-g++-64 { - OBJECTS_DIR = temp/linux-g++-64/obj -} - -version_detail_bash_script { - QMAKE_EXTRA_TARGETS += write_version_detail - PRE_TARGETDEPS = write_version_detail - write_version_detail.commands = ./version_detail.sh -} - -#################### Cross compilation for windows under Linux #################### - -win32-x-g++ { - OBJECTS_DIR = temp/win32xgcc/obj - DESTDIR = lib.win32xgcc - DEFINES *= WINDOWS_SYS WIN32 WIN_CROSS_UBUNTU - QMAKE_CXXFLAGS *= -Wmissing-include-dirs - QMAKE_CC = i586-mingw32msvc-g++ - QMAKE_LIB = i586-mingw32msvc-ar - QMAKE_AR = i586-mingw32msvc-ar - DEFINES *= STATICLIB WIN32 - - #miniupnp implementation files - HEADERS += upnp/upnputil.h - SOURCES += upnp/upnputil.c - - SSL_DIR=../../../../openssl - UPNPC_DIR = ../../../../miniupnpc-1.3 - GPG_ERROR_DIR = ../../../../libgpg-error-1.7 - GPGME_DIR = ../../../../gpgme-1.1.8 - - INCLUDEPATH *= /usr/i586-mingw32msvc/include ${HOME}/.wine/drive_c/pthreads/include/ -} -################################# Windows ########################################## - - -win32 { - QMAKE_CC = g++ - OBJECTS_DIR = temp/obj - MOC_DIR = temp/moc - DEFINES *= WINDOWS_SYS WIN32 STATICLIB MINGW - DEFINES *= MINIUPNPC_VERSION=13 - DESTDIR = lib - - # Switch off optimization for release version - QMAKE_CXXFLAGS_RELEASE -= -O2 - QMAKE_CXXFLAGS_RELEASE += -O0 - QMAKE_CFLAGS_RELEASE -= -O2 - QMAKE_CFLAGS_RELEASE += -O0 - - # Switch on optimization for debug version - #QMAKE_CXXFLAGS_DEBUG += -O2 - #QMAKE_CFLAGS_DEBUG += -O2 - - DEFINES += USE_CMD_ARGS - - #miniupnp implementation files - HEADERS += upnp/upnputil.h - SOURCES += upnp/upnputil.c - - - UPNPC_DIR = ../../../../miniupnpc-1.3 - GPG_ERROR_DIR = ../../../../libgpg-error-1.7 - GPGME_DIR = ../../../../gpgme-1.1.8 - - PTHREADS_DIR = ../../../../pthreads-w32-2-8-0-release - ZLIB_DIR = ../../../../zlib-1.2.3 - SSL_DIR = ../../../../OpenSSL - - - INCLUDEPATH += . $${SSL_DIR}/include $${UPNPC_DIR} $${PTHREADS_DIR} $${ZLIB_DIR} $${GPGME_DIR}/src $${GPG_ERROR_DIR}/src -} - - -################################# MacOSX ########################################## - -mac { - QMAKE_CC = g++ - OBJECTS_DIR = temp/obj - MOC_DIR = temp/moc - #DEFINES = WINDOWS_SYS WIN32 STATICLIB MINGW - #DEFINES *= MINIUPNPC_VERSION=13 - DESTDIR = lib - - #miniupnp implementation files - HEADERS += upnp/upnputil.h - SOURCES += upnp/upnputil.c - - CONFIG += zeroconf - - # Beautiful Hack to fix 64bit file access. - QMAKE_CXXFLAGS *= -Dfseeko64=fseeko -Dftello64=ftello -Dfopen64=fopen -Dvstatfs64=vstatfs - - UPNPC_DIR = ../../../miniupnpc-1.0 - GPG_ERROR_DIR = ../../../../libgpg-error-1.7 - GPGME_DIR = ../../../../gpgme-1.1.8 - - INCLUDEPATH += . $${UPNPC_DIR} - #INCLUDEPATH += . $${UPNPC_DIR} $${GPGME_DIR}/src $${GPG_ERROR_DIR}/src -} - -freebsd-* { - INCLUDEPATH *= /usr/local/include/gpgme - INCLUDEPATH *= /usr/local/include/glib-2.0 - - QMAKE_CXXFLAGS *= -Dfseeko64=fseeko -Dftello64=ftello -Dstat64=stat -Dstatvfs64=statvfs -Dfopen64=fopen - - #libupnp implementation files - HEADERS += upnp/UPnPBase.h - SOURCES += upnp/UPnPBase.cpp - -} - -################################### COMMON stuff ################################## - -HEADERS += dbase/cachestrapper.h \ - dbase/fimonitor.h \ - dbase/findex.h \ - dbase/fistore.h - -#HEADERS += dht/p3bitdht.h \ - -HEADERS += ft/ftchunkmap.h \ - ft/ftcontroller.h \ - ft/ftdata.h \ - ft/ftdatamultiplex.h \ - ft/ftdbase.h \ - ft/ftextralist.h \ - ft/ftfilecreator.h \ - ft/ftfileprovider.h \ - ft/ftfilesearch.h \ - ft/ftsearch.h \ - ft/ftserver.h \ - ft/fttransfermodule.h - -HEADERS += pqi/authssl.h \ - pqi/authgpg.h \ - pqi/cleanupxpgp.h \ - pqi/p3cfgmgr.h \ - pqi/p3peermgr.h \ - pqi/p3linkmgr.h \ - pqi/p3netmgr.h \ - pqi/p3dhtmgr.h \ - pqi/p3notify.h \ - pqi/p3upnpmgr.h \ - pqi/pqiqos.h \ - pqi/pqi.h \ - pqi/pqi_base.h \ - pqi/pqiarchive.h \ - pqi/pqiassist.h \ - pqi/pqibin.h \ - pqi/pqihandler.h \ - pqi/pqihash.h \ - pqi/p3historymgr.h \ - pqi/pqiindic.h \ - pqi/pqiipset.h \ - pqi/pqilistener.h \ - pqi/pqiloopback.h \ - pqi/pqimonitor.h \ - pqi/pqinetwork.h \ - pqi/pqinotify.h \ - pqi/pqiperson.h \ - pqi/pqipersongrp.h \ - pqi/pqisecurity.h \ - pqi/pqiservice.h \ - pqi/pqissl.h \ - pqi/pqissllistener.h \ - pqi/pqisslpersongrp.h \ - pqi/pqissltunnel.h \ - pqi/pqissludp.h \ - pqi/pqistore.h \ - pqi/pqistreamer.h \ - pqi/sslfns.h \ - pqi/pqinetstatebox.h - -HEADERS += rsserver/p3discovery.h \ - rsserver/p3face.h \ - rsserver/p3history.h \ - rsserver/p3msgs.h \ - rsserver/p3peers.h \ - rsserver/p3photo.h \ - rsserver/p3status.h \ - rsserver/p3serverconfig.h - -HEADERS += serialiser/rsbaseitems.h \ - serialiser/rsbaseserial.h \ - serialiser/rsblogitems.h \ - serialiser/rschannelitems.h \ - serialiser/rsconfigitems.h \ - serialiser/rsdiscitems.h \ - serialiser/rsdistribitems.h \ - serialiser/rsforumitems.h \ - serialiser/rsgameitems.h \ - serialiser/rshistoryitems.h \ - serialiser/rsmsgitems.h \ - serialiser/rsphotoitems.h \ - serialiser/rsserial.h \ - serialiser/rsserviceids.h \ - serialiser/rsserviceitems.h \ - serialiser/rsstatusitems.h \ - serialiser/rstlvaddrs.h \ - serialiser/rstlvbase.h \ - serialiser/rstlvkeys.h \ - serialiser/rstlvkvwide.h \ - serialiser/rstlvtypes.h \ - serialiser/rstlvutil.h \ - serialiser/rstlvdsdv.h \ - serialiser/rsdsdvitems.h \ - serialiser/rstlvbanlist.h \ - serialiser/rsbanlistitems.h \ - serialiser/rstunnelitems.h - -HEADERS += services/p3channels.h \ - services/p3chatservice.h \ - services/p3disc.h \ - services/p3forums.h \ - services/p3gamelauncher.h \ - services/p3gameservice.h \ - services/p3msgservice.h \ - services/p3photoservice.h \ - services/p3service.h \ - services/p3statusservice.h \ - services/p3dsdv.h \ - services/p3banlist.h \ - services/p3tunnel.h - -HEADERS += distrib/p3distrib.h \ - distrib/p3distribsecurity.h -# services/p3blogs.h \ - -HEADERS += turtle/p3turtle.h \ - turtle/rsturtleitem.h \ - turtle/turtletypes.h - -HEADERS += upnp/upnphandler.h - -HEADERS += util/folderiterator.h \ - util/rsdebug.h \ - util/smallobject.h \ - util/rsdir.h \ - util/rsdiscspace.h \ - util/rsnet.h \ - util/extaddrfinder.h \ - util/dnsresolver.h \ - util/rsprint.h \ - util/rsstring.h \ - util/rsthreads.h \ - util/rsversion.h \ - util/rswin.h \ - util/rsrandom.h \ - util/pugiconfig.h \ - util/pugixml.h - -SOURCES += dbase/cachestrapper.cc \ - dbase/fimonitor.cc \ - dbase/findex.cc \ - dbase/fistore.cc \ - dbase/rsexpr.cc - - -SOURCES += ft/ftchunkmap.cc \ - ft/ftcontroller.cc \ - ft/ftdata.cc \ - ft/ftdatamultiplex.cc \ - ft/ftdbase.cc \ - ft/ftextralist.cc \ - ft/ftfilecreator.cc \ - ft/ftfileprovider.cc \ - ft/ftfilesearch.cc \ - ft/ftserver.cc \ - ft/fttransfermodule.cc \ - -SOURCES += pqi/authgpg.cc \ - pqi/authssl.cc \ - pqi/cleanupxpgp.cc \ - pqi/p3cfgmgr.cc \ - pqi/p3peermgr.cc \ - pqi/p3linkmgr.cc \ - pqi/p3netmgr.cc \ - pqi/p3dhtmgr.cc \ - pqi/p3notify.cc \ - pqi/pqiqos.cc \ - pqi/pqiarchive.cc \ - pqi/pqibin.cc \ - pqi/pqihandler.cc \ - pqi/p3historymgr.cc \ - pqi/pqiipset.cc \ - pqi/pqiloopback.cc \ - pqi/pqimonitor.cc \ - pqi/pqinetwork.cc \ - pqi/pqiperson.cc \ - pqi/pqipersongrp.cc \ - pqi/pqisecurity.cc \ - pqi/pqiservice.cc \ - pqi/pqissl.cc \ - pqi/pqissllistener.cc \ - pqi/pqisslpersongrp.cc \ - pqi/pqissltunnel.cc \ - pqi/pqissludp.cc \ - pqi/pqistore.cc \ - pqi/pqistreamer.cc \ - pqi/sslfns.cc \ - pqi/pqinetstatebox.cc - -SOURCES += rsserver/p3discovery.cc \ - rsserver/p3face-config.cc \ - rsserver/p3face-msgs.cc \ - rsserver/p3face-server.cc \ - rsserver/p3history.cc \ - rsserver/p3msgs.cc \ - rsserver/p3peers.cc \ - rsserver/p3photo.cc \ - rsserver/p3status.cc \ - rsserver/rsiface.cc \ - rsserver/rsinit.cc \ - rsserver/rsloginhandler.cc \ - rsserver/rstypes.cc \ - rsserver/p3serverconfig.cc - -SOURCES += plugins/pluginmanager.cc \ - plugins/dlfcn_win32.cc \ - serialiser/rspluginitems.cc - -SOURCES += serialiser/rsbaseitems.cc \ - serialiser/rsbaseserial.cc \ - serialiser/rsblogitems.cc \ - serialiser/rschannelitems.cc \ - serialiser/rsconfigitems.cc \ - serialiser/rsdiscitems.cc \ - serialiser/rsdistribitems.cc \ - serialiser/rsforumitems.cc \ - serialiser/rsgameitems.cc \ - serialiser/rshistoryitems.cc \ - serialiser/rsmsgitems.cc \ - serialiser/rsphotoitems.cc \ - serialiser/rsserial.cc \ - serialiser/rsstatusitems.cc \ - serialiser/rstlvaddrs.cc \ - serialiser/rstlvbase.cc \ - serialiser/rstlvfileitem.cc \ - serialiser/rstlvimage.cc \ - serialiser/rstlvkeys.cc \ - serialiser/rstlvkvwide.cc \ - serialiser/rstlvtypes.cc \ - serialiser/rstlvutil.cc \ - serialiser/rstlvdsdv.cc \ - serialiser/rsdsdvitems.cc \ - serialiser/rstlvbanlist.cc \ - serialiser/rsbanlistitems.cc \ - serialiser/rstunnelitems.cc - -SOURCES += services/p3channels.cc \ - services/p3chatservice.cc \ - services/p3disc.cc \ - services/p3forums.cc \ - services/p3gamelauncher.cc \ - services/p3msgservice.cc \ - services/p3photoservice.cc \ - services/p3service.cc \ - services/p3statusservice.cc \ - services/p3dsdv.cc \ - services/p3banlist.cc - -# removed because getPeer() doesn t exist services/p3tunnel.cc - -SOURCES += distrib/p3distrib.cc \ - distrib/p3distribsecurity.cc - -SOURCES += turtle/p3turtle.cc \ - turtle/rsturtleitem.cc -# turtle/turtlerouting.cc \ -# turtle/turtlesearch.cc \ -# turtle/turtletunnels.cc - -SOURCES += upnp/upnphandler.cc - -SOURCES += util/folderiterator.cc \ - util/rsdebug.cc \ - util/smallobject.cc \ - util/rsdir.cc \ - util/rsdiscspace.cc \ - util/rsnet.cc \ - util/extaddrfinder.cc \ - util/dnsresolver.cc \ - util/rsprint.cc \ - util/rsstring.cc \ - util/rsthreads.cc \ - util/rsversion.cc \ - util/rswin.cc \ - util/rsrandom.cc \ - util/pugixml.cc - - -# VOIP TEST STUFF -HEADERS += retroshare/rsvoip.h \ - serialiser/rsvoipitems.h \ - services/p3vors.h - -SOURCES += serialiser/rsvoipitems.cc \ - services/p3vors.cc - - - -minimal { - SOURCES -= rsserver/p3msgs.cc \ - rsserver/p3status.cc \ - rsserver/p3photo.cc - - SOURCES -= serialiser/rsforumitems.cc \ - serialiser/rsstatusitems.cc \ - serialiser/rschannelitems.cc \ - serialiser/rsgameitems.cc \ - serialiser/rsphotoitems.cc - - SOURCES -= services/p3forums.cc \ - services/p3msgservice.cc \ - services/p3statusservice.cc \ - services/p3channels.cc \ - services/p3gamelauncher.cc \ - services/p3photoservice.cc -} - -zeroconf { - -HEADERS += zeroconf/p3zeroconf.h \ - -SOURCES += zeroconf/p3zeroconf.cc \ - - DEFINES *= RS_ENABLE_ZEROCONF - -} - +TEMPLATE = lib +#CONFIG += staticlib release +#CONFIG += staticlib testnetwork +CONFIG += staticlib bitdht +CONFIG -= qt +TARGET = retroshare + +CONFIG += test_voip + +# Beware: All data of the stripped services are lost +#CONFIG += minimal +DEFINES *= PQI_DISABLE_TUNNEL +#ENABLE_CACHE_OPT + +minimal { + CONFIG -= use_blogs + + DEFINES += MINIMAL_LIBRS +} + +profiling { + QMAKE_CXXFLAGS -= -fomit-frame-pointer + QMAKE_CXXFLAGS *= -pg -g -fno-omit-frame-pointer +} + +release { + # UDP and TUNNEL dont work anymore. + #DEFINES *= PQI_DISABLE_UDP +} + + + +testnetwork { + #DEFINES *= PQI_DISABLE_UDP + DEFINES *= PQI_DISABLE_TUNNEL + + # DEFINES *= AUTHSSL_DEBUG GPG_DEBUG + # DEFINES *= CONN_DEBUG + # DEFINES *= P3DISC_DEBUG + + # DEFINES *= PGRP_DEBUG + # DEFINES *= PERSON_DEBUG + + #DEFINES *= DEBUG_UDP_SORTER DEBUG_UDP_LAYER EXTADDRSEARCH_DEBUG + + QMAKE_CXXFLAGS -= -fomit-frame-pointer + QMAKE_CXXFLAGS -= -O2 + QMAKE_CXXFLAGS *= -g -fno-omit-frame-pointer +} + + +#CONFIG += debug +debug { +# DEFINES *= DEBUG +# DEFINES *= OPENDHT_DEBUG DHT_DEBUG CONN_DEBUG DEBUG_UDP_SORTER P3DISC_DEBUG DEBUG_UDP_LAYER FT_DEBUG EXTADDRSEARCH_DEBUG +# DEFINES *= CONTROL_DEBUG FT_DEBUG DEBUG_FTCHUNK P3TURTLE_DEBUG +# DEFINES *= P3TURTLE_DEBUG +# DEFINES *= NET_DEBUG +# DEFINES *= DISTRIB_DEBUG +# DEFINES *= P3TURTLE_DEBUG FT_DEBUG DEBUG_FTCHUNK MPLEX_DEBUG +# DEFINES *= STATUS_DEBUG SERV_DEBUG RSSERIAL_DEBUG #CONN_DEBUG + + QMAKE_CXXFLAGS -= -O2 -fomit-frame-pointer + QMAKE_CXXFLAGS *= -g -fno-omit-frame-pointer +} + +bitdht { + +HEADERS += dht/p3bitdht.h \ + dht/connectstatebox.h \ + dht/stunaddrassist.h + +SOURCES += dht/p3bitdht.cc \ + dht/p3bitdht_interface.cc \ + dht/p3bitdht_peers.cc \ + dht/p3bitdht_peernet.cc \ + dht/p3bitdht_relay.cc \ + dht/connectstatebox.cc + +HEADERS += tcponudp/udppeer.h \ + tcponudp/bio_tou.h \ + tcponudp/tcppacket.h \ + tcponudp/tcpstream.h \ + tcponudp/tou.h \ + tcponudp/udpstunner.h \ + tcponudp/udprelay.h \ + +SOURCES += tcponudp/udppeer.cc \ + tcponudp/tcppacket.cc \ + tcponudp/tcpstream.cc \ + tcponudp/tou.cc \ + tcponudp/bss_tou.c \ + tcponudp/udpstunner.cc \ + tcponudp/udprelay.cc \ + +# These two aren't actually used (and don't compile) .... +# but could be useful later +# +# tcponudp/udpstunner.h \ +# tcponudp/udpstunner.cc \ +# + + + BITDHT_DIR = ../../libbitdht/src + INCLUDEPATH += . $${BITDHT_DIR} + # The next line if for compliance with debian packages. Keep it! + INCLUDEPATH += ../libbitdht + DEFINES *= RS_USE_BITDHT +} + + + +test_bitdht { + # DISABLE TCP CONNECTIONS... + DEFINES *= P3CONNMGR_NO_TCP_CONNECTIONS + + # NO AUTO CONNECTIONS??? FOR TESTING DHT STATUS. + DEFINES *= P3CONNMGR_NO_AUTO_CONNECTION + + # ENABLED UDP NOW. +} + + + + +use_blogs { + + HEADERS += services/p3blogs.h + SOURCES += services/p3blogs.cc + + DEFINES *= RS_USE_BLOGS +} + + + +PUBLIC_HEADERS = retroshare/rsblogs.h \ + retroshare/rschannels.h \ + retroshare/rsdisc.h \ + retroshare/rsdistrib.h \ + retroshare/rsexpr.h \ + retroshare/rsfiles.h \ + retroshare/rsforums.h \ + retroshare/rshistory.h \ + retroshare/rsiface.h \ + retroshare/rsinit.h \ + retroshare/rsplugin.h \ + retroshare/rsloginhandler.h \ + retroshare/rsmsgs.h \ + retroshare/rsnotify.h \ + retroshare/rspeers.h \ + retroshare/rsrank.h \ + retroshare/rsstatus.h \ + retroshare/rsturtle.h \ + retroshare/rstypes.h \ + retroshare/rsdht.h \ + retroshare/rsdsdv.h \ + retroshare/rsconfig.h + +HEADERS += plugins/pluginmanager.h \ + plugins/dlfcn_win32.h \ + serialiser/rspluginitems.h \ + gxs/rsgxs.h \ + gxs/rsgnp.h \ + gxs/rsgdp.h \ + util/rssqlite.h \ + gxs/rsgixs.h + +HEADERS += $$PUBLIC_HEADERS + +# public headers to be... +HEADERS += retroshare/rsgame.h \ + retroshare/rsphoto.h + +################################# Linux ########################################## +linux-* { + isEmpty(PREFIX) { PREFIX = /usr } + isEmpty(INC_DIR) { INC_DIR = $${PREFIX}/include/retroshare/ } + isEmpty(LIB_DIR) { LIB_DIR = $${PREFIX}/lib/ } + + # These two lines fixe compilation on ubuntu natty. Probably a ubuntu packaging error. + INCLUDEPATH *= /usr/lib/x86_64-linux-gnu/glib-2.0/include/ + INCLUDEPATH *= /usr/lib/i386-linux-gnu/glib-2.0/include/ + + DESTDIR = lib + QMAKE_CXXFLAGS *= -Wall -D_FILE_OFFSET_BITS=64 + QMAKE_CC = g++ + + SSL_DIR = /usr/include/openssl + UPNP_DIR = /usr/include/upnp + INCLUDEPATH += . $${SSL_DIR} $${UPNP_DIR} + + #gpg files + system(which gpg-error-config >/dev/null 2>&1) { + INCLUDEPATH += $$system(gpg-error-config --cflags | sed -e "s/-I//g") + } else { + message(Could not find gpg-error-config on your system, assuming gpg-error.h is in /usr/include) + } + system(which gpgme-config >/dev/null 2>&1) { + INCLUDEPATH += $$system(gpgme-config --cflags | sed -e "s/-I//g") + } else { + message(Could not find gpgme-config on your system, assuming gpgme.h is in /usr/include) + } + + #libupnp implementation files + HEADERS += upnp/UPnPBase.h + SOURCES += upnp/UPnPBase.cpp + + # where to put the shared library itself + target.path = $$LIB_DIR + INSTALLS *= target + + # where to put the library's interface + include_rsiface.path = $${INC_DIR} + include_rsiface.files = $$PUBLIC_HEADERS + INSTALLS += include_rsiface + + #CONFIG += version_detail_bash_script + + DEFINES *= UBUNTU + INCLUDEPATH += /usr/include/glib-2.0/ /usr/lib/glib-2.0/include + LIBS *= -lgnome-keyring +} + +linux-g++ { + OBJECTS_DIR = temp/linux-g++/obj +} + +linux-g++-64 { + OBJECTS_DIR = temp/linux-g++-64/obj +} + +version_detail_bash_script { + QMAKE_EXTRA_TARGETS += write_version_detail + PRE_TARGETDEPS = write_version_detail + write_version_detail.commands = ./version_detail.sh +} + +#################### Cross compilation for windows under Linux #################### + +win32-x-g++ { + OBJECTS_DIR = temp/win32xgcc/obj + DESTDIR = lib.win32xgcc + DEFINES *= WINDOWS_SYS WIN32 WIN_CROSS_UBUNTU + QMAKE_CXXFLAGS *= -Wmissing-include-dirs + QMAKE_CC = i586-mingw32msvc-g++ + QMAKE_LIB = i586-mingw32msvc-ar + QMAKE_AR = i586-mingw32msvc-ar + DEFINES *= STATICLIB WIN32 + + #miniupnp implementation files + HEADERS += upnp/upnputil.h + SOURCES += upnp/upnputil.c + + SSL_DIR=../../../../openssl + UPNPC_DIR = ../../../../miniupnpc-1.3 + GPG_ERROR_DIR = ../../../../libgpg-error-1.7 + GPGME_DIR = ../../../../gpgme-1.1.8 + + INCLUDEPATH *= /usr/i586-mingw32msvc/include ${HOME}/.wine/drive_c/pthreads/include/ +} +################################# Windows ########################################## + + +win32 { + QMAKE_CC = g++ + OBJECTS_DIR = temp/obj + MOC_DIR = temp/moc + DEFINES *= WINDOWS_SYS WIN32 STATICLIB MINGW + DEFINES *= MINIUPNPC_VERSION=13 + DESTDIR = lib + + # Switch off optimization for release version + QMAKE_CXXFLAGS_RELEASE -= -O2 + QMAKE_CXXFLAGS_RELEASE += -O0 + QMAKE_CFLAGS_RELEASE -= -O2 + QMAKE_CFLAGS_RELEASE += -O0 + + # Switch on optimization for debug version + #QMAKE_CXXFLAGS_DEBUG += -O2 + #QMAKE_CFLAGS_DEBUG += -O2 + + DEFINES += USE_CMD_ARGS + + #miniupnp implementation files + HEADERS += upnp/upnputil.h + SOURCES += upnp/upnputil.c + + + UPNPC_DIR = ../../../../miniupnpc-1.3 + GPG_ERROR_DIR = ../../../../libgpg-error-1.7 + GPGME_DIR = ../../../../gpgme-1.1.8 + + PTHREADS_DIR = ../../../../pthreads-w32-2-8-0-release + ZLIB_DIR = ../../../../zlib-1.2.3 + SSL_DIR = ../../../../OpenSSL + + + INCLUDEPATH += . $${SSL_DIR}/include $${UPNPC_DIR} $${PTHREADS_DIR} $${ZLIB_DIR} $${GPGME_DIR}/src $${GPG_ERROR_DIR}/src +} + + +################################# MacOSX ########################################## + +mac { + QMAKE_CC = g++ + OBJECTS_DIR = temp/obj + MOC_DIR = temp/moc + #DEFINES = WINDOWS_SYS WIN32 STATICLIB MINGW + #DEFINES *= MINIUPNPC_VERSION=13 + DESTDIR = lib + + #miniupnp implementation files + HEADERS += upnp/upnputil.h + SOURCES += upnp/upnputil.c + + CONFIG += zeroconf + + # Beautiful Hack to fix 64bit file access. + QMAKE_CXXFLAGS *= -Dfseeko64=fseeko -Dftello64=ftello -Dfopen64=fopen -Dvstatfs64=vstatfs + + UPNPC_DIR = ../../../miniupnpc-1.0 + GPG_ERROR_DIR = ../../../../libgpg-error-1.7 + GPGME_DIR = ../../../../gpgme-1.1.8 + + INCLUDEPATH += . $${UPNPC_DIR} + #INCLUDEPATH += . $${UPNPC_DIR} $${GPGME_DIR}/src $${GPG_ERROR_DIR}/src +} + +freebsd-* { + INCLUDEPATH *= /usr/local/include/gpgme + INCLUDEPATH *= /usr/local/include/glib-2.0 + + QMAKE_CXXFLAGS *= -Dfseeko64=fseeko -Dftello64=ftello -Dstat64=stat -Dstatvfs64=statvfs -Dfopen64=fopen + + #libupnp implementation files + HEADERS += upnp/UPnPBase.h + SOURCES += upnp/UPnPBase.cpp + +} + +################################### COMMON stuff ################################## + +HEADERS += dbase/cachestrapper.h \ + dbase/fimonitor.h \ + dbase/findex.h \ + dbase/fistore.h + +#HEADERS += dht/p3bitdht.h \ + +HEADERS += ft/ftchunkmap.h \ + ft/ftcontroller.h \ + ft/ftdata.h \ + ft/ftdatamultiplex.h \ + ft/ftdbase.h \ + ft/ftextralist.h \ + ft/ftfilecreator.h \ + ft/ftfileprovider.h \ + ft/ftfilesearch.h \ + ft/ftsearch.h \ + ft/ftserver.h \ + ft/fttransfermodule.h + +HEADERS += pqi/authssl.h \ + pqi/authgpg.h \ + pqi/cleanupxpgp.h \ + pqi/p3cfgmgr.h \ + pqi/p3peermgr.h \ + pqi/p3linkmgr.h \ + pqi/p3netmgr.h \ + pqi/p3dhtmgr.h \ + pqi/p3notify.h \ + pqi/p3upnpmgr.h \ + pqi/pqiqos.h \ + pqi/pqi.h \ + pqi/pqi_base.h \ + pqi/pqiarchive.h \ + pqi/pqiassist.h \ + pqi/pqibin.h \ + pqi/pqihandler.h \ + pqi/pqihash.h \ + pqi/p3historymgr.h \ + pqi/pqiindic.h \ + pqi/pqiipset.h \ + pqi/pqilistener.h \ + pqi/pqiloopback.h \ + pqi/pqimonitor.h \ + pqi/pqinetwork.h \ + pqi/pqinotify.h \ + pqi/pqiperson.h \ + pqi/pqipersongrp.h \ + pqi/pqisecurity.h \ + pqi/pqiservice.h \ + pqi/pqissl.h \ + pqi/pqissllistener.h \ + pqi/pqisslpersongrp.h \ + pqi/pqissltunnel.h \ + pqi/pqissludp.h \ + pqi/pqistore.h \ + pqi/pqistreamer.h \ + pqi/sslfns.h \ + pqi/pqinetstatebox.h + +HEADERS += rsserver/p3discovery.h \ + rsserver/p3face.h \ + rsserver/p3history.h \ + rsserver/p3msgs.h \ + rsserver/p3peers.h \ + rsserver/p3photo.h \ + rsserver/p3status.h \ + rsserver/p3serverconfig.h + +HEADERS += serialiser/rsbaseitems.h \ + serialiser/rsbaseserial.h \ + serialiser/rsblogitems.h \ + serialiser/rschannelitems.h \ + serialiser/rsconfigitems.h \ + serialiser/rsdiscitems.h \ + serialiser/rsdistribitems.h \ + serialiser/rsforumitems.h \ + serialiser/rsgameitems.h \ + serialiser/rshistoryitems.h \ + serialiser/rsmsgitems.h \ + serialiser/rsphotoitems.h \ + serialiser/rsserial.h \ + serialiser/rsserviceids.h \ + serialiser/rsserviceitems.h \ + serialiser/rsstatusitems.h \ + serialiser/rstlvaddrs.h \ + serialiser/rstlvbase.h \ + serialiser/rstlvkeys.h \ + serialiser/rstlvkvwide.h \ + serialiser/rstlvtypes.h \ + serialiser/rstlvutil.h \ + serialiser/rstlvdsdv.h \ + serialiser/rsdsdvitems.h \ + serialiser/rstlvbanlist.h \ + serialiser/rsbanlistitems.h \ + serialiser/rstunnelitems.h + +HEADERS += services/p3channels.h \ + services/p3chatservice.h \ + services/p3disc.h \ + services/p3forums.h \ + services/p3gamelauncher.h \ + services/p3gameservice.h \ + services/p3msgservice.h \ + services/p3photoservice.h \ + services/p3service.h \ + services/p3statusservice.h \ + services/p3dsdv.h \ + services/p3banlist.h \ + services/p3tunnel.h + +HEADERS += distrib/p3distrib.h \ + distrib/p3distribsecurity.h +# services/p3blogs.h \ + +HEADERS += turtle/p3turtle.h \ + turtle/rsturtleitem.h \ + turtle/turtletypes.h + +HEADERS += upnp/upnphandler.h + +HEADERS += util/folderiterator.h \ + util/rsdebug.h \ + util/smallobject.h \ + util/rsdir.h \ + util/rsdiscspace.h \ + util/rsnet.h \ + util/extaddrfinder.h \ + util/dnsresolver.h \ + util/rsprint.h \ + util/rsstring.h \ + util/rsthreads.h \ + util/rsversion.h \ + util/rswin.h \ + util/rsrandom.h \ + util/pugiconfig.h \ + util/pugixml.h + +SOURCES += dbase/cachestrapper.cc \ + dbase/fimonitor.cc \ + dbase/findex.cc \ + dbase/fistore.cc \ + dbase/rsexpr.cc + + +SOURCES += ft/ftchunkmap.cc \ + ft/ftcontroller.cc \ + ft/ftdata.cc \ + ft/ftdatamultiplex.cc \ + ft/ftdbase.cc \ + ft/ftextralist.cc \ + ft/ftfilecreator.cc \ + ft/ftfileprovider.cc \ + ft/ftfilesearch.cc \ + ft/ftserver.cc \ + ft/fttransfermodule.cc \ + +SOURCES += pqi/authgpg.cc \ + pqi/authssl.cc \ + pqi/cleanupxpgp.cc \ + pqi/p3cfgmgr.cc \ + pqi/p3peermgr.cc \ + pqi/p3linkmgr.cc \ + pqi/p3netmgr.cc \ + pqi/p3dhtmgr.cc \ + pqi/p3notify.cc \ + pqi/pqiqos.cc \ + pqi/pqiarchive.cc \ + pqi/pqibin.cc \ + pqi/pqihandler.cc \ + pqi/p3historymgr.cc \ + pqi/pqiipset.cc \ + pqi/pqiloopback.cc \ + pqi/pqimonitor.cc \ + pqi/pqinetwork.cc \ + pqi/pqiperson.cc \ + pqi/pqipersongrp.cc \ + pqi/pqisecurity.cc \ + pqi/pqiservice.cc \ + pqi/pqissl.cc \ + pqi/pqissllistener.cc \ + pqi/pqisslpersongrp.cc \ + pqi/pqissltunnel.cc \ + pqi/pqissludp.cc \ + pqi/pqistore.cc \ + pqi/pqistreamer.cc \ + pqi/sslfns.cc \ + pqi/pqinetstatebox.cc + +SOURCES += rsserver/p3discovery.cc \ + rsserver/p3face-config.cc \ + rsserver/p3face-msgs.cc \ + rsserver/p3face-server.cc \ + rsserver/p3history.cc \ + rsserver/p3msgs.cc \ + rsserver/p3peers.cc \ + rsserver/p3photo.cc \ + rsserver/p3status.cc \ + rsserver/rsiface.cc \ + rsserver/rsinit.cc \ + rsserver/rsloginhandler.cc \ + rsserver/rstypes.cc \ + rsserver/p3serverconfig.cc + +SOURCES += plugins/pluginmanager.cc \ + plugins/dlfcn_win32.cc \ + serialiser/rspluginitems.cc + +SOURCES += serialiser/rsbaseitems.cc \ + serialiser/rsbaseserial.cc \ + serialiser/rsblogitems.cc \ + serialiser/rschannelitems.cc \ + serialiser/rsconfigitems.cc \ + serialiser/rsdiscitems.cc \ + serialiser/rsdistribitems.cc \ + serialiser/rsforumitems.cc \ + serialiser/rsgameitems.cc \ + serialiser/rshistoryitems.cc \ + serialiser/rsmsgitems.cc \ + serialiser/rsphotoitems.cc \ + serialiser/rsserial.cc \ + serialiser/rsstatusitems.cc \ + serialiser/rstlvaddrs.cc \ + serialiser/rstlvbase.cc \ + serialiser/rstlvfileitem.cc \ + serialiser/rstlvimage.cc \ + serialiser/rstlvkeys.cc \ + serialiser/rstlvkvwide.cc \ + serialiser/rstlvtypes.cc \ + serialiser/rstlvutil.cc \ + serialiser/rstlvdsdv.cc \ + serialiser/rsdsdvitems.cc \ + serialiser/rstlvbanlist.cc \ + serialiser/rsbanlistitems.cc \ + serialiser/rstunnelitems.cc + +SOURCES += services/p3channels.cc \ + services/p3chatservice.cc \ + services/p3disc.cc \ + services/p3forums.cc \ + services/p3gamelauncher.cc \ + services/p3msgservice.cc \ + services/p3photoservice.cc \ + services/p3service.cc \ + services/p3statusservice.cc \ + services/p3dsdv.cc \ + services/p3banlist.cc + +# removed because getPeer() doesn t exist services/p3tunnel.cc + +SOURCES += distrib/p3distrib.cc \ + distrib/p3distribsecurity.cc + +SOURCES += turtle/p3turtle.cc \ + turtle/rsturtleitem.cc +# turtle/turtlerouting.cc \ +# turtle/turtlesearch.cc \ +# turtle/turtletunnels.cc + +SOURCES += upnp/upnphandler.cc + +SOURCES += util/folderiterator.cc \ + util/rsdebug.cc \ + util/smallobject.cc \ + util/rsdir.cc \ + util/rsdiscspace.cc \ + util/rsnet.cc \ + util/extaddrfinder.cc \ + util/dnsresolver.cc \ + util/rsprint.cc \ + util/rsstring.cc \ + util/rsthreads.cc \ + util/rsversion.cc \ + util/rswin.cc \ + util/rsrandom.cc \ + util/pugixml.cc + + +# VOIP TEST STUFF +HEADERS += retroshare/rsvoip.h \ + serialiser/rsvoipitems.h \ + services/p3vors.h + +SOURCES += serialiser/rsvoipitems.cc \ + services/p3vors.cc + + + +minimal { + SOURCES -= rsserver/p3msgs.cc \ + rsserver/p3status.cc \ + rsserver/p3photo.cc + + SOURCES -= serialiser/rsforumitems.cc \ + serialiser/rsstatusitems.cc \ + serialiser/rschannelitems.cc \ + serialiser/rsgameitems.cc \ + serialiser/rsphotoitems.cc + + SOURCES -= services/p3forums.cc \ + services/p3msgservice.cc \ + services/p3statusservice.cc \ + services/p3channels.cc \ + services/p3gamelauncher.cc \ + services/p3photoservice.cc +} + +zeroconf { + +HEADERS += zeroconf/p3zeroconf.h \ + +SOURCES += zeroconf/p3zeroconf.cc \ + + DEFINES *= RS_ENABLE_ZEROCONF + +} + +SOURCES += \ + gxs/rsgxs.cpp + +SOURCES += \ + gxs/rsgnp.cpp + +SOURCES += \ + gxs/rsgdp.cpp + +SOURCES += \ + util/rssqlite.cpp + +SOURCES += \ + gxs/rsgixs.cpp diff --git a/libretroshare/src/util/rssqlite.cpp b/libretroshare/src/util/rssqlite.cpp new file mode 100644 index 000000000..75bb6632a --- /dev/null +++ b/libretroshare/src/util/rssqlite.cpp @@ -0,0 +1,5 @@ +#include "rssqlite.h" + +RsSqlite::RsSqlite() +{ +} diff --git a/libretroshare/src/util/rssqlite.h b/libretroshare/src/util/rssqlite.h new file mode 100644 index 000000000..4758606fd --- /dev/null +++ b/libretroshare/src/util/rssqlite.h @@ -0,0 +1,10 @@ +#ifndef RSSQLITE_H +#define RSSQLITE_H + +class RsSqlite +{ +public: + RsSqlite(); +}; + +#endif // RSSQLITE_H