2011-06-17 03:13:47 -04:00
|
|
|
TEMPLATE = lib
|
2011-06-17 14:55:59 -04:00
|
|
|
|
|
|
|
INCLUDEPATH += ../../libretroshare/src/ ../../retroshare-gui/src/
|
2011-06-17 03:13:47 -04:00
|
|
|
|
|
|
|
linux-g++ {
|
2011-06-17 14:55:59 -04:00
|
|
|
LIBS *= -ldl
|
|
|
|
}
|
|
|
|
linux-g++-64 {
|
2011-06-17 03:13:47 -04:00
|
|
|
LIBS *= -ldl
|
|
|
|
}
|
|
|
|
|
2011-10-08 13:47:36 -04:00
|
|
|
win32 {
|
2012-02-28 16:59:01 -05:00
|
|
|
# Switch on extra warnings
|
|
|
|
QMAKE_CFLAGS += -Wextra
|
|
|
|
QMAKE_CXXFLAGS += -Wextra
|
2011-11-17 16:17:24 -05:00
|
|
|
|
2012-02-28 16:59:01 -05:00
|
|
|
OBJECTS_DIR = temp/obj
|
|
|
|
MOC_DIR = temp/moc
|
|
|
|
RCC_DIR = temp/qrc
|
|
|
|
UI_DIR = temp/ui
|
2011-10-08 13:47:36 -04:00
|
|
|
|
2012-02-28 16:59:01 -05:00
|
|
|
DEFINES += WINDOWS_SYS WIN32 STATICLIB MINGW
|
|
|
|
DEFINES += MINIUPNPC_VERSION=13
|
|
|
|
# DESTDIR = lib
|
2011-10-08 13:47:36 -04:00
|
|
|
|
2012-02-28 16:59:01 -05:00
|
|
|
# Switch off optimization for release version
|
|
|
|
QMAKE_CXXFLAGS_RELEASE -= -O2
|
|
|
|
QMAKE_CXXFLAGS_RELEASE += -O0
|
|
|
|
QMAKE_CFLAGS_RELEASE -= -O2
|
|
|
|
QMAKE_CFLAGS_RELEASE += -O0
|
2011-10-08 13:47:36 -04:00
|
|
|
|
2012-02-28 16:59:01 -05:00
|
|
|
# Switch on optimization for debug version
|
|
|
|
#QMAKE_CXXFLAGS_DEBUG += -O2
|
|
|
|
#QMAKE_CFLAGS_DEBUG += -O2
|
2011-10-08 13:47:36 -04:00
|
|
|
|
2012-02-28 16:59:01 -05:00
|
|
|
DEFINES += USE_CMD_ARGS
|
2011-10-08 13:47:36 -04:00
|
|
|
|
2012-02-28 16:59:01 -05:00
|
|
|
#miniupnp implementation files
|
|
|
|
HEADERS += upnp/upnputil.h
|
|
|
|
SOURCES += upnp/upnputil.c
|
2011-10-08 13:47:36 -04:00
|
|
|
|
2012-02-28 16:59:01 -05:00
|
|
|
UPNPC_DIR = ../../../lib/miniupnpc-1.3
|
|
|
|
PTHREADS_DIR = ../../../lib/pthreads-w32-2-8-0-release
|
|
|
|
ZLIB_DIR = ../../../lib/zlib-1.2.3
|
2012-07-21 19:21:39 -04:00
|
|
|
SSL_DIR = ../../../OpenSSL
|
2011-10-08 13:47:36 -04:00
|
|
|
|
2012-07-14 04:49:49 -04:00
|
|
|
INCLUDEPATH += . $${SSL_DIR}/include $${UPNPC_DIR} $${PTHREADS_DIR} $${ZLIB_DIR}
|
2011-10-08 13:47:36 -04:00
|
|
|
|
2012-02-28 16:59:01 -05:00
|
|
|
PRE_TARGETDEPS += ../../retroshare-gui/src/lib/libretroshare-gui.a
|
|
|
|
LIBS += -L"../../retroshare-gui/src/lib" -lretroshare-gui
|
2011-10-08 13:47:36 -04:00
|
|
|
|
2012-02-28 16:59:01 -05:00
|
|
|
LIBS += -L"../../../lib"
|
2012-07-14 04:49:49 -04:00
|
|
|
LIBS += -lssl -lcrypto -lpthreadGC2d -lminiupnpc -lz
|
2011-10-08 13:47:36 -04:00
|
|
|
# added after bitdht
|
2012-02-28 16:59:01 -05:00
|
|
|
LIBS += -luuid -lole32 -liphlpapi -lcrypt32-cygwin -lgdi32
|
|
|
|
LIBS += -lole32 -lwinmm
|
2011-10-08 13:47:36 -04:00
|
|
|
}
|