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
|
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
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|