2009-02-01 09:06:21 -05:00
|
|
|
TEMPLATE = lib
|
2009-10-29 20:33:40 -04:00
|
|
|
CONFIG += static release
|
2009-02-01 09:06:21 -05:00
|
|
|
TARGET = retroshare
|
|
|
|
|
2009-07-31 11:03:43 -04:00
|
|
|
DEFINES -= PQI_USE_XPGP
|
|
|
|
DEFINES += RS_USE_PGPSSL
|
|
|
|
|
2009-05-26 17:42:45 -04:00
|
|
|
profiling {
|
|
|
|
QMAKE_CXXFLAGS -= -fomit-frame-pointer
|
|
|
|
QMAKE_CXXFLAGS *= -pg -g -fno-omit-frame-pointer
|
|
|
|
}
|
2009-07-12 08:53:49 -04:00
|
|
|
|
2009-05-09 06:25:44 -04:00
|
|
|
debug {
|
2009-07-12 08:53:49 -04:00
|
|
|
# DEFINES *= DEBUG
|
2009-05-09 06:25:44 -04:00
|
|
|
# DEFINES *= OPENDHT_DEBUG DHT_DEBUG CONN_DEBUG DEBUG_UDP_SORTER P3DISC_DEBUG DEBUG_UDP_LAYER FT_DEBUG EXTADDRSEARCH_DEBUG
|
2009-07-12 08:53:49 -04:00
|
|
|
# DEFINES *= CHAT_DEBUG CONTROL_DEBUG FT_DEBUG
|
2009-11-18 18:02:37 -05:00
|
|
|
# DEFINES *= P3TURTLE_DEBUG UPNP_DEBUG
|
2009-12-20 08:26:57 -05:00
|
|
|
DEFINES *= CONN_DEBUG P3DISC_DEBUG RSSERIAL_DEBUG RSITEM_DEBUG DEBUG_PQISSL DEBUG_PQISTREAMER
|
2009-11-18 18:02:37 -05:00
|
|
|
# DEFINES *= NET_DEBUG
|
|
|
|
# DEFINES *= DISTRIB_DEBUG
|
2009-05-09 06:25:44 -04:00
|
|
|
QMAKE_CXXFLAGS *= -g
|
|
|
|
}
|
|
|
|
|
2009-10-29 21:41:16 -04:00
|
|
|
################################# Linux ##########################################
|
|
|
|
linux-* {
|
2009-10-29 20:33:40 -04:00
|
|
|
DESTDIR = lib
|
|
|
|
QMAKE_CXXFLAGS *= -Wall
|
2009-02-01 09:06:21 -05:00
|
|
|
QMAKE_CC = g++
|
2009-10-29 20:33:40 -04:00
|
|
|
|
2009-07-31 11:03:43 -04:00
|
|
|
SSL_DIR = /usr/include/openssl
|
2009-10-29 20:33:40 -04:00
|
|
|
UPNP_DIR = /usr/include/upnp
|
2009-10-29 20:46:36 -04:00
|
|
|
INCLUDEPATH += . $${SSL_DIR} $${UPNP_DIR}
|
|
|
|
|
|
|
|
#gpg files
|
2009-10-29 20:33:54 -04:00
|
|
|
HEADERS += /usr/include/gpg-error.h
|
|
|
|
HEADERS += /usr/include/gpgme.h
|
2009-10-29 20:46:36 -04:00
|
|
|
|
|
|
|
#libupnp implementation files
|
|
|
|
HEADERS += upnp/UPnPBase.h
|
|
|
|
SOURCES += upnp/UPnPBase.cpp
|
2009-10-29 20:33:40 -04:00
|
|
|
|
2009-08-02 13:49:11 -04:00
|
|
|
CONFIG += version_detail_bash_script
|
2009-02-01 09:06:21 -05:00
|
|
|
}
|
2009-10-29 20:33:40 -04:00
|
|
|
|
2009-10-29 20:46:36 -04:00
|
|
|
linux-g++ {
|
|
|
|
OBJECTS_DIR = temp/linux-g++/obj
|
|
|
|
}
|
|
|
|
|
2009-02-02 07:29:40 -05:00
|
|
|
linux-g++-64 {
|
|
|
|
OBJECTS_DIR = temp/linux-g++-64/obj
|
|
|
|
}
|
2009-08-01 09:53:47 -04:00
|
|
|
|
|
|
|
version_detail_bash_script {
|
|
|
|
QMAKE_EXTRA_TARGETS += write_version_detail
|
|
|
|
PRE_TARGETDEPS = write_version_detail
|
|
|
|
write_version_detail.commands = ./version_detail.sh
|
|
|
|
}
|
|
|
|
|
2009-02-01 09:06:21 -05:00
|
|
|
#################### Cross compilation for windows under Linux ####################
|
|
|
|
|
|
|
|
win32-x-g++ {
|
|
|
|
OBJECTS_DIR = temp/win32xgcc/obj
|
|
|
|
DESTDIR = lib.win32xgcc
|
2009-05-26 17:42:45 -04:00
|
|
|
DEFINES *= WINDOWS_SYS WIN32 WIN_CROSS_UBUNTU
|
2009-02-01 09:06:21 -05:00
|
|
|
QMAKE_CXXFLAGS *= -Wmissing-include-dirs
|
|
|
|
QMAKE_CC = i586-mingw32msvc-g++
|
|
|
|
QMAKE_LIB = i586-mingw32msvc-ar
|
2009-09-05 07:59:42 -04:00
|
|
|
QMAKE_AR = i586-mingw32msvc-ar
|
2009-03-12 16:08:02 -04:00
|
|
|
DEFINES *= STATICLIB WIN32
|
2009-02-01 09:06:21 -05:00
|
|
|
|
2009-10-29 20:46:58 -04:00
|
|
|
#miniupnp implementation files
|
|
|
|
HEADERS += upnp/upnputil.h
|
|
|
|
SOURCES += upnp/upnputil.c
|
|
|
|
|
|
|
|
SSL_DIR=../../../../openssl
|
2009-09-05 07:59:42 -04:00
|
|
|
UPNPC_DIR = ../../../../miniupnpc-1.3
|
|
|
|
GPG_ERROR_DIR = ../../../../libgpg-error-1.7
|
|
|
|
GPGME_DIR = ../../../../gpgme-1.1.8
|
|
|
|
|
2009-02-01 09:06:21 -05:00
|
|
|
INCLUDEPATH *= /usr/i586-mingw32msvc/include ${HOME}/.wine/drive_c/pthreads/include/
|
|
|
|
}
|
2009-02-04 10:37:37 -05:00
|
|
|
################################# Windows ##########################################
|
2009-02-01 09:06:21 -05:00
|
|
|
|
2009-02-24 16:42:59 -05:00
|
|
|
win32 {
|
2009-09-05 07:59:42 -04:00
|
|
|
QMAKE_CC = g++
|
|
|
|
OBJECTS_DIR = temp/obj
|
|
|
|
MOC_DIR = temp/moc
|
|
|
|
DEFINES = WINDOWS_SYS WIN32 STATICLIB MINGW
|
2009-10-29 20:46:58 -04:00
|
|
|
DEFINES *= MINIUPNPC_VERSION=13
|
2009-09-05 07:59:42 -04:00
|
|
|
DESTDIR = lib
|
|
|
|
|
2009-10-29 20:46:58 -04:00
|
|
|
#miniupnp implementation files
|
|
|
|
HEADERS += upnp/upnputil.h
|
|
|
|
SOURCES += upnp/upnputil.c
|
|
|
|
|
2009-10-29 20:46:36 -04:00
|
|
|
|
2009-10-29 20:46:58 -04:00
|
|
|
UPNPC_DIR = ../../../../miniupnpc-1.3
|
2009-09-05 07:59:42 -04:00
|
|
|
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
|
|
|
|
|
2009-10-29 20:46:36 -04:00
|
|
|
INCLUDEPATH += . $${SSL_DIR}/include $${UPNPC_DIR} $${PTHREADS_DIR} $${ZLIB_DIR} $${GPGME_DIR}/src $${GPG_ERROR_DIR}/src
|
2009-02-04 10:37:37 -05:00
|
|
|
}
|
2009-02-01 09:06:21 -05:00
|
|
|
################################### COMMON stuff ##################################
|
|
|
|
|
|
|
|
#DEPENDPATH += . \
|
|
|
|
# util \
|
|
|
|
# tcponudp \
|
|
|
|
# serialiser \
|
|
|
|
# pqi \
|
|
|
|
# dbase \
|
|
|
|
# services \
|
|
|
|
# dht \
|
|
|
|
# upnp \
|
|
|
|
# ft \
|
|
|
|
# rsserver
|
|
|
|
|
|
|
|
#INCLUDEPATH += . \
|
|
|
|
# util \
|
|
|
|
# tcponudp \
|
|
|
|
# serialiser \
|
|
|
|
# pqi \
|
|
|
|
# dbase \
|
|
|
|
# services \
|
|
|
|
# dht \
|
|
|
|
# upnp \
|
|
|
|
# ft \
|
|
|
|
# rsserver
|
|
|
|
|
|
|
|
# Input
|
|
|
|
HEADERS += dbase/cachestrapper.h \
|
|
|
|
dbase/fimonitor.h \
|
|
|
|
dbase/findex.h \
|
|
|
|
dbase/fistore.h \
|
|
|
|
dht/b64.h \
|
|
|
|
dht/dhtclient.h \
|
|
|
|
dht/opendht.h \
|
|
|
|
dht/opendhtmgr.h \
|
|
|
|
dht/opendhtstr.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 \
|
2009-11-18 18:02:37 -05:00
|
|
|
ft/ftchunkmap.h \
|
2009-02-01 09:06:21 -05:00
|
|
|
ft/ftserver.h \
|
|
|
|
ft/fttransfermodule.h \
|
2009-07-31 11:03:43 -04:00
|
|
|
ft/ftdwlqueue.h \
|
2009-02-01 09:06:21 -05:00
|
|
|
pqi/authssl.h \
|
2009-07-31 11:03:43 -04:00
|
|
|
pqi/authgpg.h \
|
|
|
|
pqi/cleanupxpgp.h \
|
2009-02-01 09:06:21 -05:00
|
|
|
pqi/p3authmgr.h \
|
|
|
|
pqi/p3cfgmgr.h \
|
|
|
|
pqi/p3connmgr.h \
|
|
|
|
pqi/p3dhtmgr.h \
|
|
|
|
pqi/p3notify.h \
|
|
|
|
pqi/p3upnpmgr.h \
|
|
|
|
pqi/pqi.h \
|
|
|
|
pqi/pqi_base.h \
|
|
|
|
pqi/pqiarchive.h \
|
|
|
|
pqi/pqiassist.h \
|
|
|
|
pqi/pqibin.h \
|
|
|
|
pqi/pqihandler.h \
|
|
|
|
pqi/pqihash.h \
|
|
|
|
pqi/pqiindic.h \
|
|
|
|
pqi/pqilistener.h \
|
2009-09-26 15:17:32 -04:00
|
|
|
pqi/pqiloopback.h \
|
2009-02-01 09:06:21 -05:00
|
|
|
pqi/pqimonitor.h \
|
|
|
|
pqi/pqinetwork.h \
|
|
|
|
pqi/pqinotify.h \
|
|
|
|
pqi/pqiperson.h \
|
|
|
|
pqi/pqipersongrp.h \
|
|
|
|
pqi/pqisecurity.h \
|
|
|
|
pqi/pqiservice.h \
|
2009-05-09 06:25:44 -04:00
|
|
|
pqi/pqistore.h \
|
2009-02-01 09:06:21 -05:00
|
|
|
pqi/pqissl.h \
|
2009-12-13 16:59:26 -05:00
|
|
|
pqi/pqissltunnel.h \
|
|
|
|
pqi/pqissllistener.h \
|
2009-02-01 09:06:21 -05:00
|
|
|
pqi/pqisslpersongrp.h \
|
|
|
|
pqi/pqissludp.h \
|
|
|
|
pqi/pqistreamer.h \
|
|
|
|
pqi/sslcert.h \
|
|
|
|
pqi/xpgpcert.h \
|
|
|
|
rsiface/rschannels.h \
|
|
|
|
rsiface/rsdisc.h \
|
|
|
|
rsiface/rsdistrib.h \
|
|
|
|
rsiface/rsexpr.h \
|
|
|
|
rsiface/rsfiles.h \
|
|
|
|
rsiface/rsforums.h \
|
|
|
|
rsiface/rsgame.h \
|
|
|
|
rsiface/rsiface.h \
|
|
|
|
rsiface/rsmsgs.h \
|
|
|
|
rsiface/rsnotify.h \
|
|
|
|
rsiface/rspeers.h \
|
|
|
|
rsiface/rsphoto.h \
|
|
|
|
rsiface/rsQblog.h \
|
|
|
|
rsiface/rsrank.h \
|
|
|
|
rsiface/rsstatus.h \
|
|
|
|
rsiface/rstypes.h \
|
|
|
|
rsserver/p3Blog.h \
|
|
|
|
rsserver/p3discovery.h \
|
|
|
|
rsserver/p3face.h \
|
|
|
|
rsserver/p3msgs.h \
|
|
|
|
rsserver/p3peers.h \
|
|
|
|
rsserver/p3photo.h \
|
|
|
|
rsserver/p3rank.h \
|
|
|
|
serialiser/rsbaseitems.h \
|
|
|
|
serialiser/rsbaseserial.h \
|
|
|
|
serialiser/rschannelitems.h \
|
2009-12-13 16:59:26 -05:00
|
|
|
serialiser/rstunnelitems.h \
|
|
|
|
serialiser/rsconfigitems.h \
|
2009-02-01 09:06:21 -05:00
|
|
|
serialiser/rsdiscitems.h \
|
|
|
|
serialiser/rsdistribitems.h \
|
|
|
|
serialiser/rsforumitems.h \
|
|
|
|
serialiser/rsgameitems.h \
|
|
|
|
serialiser/rsmsgitems.h \
|
|
|
|
serialiser/rsphotoitems.h \
|
|
|
|
serialiser/rsqblogitems.h \
|
|
|
|
serialiser/rsrankitems.h \
|
|
|
|
serialiser/rsserial.h \
|
|
|
|
serialiser/rsserviceids.h \
|
|
|
|
serialiser/rsserviceitems.h \
|
|
|
|
serialiser/rsstatusitems.h \
|
|
|
|
serialiser/rstlvbase.h \
|
|
|
|
serialiser/rstlvkeys.h \
|
|
|
|
serialiser/rstlvkvwide.h \
|
|
|
|
serialiser/rstlvtypes.h \
|
|
|
|
serialiser/rstlvutil.h \
|
|
|
|
services/p3channels.h \
|
|
|
|
services/p3chatservice.h \
|
|
|
|
services/p3disc.h \
|
2009-12-13 16:59:26 -05:00
|
|
|
services/p3tunnel.h \
|
|
|
|
services/p3distrib.h \
|
2009-02-01 09:06:21 -05:00
|
|
|
services/p3forums.h \
|
|
|
|
services/p3gamelauncher.h \
|
|
|
|
services/p3gameservice.h \
|
|
|
|
services/p3msgservice.h \
|
|
|
|
services/p3photoservice.h \
|
|
|
|
services/p3portservice.h \
|
|
|
|
services/p3Qblog.h \
|
|
|
|
services/p3ranking.h \
|
|
|
|
services/p3service.h \
|
|
|
|
services/p3status.h \
|
2009-05-26 17:42:45 -04:00
|
|
|
turtle/p3turtle.h \
|
|
|
|
turtle/turtletypes.h \
|
|
|
|
turtle/rsturtleitem.h \
|
2009-04-04 12:42:52 -04:00
|
|
|
tcponudp/extaddrfinder.h \
|
2009-02-01 09:06:21 -05:00
|
|
|
tcponudp/bio_tou.h \
|
|
|
|
tcponudp/tcppacket.h \
|
|
|
|
tcponudp/tcpstream.h \
|
|
|
|
tcponudp/tou.h \
|
|
|
|
tcponudp/tou_errno.h \
|
|
|
|
tcponudp/tou_net.h \
|
|
|
|
tcponudp/udplayer.h \
|
|
|
|
tcponudp/udpsorter.h \
|
|
|
|
upnp/upnphandler.h \
|
2009-10-29 20:33:40 -04:00
|
|
|
util/rsdebug.h \
|
2009-02-01 09:06:21 -05:00
|
|
|
util/rsdir.h \
|
|
|
|
util/rsnet.h \
|
|
|
|
util/rsprint.h \
|
|
|
|
util/rsthreads.h \
|
2009-06-28 16:57:02 -04:00
|
|
|
util/rswin.h \
|
|
|
|
util/rsversion.h
|
2009-02-01 09:06:21 -05:00
|
|
|
|
2009-10-29 20:46:58 -04:00
|
|
|
SOURCES += \
|
2009-02-01 09:06:21 -05:00
|
|
|
dht/dht_check_peers.cc \
|
|
|
|
dht/dht_bootstrap.cc \
|
|
|
|
rsserver/p3face-msgs.cc \
|
|
|
|
rsserver/rsiface.cc \
|
|
|
|
rsserver/rstypes.cc \
|
2009-07-30 17:27:47 -04:00
|
|
|
rsserver/rsinit.cc \
|
2009-02-01 09:06:21 -05:00
|
|
|
rsserver/p3face-config.cc \
|
|
|
|
rsserver/p3face-server.cc \
|
|
|
|
rsserver/p3Blog.cc \
|
|
|
|
rsserver/p3discovery.cc \
|
|
|
|
rsserver/p3msgs.cc \
|
|
|
|
rsserver/p3photo.cc \
|
|
|
|
rsserver/p3rank.cc \
|
|
|
|
rsserver/p3peers.cc \
|
|
|
|
ft/ftcontroller.cc \
|
|
|
|
ft/ftserver.cc \
|
|
|
|
ft/ftdbase.cc \
|
|
|
|
ft/fttransfermodule.cc \
|
|
|
|
ft/ftdatamultiplex.cc \
|
|
|
|
ft/ftfilesearch.cc \
|
|
|
|
ft/ftextralist.cc \
|
|
|
|
ft/ftfilecreator.cc \
|
|
|
|
ft/ftdata.cc \
|
2009-11-18 18:02:37 -05:00
|
|
|
ft/ftchunkmap.cc \
|
2009-02-01 09:06:21 -05:00
|
|
|
ft/ftfileprovider.cc \
|
2009-07-26 11:00:29 -04:00
|
|
|
ft/ftdwlqueue.cc \
|
2009-02-01 09:06:21 -05:00
|
|
|
dht/opendhtmgr.cc \
|
|
|
|
upnp/upnphandler.cc \
|
|
|
|
dht/opendht.cc \
|
|
|
|
dht/opendhtstr.cc \
|
|
|
|
dht/b64.c \
|
|
|
|
services/p3portservice.cc \
|
|
|
|
services/p3channels.cc \
|
|
|
|
services/p3forums.cc \
|
|
|
|
services/p3Qblog.cc \
|
|
|
|
services/p3status.cc \
|
|
|
|
services/p3distrib.cc \
|
|
|
|
services/p3photoservice.cc \
|
|
|
|
services/p3disc.cc \
|
2009-12-13 16:59:26 -05:00
|
|
|
services/p3tunnel.cc \
|
2009-02-01 09:06:21 -05:00
|
|
|
services/p3ranking.cc \
|
|
|
|
services/p3gamelauncher.cc \
|
|
|
|
services/p3msgservice.cc \
|
|
|
|
services/p3chatservice.cc \
|
|
|
|
services/p3service.cc \
|
2009-05-26 17:42:45 -04:00
|
|
|
turtle/p3turtle.cc \
|
|
|
|
turtle/rsturtleitem.cc \
|
2009-02-01 09:06:21 -05:00
|
|
|
dbase/rsexpr.cc \
|
|
|
|
dbase/cachestrapper.cc \
|
|
|
|
dbase/fistore.cc \
|
|
|
|
dbase/fimonitor.cc \
|
|
|
|
dbase/findex.cc \
|
2009-07-31 11:03:43 -04:00
|
|
|
pqi/authssl.cc \
|
|
|
|
pqi/authgpg.cc \
|
|
|
|
pqi/cleanupxpgp.cc \
|
2009-02-01 09:06:21 -05:00
|
|
|
pqi/p3notify.cc \
|
|
|
|
pqi/pqipersongrp.cc \
|
|
|
|
pqi/pqihandler.cc \
|
|
|
|
pqi/pqiservice.cc \
|
|
|
|
pqi/pqiperson.cc \
|
|
|
|
pqi/pqissludp.cc \
|
|
|
|
pqi/pqisslpersongrp.cc \
|
|
|
|
pqi/pqissllistener.cc \
|
|
|
|
pqi/pqissl.cc \
|
2009-12-13 16:59:26 -05:00
|
|
|
pqi/pqissltunnel.cc \
|
2009-05-09 06:25:44 -04:00
|
|
|
pqi/pqistore.cc \
|
2009-02-01 09:06:21 -05:00
|
|
|
pqi/p3authmgr.cc \
|
|
|
|
pqi/p3cfgmgr.cc \
|
|
|
|
pqi/p3connmgr.cc \
|
|
|
|
pqi/p3dhtmgr.cc \
|
|
|
|
pqi/pqiarchive.cc \
|
|
|
|
pqi/pqibin.cc \
|
|
|
|
pqi/pqimonitor.cc \
|
|
|
|
pqi/pqistreamer.cc \
|
|
|
|
pqi/pqiloopback.cc \
|
|
|
|
pqi/pqinetwork.cc \
|
|
|
|
pqi/pqisecurity.cc \
|
|
|
|
serialiser/rsqblogitems.cc \
|
|
|
|
serialiser/rsstatusitems.cc \
|
|
|
|
serialiser/rschannelitems.cc \
|
2009-12-13 16:59:26 -05:00
|
|
|
serialiser/rstunnelitems.cc \
|
2009-02-01 09:06:21 -05:00
|
|
|
serialiser/rsforumitems.cc \
|
|
|
|
serialiser/rsdistribitems.cc \
|
|
|
|
serialiser/rsgameitems.cc \
|
|
|
|
serialiser/rsphotoitems.cc \
|
|
|
|
serialiser/rsrankitems.cc \
|
|
|
|
serialiser/rsconfigitems.cc \
|
|
|
|
serialiser/rsdiscitems.cc \
|
|
|
|
serialiser/rsmsgitems.cc \
|
|
|
|
serialiser/rsbaseitems.cc \
|
|
|
|
serialiser/rstlvkvwide.cc \
|
|
|
|
serialiser/rstlvimage.cc \
|
|
|
|
serialiser/rstlvutil.cc \
|
|
|
|
serialiser/rstlvfileitem.cc \
|
|
|
|
serialiser/rstlvkeys.cc \
|
|
|
|
serialiser/rsbaseserial.cc \
|
|
|
|
serialiser/rstlvbase.cc \
|
|
|
|
serialiser/rstlvtypes.cc \
|
|
|
|
serialiser/rsserial.cc \
|
2009-04-04 12:42:52 -04:00
|
|
|
tcponudp/extaddrfinder.cc \
|
2009-02-01 09:06:21 -05:00
|
|
|
tcponudp/bss_tou.c \
|
|
|
|
tcponudp/tcpstream.cc \
|
|
|
|
tcponudp/tou.cc \
|
|
|
|
tcponudp/tcppacket.cc \
|
|
|
|
tcponudp/udpsorter.cc \
|
|
|
|
tcponudp/tou_net.cc \
|
|
|
|
tcponudp/udplayer.cc \
|
|
|
|
util/rsdebug.cc \
|
|
|
|
util/rsdir.cc \
|
|
|
|
util/rsnet.cc \
|
|
|
|
util/rsprint.cc \
|
2009-06-28 16:57:02 -04:00
|
|
|
util/rsthreads.cc \
|
|
|
|
util/rsversion.cc
|
2009-07-12 08:53:49 -04:00
|
|
|
|
2009-07-31 11:03:43 -04:00
|
|
|
|