2009-02-03 14:42:07 -05:00
|
|
|
TEMPLATE = app
|
|
|
|
TARGET = retroshare-nogui
|
2010-08-03 08:15:20 -04:00
|
|
|
CONFIG += bitdht
|
2012-02-07 12:01:07 -05:00
|
|
|
#CONFIG += introserver
|
2012-08-09 09:45:05 -04:00
|
|
|
CONFIG += sshserver
|
2009-02-03 14:42:07 -05:00
|
|
|
|
2012-08-07 19:55:43 -04:00
|
|
|
CONFIG += debug
|
|
|
|
debug {
|
|
|
|
QMAKE_CFLAGS -= -O2
|
|
|
|
QMAKE_CFLAGS += -O0
|
|
|
|
QMAKE_CFLAGS += -g
|
|
|
|
|
|
|
|
QMAKE_CXXFLAGS -= -O2
|
|
|
|
QMAKE_CXXFLAGS += -O0
|
|
|
|
QMAKE_CXXFLAGS += -g
|
|
|
|
}
|
|
|
|
|
2009-02-03 14:42:07 -05:00
|
|
|
################################# Linux ##########################################
|
2010-06-27 12:28:44 -04:00
|
|
|
linux-* {
|
|
|
|
#CONFIG += version_detail_bash_script
|
|
|
|
QMAKE_CXXFLAGS *= -D_FILE_OFFSET_BITS=64
|
|
|
|
|
|
|
|
LIBS += ../../libretroshare/src/lib/libretroshare.a
|
2012-07-01 09:21:05 -04:00
|
|
|
LIBS += ../../openpgpsdk/src/lib/libops.a -lbz2
|
2012-07-15 12:17:56 -04:00
|
|
|
LIBS += -lssl -lupnp -lixml -lgnome-keyring
|
2012-08-09 09:45:05 -04:00
|
|
|
LIBS += -lsqlite3
|
2010-06-27 12:28:44 -04:00
|
|
|
}
|
2009-02-03 14:42:07 -05:00
|
|
|
|
|
|
|
linux-g++ {
|
|
|
|
OBJECTS_DIR = temp/linux-g++/obj
|
|
|
|
}
|
2010-06-27 12:28:44 -04:00
|
|
|
|
2009-02-03 14:42:07 -05:00
|
|
|
linux-g++-64 {
|
|
|
|
OBJECTS_DIR = temp/linux-g++-64/obj
|
|
|
|
}
|
|
|
|
|
|
|
|
#################### Cross compilation for windows under Linux ###################
|
|
|
|
|
|
|
|
win32-x-g++ {
|
|
|
|
OBJECTS_DIR = temp/win32-x-g++/obj
|
|
|
|
|
|
|
|
LIBS += ../../../../lib/win32-x-g++/libretroshare.a
|
|
|
|
LIBS += ../../../../lib/win32-x-g++/libssl.a
|
|
|
|
LIBS += ../../../../lib/win32-x-g++/libcrypto.a
|
|
|
|
LIBS += ../../../../lib/win32-x-g++/libminiupnpc.a
|
|
|
|
LIBS += ../../../../lib/win32-x-g++/libz.a
|
|
|
|
LIBS += -L${HOME}/.wine/drive_c/pthreads/lib -lpthreadGCE2
|
|
|
|
LIBS += -lws2_32 -luuid -lole32 -liphlpapi -lcrypt32 -gdi32
|
|
|
|
LIBS += -lole32 -lwinmm
|
2009-02-08 09:30:28 -05:00
|
|
|
|
2009-02-03 14:42:07 -05:00
|
|
|
RC_FILE = gui/images/retroshare_win.rc
|
2009-02-08 09:30:28 -05:00
|
|
|
|
|
|
|
DEFINES *= WIN32
|
2009-02-03 14:42:07 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
#################################### Windows #####################################
|
|
|
|
|
|
|
|
win32 {
|
2011-12-10 06:27:52 -05:00
|
|
|
CONFIG += console
|
2009-02-03 14:42:07 -05:00
|
|
|
OBJECTS_DIR = temp/obj
|
|
|
|
RCC_DIR = temp/qrc
|
|
|
|
UI_DIR = temp/ui
|
|
|
|
MOC_DIR = temp/moc
|
|
|
|
|
2010-06-21 14:26:50 -04:00
|
|
|
LIBS += ../../libretroshare/src/lib/libretroshare.a
|
2012-07-01 09:21:05 -04:00
|
|
|
LIBS += ../../openpgpsdk/src/lib/libops.a -lbz2
|
2012-02-23 06:11:33 -05:00
|
|
|
LIBS += -L"../../../lib" -lssl -lcrypto -lpthreadGC2d -lminiupnpc -lz
|
2012-07-13 20:02:40 -04:00
|
|
|
LIBS += -lssl -lcrypto -lpthreadGC2d -lminiupnpc -lz
|
2010-08-03 08:15:20 -04:00
|
|
|
# added after bitdht
|
|
|
|
# LIBS += -lws2_32
|
|
|
|
LIBS += -luuid -lole32 -liphlpapi -lcrypt32-cygwin -lgdi32
|
2009-02-03 14:42:07 -05:00
|
|
|
LIBS += -lole32 -lwinmm
|
2010-07-01 17:11:25 -04:00
|
|
|
|
2010-07-01 17:56:56 -04:00
|
|
|
RC_FILE = resources/retroshare_win.rc
|
|
|
|
|
2010-07-01 17:11:25 -04:00
|
|
|
DEFINES *= WINDOWS_SYS
|
2009-02-03 14:42:07 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
##################################### MacOS ######################################
|
|
|
|
|
|
|
|
macx {
|
|
|
|
# ENABLE THIS OPTION FOR Univeral Binary BUILD.
|
|
|
|
# CONFIG += ppc x86
|
|
|
|
|
|
|
|
LIBS += -Wl,-search_paths_first
|
|
|
|
}
|
|
|
|
|
2012-01-29 09:27:14 -05:00
|
|
|
##################################### FreeBSD ######################################
|
|
|
|
|
|
|
|
freebsd-* {
|
|
|
|
INCLUDEPATH *= /usr/local/include/gpgme
|
|
|
|
LIBS *= ../../libretroshare/src/lib/libretroshare.a
|
|
|
|
LIBS *= -lssl
|
|
|
|
LIBS *= -lgpgme
|
|
|
|
LIBS *= -lupnp
|
|
|
|
LIBS *= -lgnome-keyring
|
|
|
|
PRE_TARGETDEPS *= ../../libretroshare/src/lib/libretroshare.a
|
|
|
|
}
|
|
|
|
|
2009-02-03 14:42:07 -05:00
|
|
|
############################## Common stuff ######################################
|
|
|
|
|
2010-08-02 06:00:29 -04:00
|
|
|
# bitdht config
|
|
|
|
bitdht {
|
|
|
|
LIBS += ../../libbitdht/src/lib/libbitdht.a
|
|
|
|
}
|
2010-08-03 08:15:20 -04:00
|
|
|
|
|
|
|
win32 {
|
|
|
|
# must be added after bitdht
|
|
|
|
LIBS += -lws2_32
|
|
|
|
}
|
|
|
|
|
2009-02-03 14:42:07 -05:00
|
|
|
DEPENDPATH += ../../libretroshare/src
|
|
|
|
|
|
|
|
INCLUDEPATH += . ../../libretroshare/src
|
|
|
|
|
|
|
|
# Input
|
|
|
|
HEADERS += notifytxt.h
|
|
|
|
SOURCES += notifytxt.cc \
|
|
|
|
retroshare.cc
|
|
|
|
|
2012-02-07 12:01:07 -05:00
|
|
|
introserver {
|
|
|
|
HEADERS += introserver.h
|
|
|
|
SOURCES += introserver.cc
|
|
|
|
DEFINES *= RS_INTRO_SERVER
|
|
|
|
}
|
2009-02-03 14:42:07 -05:00
|
|
|
|
2012-08-05 13:08:29 -04:00
|
|
|
sshserver {
|
|
|
|
# This Requires libssh-0.5.* to compile.
|
|
|
|
# Modify path below to point at it.
|
|
|
|
# Probably will only work on Linux for the moment.
|
|
|
|
#
|
|
|
|
# Use the following commend to generate a Server RSA Key.
|
|
|
|
# Key should be in current directory - when run/
|
|
|
|
# ssh-keygen -t rsa -f rs_ssh_host_rsa_key
|
|
|
|
#
|
|
|
|
# You can connect from a standard ssh, eg: ssh -p 7022 127.0.0.1
|
|
|
|
#
|
2012-08-09 09:45:05 -04:00
|
|
|
# The Menu system is available from the command-line (-T) and SSH (-S)
|
2012-08-07 19:55:43 -04:00
|
|
|
# if it get covered by debug gunk, just press <return> to refresh.
|
|
|
|
#
|
2012-08-09 09:45:05 -04:00
|
|
|
# ./retroshare-nogui -h provides some more instructions.
|
|
|
|
#
|
|
|
|
|
2012-08-05 13:08:29 -04:00
|
|
|
INCLUDEPATH += ../../../lib/libssh-0.5.2/include/
|
|
|
|
LIBS += ../../../lib/libssh-0.5.2/build/src/libssh.a
|
|
|
|
LIBS += ../../../lib/libssh-0.5.2/build/src/threads/libssh_threads.a
|
|
|
|
HEADERS += ssh/rssshd.h
|
|
|
|
SOURCES += ssh/rssshd.cc
|
2012-08-07 19:55:43 -04:00
|
|
|
|
|
|
|
HEADERS += menu/menu.h \
|
|
|
|
menu/menus.h \
|
2012-08-09 09:45:05 -04:00
|
|
|
rstermserver.h \
|
2012-08-07 19:55:43 -04:00
|
|
|
|
|
|
|
SOURCES += menu/menu.cc \
|
|
|
|
menu/menus.cc \
|
|
|
|
|
2012-08-05 13:08:29 -04:00
|
|
|
DEFINES *= RS_SSH_SERVER
|
|
|
|
}
|
|
|
|
|
2009-02-03 14:42:07 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|