mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 15:39:27 -05:00
clean the qmake files
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2318 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
4435ccf228
commit
94aa902a95
@ -1,15 +1,13 @@
|
||||
TEMPLATE = lib
|
||||
CONFIG += static release
|
||||
CONFIG += staticlib release
|
||||
TARGET = retroshare
|
||||
|
||||
DEFINES -= PQI_USE_XPGP
|
||||
DEFINES += RS_USE_PGPSSL
|
||||
|
||||
profiling {
|
||||
QMAKE_CXXFLAGS -= -fomit-frame-pointer
|
||||
QMAKE_CXXFLAGS *= -pg -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
|
||||
@ -18,7 +16,8 @@ debug {
|
||||
# DEFINES *= CONN_DEBUG P3DISC_DEBUG RSSERIAL_DEBUG RSITEM_DEBUG DEBUG_PQISSL DEBUG_PQISTREAMER
|
||||
# DEFINES *= NET_DEBUG
|
||||
# DEFINES *= DISTRIB_DEBUG
|
||||
QMAKE_CXXFLAGS *= -g
|
||||
QMAKE_CXXFLAGS -= -fomit-frame-pointer
|
||||
QMAKE_CXXFLAGS *= -g -fno-omit-frame-pointer
|
||||
}
|
||||
|
||||
################################# Linux ##########################################
|
||||
|
@ -33,7 +33,6 @@
|
||||
* only the owner ssl cert is store, the rest is jeus callback verification
|
||||
*
|
||||
* To use as an SSL authentication system, you must use a common CA certificate.
|
||||
* and compilation should be done with PQI_USE_XPGP off, and PQI_USE_SSLONLY on
|
||||
* * The pqissl stuff doesn't need to differentiate between SSL, SSL + PGP,
|
||||
* as its X509 certs.
|
||||
* * The rsserver stuff has to distinguish between all three types ;(
|
||||
|
@ -40,14 +40,7 @@
|
||||
|
||||
#include "pqi/p3connmgr.h"
|
||||
|
||||
/**************** PQI_USE_XPGP ******************/
|
||||
#if defined(PQI_USE_XPGP)
|
||||
#include "pqi/authxpgp.h"
|
||||
#else /* X509 Certificates */
|
||||
/**************** PQI_USE_XPGP ******************/
|
||||
#include "pqi/authssl.h"
|
||||
#endif /* X509 Certificates */
|
||||
/**************** PQI_USE_XPGP ******************/
|
||||
|
||||
#define WAITING_NOT 0
|
||||
#define WAITING_DELAY 1
|
||||
|
@ -36,9 +36,7 @@
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
|
||||
#ifdef RS_USE_PGPSSL
|
||||
#include <gpgme.h>
|
||||
#endif
|
||||
#include <gpgme.h>
|
||||
|
||||
const std::string CERT_SSL_ID = "--SSLID--";
|
||||
const std::string CERT_LOCATION = "--LOCATION--";
|
||||
|
@ -1,14 +1,20 @@
|
||||
CONFIG += qt gui uic qrc resources uitools pluginmgr newsettings install_rs
|
||||
QT += network xml script opengl
|
||||
CONFIG += qt newsettings install_rs thread release
|
||||
#CONFIG += pluginmgr
|
||||
QT += network xml
|
||||
TEMPLATE = app
|
||||
TARGET = RetroShare
|
||||
|
||||
DEFINES *= RS_RELEASE_VERSION
|
||||
DEFINES += RS_USE_PGPSSL
|
||||
DEFINES += RS_RELEASE_VERSION
|
||||
RCC_DIR = temp/qrc
|
||||
UI_DIR = temp/ui
|
||||
MOC_DIR = temp/moc
|
||||
|
||||
#CONFIG += debug
|
||||
debug {
|
||||
DEFINES+*= PEERS_DEBUG
|
||||
QMAKE_CXXFLAGS *= -g
|
||||
}
|
||||
|
||||
################################# Linux ##########################################
|
||||
# Put lib dir in QMAKE_LFLAGS so it appears before -L/usr/lib
|
||||
linux-* {
|
||||
|
@ -38,9 +38,7 @@
|
||||
/* for GPGME */
|
||||
#include "rsiface/rsinit.h"
|
||||
|
||||
#ifdef RS_USE_PGPSSL
|
||||
#include <gpgme.h>
|
||||
#endif
|
||||
#include <gpgme.h>
|
||||
|
||||
#include <sstream>
|
||||
|
||||
|
@ -25,9 +25,7 @@
|
||||
|
||||
#include "rsiface/rsinit.h"
|
||||
|
||||
#ifdef RS_USE_PGPSSL
|
||||
#include <gpgme.h>
|
||||
#endif
|
||||
#include <gpgme.h>
|
||||
|
||||
#include <QMenu>
|
||||
#include <QMouseEvent>
|
||||
@ -168,8 +166,6 @@ void NetworkView::insertPeers()
|
||||
continue;
|
||||
}
|
||||
|
||||
#ifdef RS_USE_PGPSSL
|
||||
|
||||
/* *** */
|
||||
RsPeerDetails detail;
|
||||
if (!rsPeers->getPeerDetails(*it, detail))
|
||||
@ -205,37 +201,6 @@ void NetworkView::insertPeers()
|
||||
}
|
||||
ui.graphicsView->addNode(type, *it, detail.name);
|
||||
|
||||
|
||||
|
||||
#else
|
||||
/* *** */
|
||||
std::string name = rsPeers->getPeerName(*it);
|
||||
|
||||
if (rsPeers->isFriend(*it))
|
||||
{
|
||||
type = ELASTIC_NODE_TYPE_FRIEND;
|
||||
}
|
||||
else
|
||||
{
|
||||
RsPeerDetails detail;
|
||||
rsPeers->getPeerDetails(*it, detail);
|
||||
|
||||
if(detail.trustLvl > RS_TRUST_LVL_MARGINAL)
|
||||
{
|
||||
type = ELASTIC_NODE_TYPE_AUTHED;
|
||||
}
|
||||
else if (detail.trustLvl >= RS_TRUST_LVL_MARGINAL)
|
||||
{
|
||||
type = ELASTIC_NODE_TYPE_MARGINALAUTH;
|
||||
}
|
||||
else
|
||||
{
|
||||
type = ELASTIC_NODE_TYPE_FOF;
|
||||
}
|
||||
}
|
||||
ui.graphicsView->addNode(type, *it, name);
|
||||
#endif
|
||||
|
||||
std::cerr << "NetworkView::insertPeers() Added Friend: " << *it << std::endl;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user