2015-08-31 11:55:30 -04:00
|
|
|
!include("../../retroshare.pri"): error("Could not include file ../../retroshare.pri")
|
|
|
|
|
2011-06-17 03:13:47 -04:00
|
|
|
TEMPLATE = lib
|
2015-08-29 05:40:50 -04:00
|
|
|
CONFIG *= plugin
|
2011-06-17 14:55:59 -04:00
|
|
|
|
2015-01-12 18:14:35 -05:00
|
|
|
DEPENDPATH += ../../libretroshare/src/ ../../retroshare-gui/src/
|
2011-06-17 14:55:59 -04:00
|
|
|
INCLUDEPATH += ../../libretroshare/src/ ../../retroshare-gui/src/
|
2011-06-17 03:13:47 -04:00
|
|
|
|
2015-08-22 14:50:30 -04:00
|
|
|
unix {
|
2015-09-06 08:19:21 -04:00
|
|
|
target.path = "$${PLUGIN_DIR}"
|
2015-08-22 14:50:30 -04:00
|
|
|
INSTALLS += target
|
|
|
|
}
|
|
|
|
|
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 {
|
2013-10-19 20:56:34 -04:00
|
|
|
lessThan(QT_MAJOR_VERSION, 5) {
|
|
|
|
# from Qt 4.7.4 and 4.8+ the mkspecs has changed making dyn libs unusable anymore on windows : QMAKE_LFLAGS =
|
2014-06-21 17:12:27 -04:00
|
|
|
QMAKE_LFLAGS = -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
|
2013-10-19 20:56:34 -04:00
|
|
|
}
|
2012-09-10 18:23:54 -04:00
|
|
|
|
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
|
|
|
|
2015-09-03 10:24:57 -04:00
|
|
|
# solve linker warnings because of the order of the libraries
|
|
|
|
QMAKE_LFLAGS += -Wl,--start-group
|
|
|
|
|
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
|
|
|
|
2013-10-19 20:56:34 -04:00
|
|
|
DEFINES += WINDOWS_SYS WIN32 STATICLIB MINGW WIN32_LEAN_AND_MEAN _USE_32BIT_TIME_T
|
2015-09-23 12:25:03 -04:00
|
|
|
#DEFINES += MINIUPNPC_VERSION=13
|
2012-02-28 16:59:01 -05:00
|
|
|
# DESTDIR = lib
|
2011-10-08 13:47:36 -04:00
|
|
|
|
2012-08-02 19:25:28 -04:00
|
|
|
# Switch off optimization for release version
|
|
|
|
QMAKE_CXXFLAGS_RELEASE -= -O2
|
|
|
|
QMAKE_CXXFLAGS_RELEASE += -O0
|
|
|
|
QMAKE_CFLAGS_RELEASE -= -O2
|
|
|
|
QMAKE_CFLAGS_RELEASE += -O0
|
|
|
|
|
|
|
|
# Switch on optimization for debug version
|
|
|
|
#QMAKE_CXXFLAGS_DEBUG += -O2
|
|
|
|
#QMAKE_CFLAGS_DEBUG += -O2
|
|
|
|
|
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
|
2015-09-23 12:25:03 -04:00
|
|
|
#HEADERS += upnp/upnputil.h
|
|
|
|
#SOURCES += upnp/upnputil.c
|
2011-10-08 13:47:36 -04:00
|
|
|
|
2015-09-23 12:25:03 -04:00
|
|
|
DEPENDPATH += . $$INC_DIR
|
|
|
|
INCLUDEPATH += . $$INC_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
|
|
|
|
2015-09-23 12:25:03 -04:00
|
|
|
for(lib, LIB_DIR):LIBS += -L"$$lib"
|
|
|
|
for(bin, BIN_DIR):LIBS += -L"$$bin"
|
2013-12-28 18:49:50 -05:00
|
|
|
LIBS += -lpthread
|
2011-10-08 13:47:36 -04:00
|
|
|
}
|
2015-12-24 12:54:45 -05:00
|
|
|
|
|
|
|
macx {
|
|
|
|
|
|
|
|
|
|
|
|
OBJECTS_DIR = temp/obj
|
|
|
|
MOC_DIR = temp/moc
|
|
|
|
RCC_DIR = temp/qrc
|
|
|
|
UI_DIR = temp/ui
|
|
|
|
|
|
|
|
DEPENDPATH += . $$INC_DIR
|
|
|
|
INCLUDEPATH += . $$INC_DIR
|
|
|
|
|
|
|
|
for(lib, LIB_DIR):LIBS += -L"$$lib"
|
|
|
|
for(bin, BIN_DIR):LIBS += -L"$$bin"
|
|
|
|
}
|