updated libretroshare.pro so that people can choose between pgp and xpgp by doing "qmake CONFIG=pgp" or "qmake CONFIG=xpgp", or directly update the CONFIG variable in the .pro to change the default behavior.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1358 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2009-07-12 12:53:49 +00:00
parent 2f07cfaee7
commit 49e9066afb

View File

@ -1,20 +1,33 @@
TEMPLATE = lib TEMPLATE = lib
CONFIG += static CONFIG += static xpgp
TARGET = retroshare TARGET = retroshare
CONFIG += release CONFIG += release
################################# Linux ########################################## DEFINES *= MINIUPNPC_VERSION=10
UPNPC_DIR=../../../../miniupnpc-1.0
profiling { profiling {
QMAKE_CXXFLAGS -= -fomit-frame-pointer QMAKE_CXXFLAGS -= -fomit-frame-pointer
QMAKE_CXXFLAGS *= -pg -g -fno-omit-frame-pointer QMAKE_CXXFLAGS *= -pg -g -fno-omit-frame-pointer
} }
pgp {
SSL_DIR=/usr/include/openssl
DEFINES -=PQI_USE_XPGP
DEFINES *= RS_USE_PGPSSL
}
xpgp {
DEFINES *= PQI_USE_XPGP
SSL_DIR=../../../../openssl-0.9.7g-xpgp-0.1c
}
################################# Linux ##########################################
debug { debug {
DEFINES *= DEBUG # DEFINES *= DEBUG
# DEFINES *= OPENDHT_DEBUG DHT_DEBUG CONN_DEBUG DEBUG_UDP_SORTER P3DISC_DEBUG DEBUG_UDP_LAYER FT_DEBUG EXTADDRSEARCH_DEBUG # DEFINES *= OPENDHT_DEBUG DHT_DEBUG CONN_DEBUG DEBUG_UDP_SORTER P3DISC_DEBUG DEBUG_UDP_LAYER FT_DEBUG EXTADDRSEARCH_DEBUG
# DEFINES *= CHAT_DEBUG # DEFINES *= CHAT_DEBUG CONTROL_DEBUG FT_DEBUG
DEFINES *= P3TURTLE_DEBUG CONTROL_DEBUG FT_DEBUG DEFINES *= P3TURTLE_DEBUG
QMAKE_CXXFLAGS *= -g QMAKE_CXXFLAGS *= -g
} }
@ -52,20 +65,13 @@ win32 {
DEFINES = WINDOWS_SYS WIN32 STATICLIB MINGW DEFINES = WINDOWS_SYS WIN32 STATICLIB MINGW
DESTDIR = lib DESTDIR = lib
SSL_DIR = ../../../../openssl-0.9.7g-xpgp-0.1c/include
UPNPC_DIR = ../../../../miniupnpc-1.0
PTHREADS_DIR = ../../../../pthreads-w32-2-8-0-release PTHREADS_DIR = ../../../../pthreads-w32-2-8-0-release
ZLIB_DIR = ../../../../zlib-1.2.3 ZLIB_DIR = ../../../../zlib-1.2.3
INCLUDEPATH += . $${SSL_DIR} $${UPNPC_DIR} $${PTHREADS_DIR} $${ZLIB_DIR} INCLUDEPATH += . $${SSL_DIR}/include $${UPNPC_DIR} $${PTHREADS_DIR} $${ZLIB_DIR}
} }
################################### COMMON stuff ################################## ################################### COMMON stuff ##################################
DEFINES *= PQI_USE_XPGP MINIUPNPC_VERSION=10
SSL_DIR=../../../../openssl-0.9.7g-xpgp-0.1c
UPNPC_DIR=../../../../miniupnpc-1.0
INCLUDEPATH += . $${SSL_DIR}/include $${UPNPC_DIR} INCLUDEPATH += . $${SSL_DIR}/include $${UPNPC_DIR}
#DEPENDPATH += . \ #DEPENDPATH += . \
@ -114,8 +120,6 @@ HEADERS += dbase/cachestrapper.h \
ft/ftserver.h \ ft/ftserver.h \
ft/fttransfermodule.h \ ft/fttransfermodule.h \
pqi/authssl.h \ pqi/authssl.h \
pqi/authxpgp.h \
pqi/cleanupxpgp.h \
pqi/p3authmgr.h \ pqi/p3authmgr.h \
pqi/p3cfgmgr.h \ pqi/p3cfgmgr.h \
pqi/p3connmgr.h \ pqi/p3connmgr.h \
@ -231,7 +235,6 @@ HEADERS += dbase/cachestrapper.h \
SOURCES = \ SOURCES = \
dht/dht_check_peers.cc \ dht/dht_check_peers.cc \
dht/dht_bootstrap.cc \ dht/dht_bootstrap.cc \
pqi/xpgp_id.cc \
rsserver/p3face-msgs.cc \ rsserver/p3face-msgs.cc \
rsserver/rsiface.cc \ rsserver/rsiface.cc \
rsserver/rstypes.cc \ rsserver/rstypes.cc \
@ -286,8 +289,6 @@ SOURCES = \
pqi/pqiservice.cc \ pqi/pqiservice.cc \
pqi/pqiperson.cc \ pqi/pqiperson.cc \
pqi/pqissludp.cc \ pqi/pqissludp.cc \
pqi/authxpgp.cc \
pqi/cleanupxpgp.cc \
pqi/pqisslpersongrp.cc \ pqi/pqisslpersongrp.cc \
pqi/pqissllistener.cc \ pqi/pqissllistener.cc \
pqi/pqissl.cc \ pqi/pqissl.cc \
@ -338,3 +339,12 @@ SOURCES = \
util/rsprint.cc \ util/rsprint.cc \
util/rsthreads.cc \ util/rsthreads.cc \
util/rsversion.cc util/rsversion.cc
pgp {
HEADERS += pqi/authssl.h pqi/cleanupxpgp.h pqi/authgpg.h
SOURCES += pqi/authssl.cc pqi/cleanupxpgp.cc pqi/authgpg.cc
}
xpgp {
HEADERS += pqi/authxpgp.h pqi/cleanupxpgp.h
SOURCES += pqi/authxpgp.cc pqi/cleanupxpgp.cc pqi/xpgp_id.cc
}