2009-02-03 14:42:07 -05:00
|
|
|
TEMPLATE = app
|
|
|
|
TARGET = retroshare-nogui
|
2010-08-03 08:15:20 -04:00
|
|
|
CONFIG += bitdht
|
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
|
|
|
|
|
|
|
|
system(which gpgme-config >/dev/null 2>&1) {
|
|
|
|
INCLUDEPATH += $$system(gpgme-config --cflags | sed -e "s/-I//g")
|
|
|
|
} else {
|
|
|
|
message(Could not find gpgme-config on your system, assuming gpgme.h is in /usr/include)
|
|
|
|
}
|
|
|
|
|
|
|
|
LIBS += ../../libretroshare/src/lib/libretroshare.a
|
2011-10-15 14:44:37 -04:00
|
|
|
LIBS += -lssl -lgpgme -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
|
|
|
|
LIBS += -L"../../../../lib" -lssl -lcrypto -lpthreadGC2d -lminiupnpc -lz
|
2010-07-01 17:11:25 -04:00
|
|
|
LIBS += -lssl -lcrypto -lgpgme -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
|
|
|
|
}
|
|
|
|
|
|
|
|
############################## 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|