mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 17:09:34 -05:00
6000233267
Enabled bitdht in RetroShare.pro and retroshare-nogui.pro too Fixed link of RetroShare on Windows -> added ws2_32 after bitdht, maybe someone has a better solution git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3335 b45a01b8-16f6-495d-af2f-9b41ad6348cc
104 lines
2.5 KiB
Prolog
104 lines
2.5 KiB
Prolog
TEMPLATE = app
|
|
TARGET = retroshare-nogui
|
|
CONFIG += bitdht
|
|
|
|
################################# Linux ##########################################
|
|
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
|
|
LIBS += -lssl -lgpgme -lupnp
|
|
}
|
|
|
|
linux-g++ {
|
|
OBJECTS_DIR = temp/linux-g++/obj
|
|
}
|
|
|
|
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
|
|
|
|
RC_FILE = gui/images/retroshare_win.rc
|
|
|
|
DEFINES *= WIN32
|
|
}
|
|
|
|
#################################### Windows #####################################
|
|
|
|
win32 {
|
|
CONFIG += console release
|
|
OBJECTS_DIR = temp/obj
|
|
RCC_DIR = temp/qrc
|
|
UI_DIR = temp/ui
|
|
MOC_DIR = temp/moc
|
|
|
|
LIBS += ../../libretroshare/src/lib/libretroshare.a
|
|
LIBS += -L"../../../../lib" -lssl -lcrypto -lpthreadGC2d -lminiupnpc -lz
|
|
LIBS += -lssl -lcrypto -lgpgme -lpthreadGC2d -lminiupnpc -lz
|
|
# added after bitdht
|
|
# LIBS += -lws2_32
|
|
LIBS += -luuid -lole32 -liphlpapi -lcrypt32-cygwin -lgdi32
|
|
LIBS += -lole32 -lwinmm
|
|
|
|
RC_FILE = resources/retroshare_win.rc
|
|
|
|
DEFINES *= WINDOWS_SYS
|
|
}
|
|
|
|
##################################### MacOS ######################################
|
|
|
|
macx {
|
|
# ENABLE THIS OPTION FOR Univeral Binary BUILD.
|
|
# CONFIG += ppc x86
|
|
|
|
LIBS += -Wl,-search_paths_first
|
|
}
|
|
|
|
############################## Common stuff ######################################
|
|
|
|
# bitdht config
|
|
bitdht {
|
|
LIBS += ../../libbitdht/src/lib/libbitdht.a
|
|
}
|
|
|
|
win32 {
|
|
# must be added after bitdht
|
|
LIBS += -lws2_32
|
|
}
|
|
|
|
DEPENDPATH += ../../libretroshare/src
|
|
|
|
INCLUDEPATH += . ../../libretroshare/src
|
|
|
|
# Input
|
|
HEADERS += notifytxt.h
|
|
SOURCES += notifytxt.cc \
|
|
retroshare.cc
|
|
|
|
|
|
|
|
|
|
|
|
|