2015-12-15 13:56:49 -05:00
|
|
|
!include("../../retroshare.pri"): error("Could not include file ../../retroshare.pri")
|
|
|
|
|
|
|
|
TEMPLATE = lib
|
|
|
|
CONFIG += staticlib
|
|
|
|
CONFIG += create_prl
|
|
|
|
CONFIG -= qt
|
|
|
|
TARGET = resapi
|
|
|
|
TARGET_PRL = libresapi
|
|
|
|
DESTDIR = lib
|
|
|
|
|
|
|
|
CONFIG += libmicrohttpd
|
|
|
|
|
|
|
|
INCLUDEPATH += ../../libretroshare/src
|
|
|
|
|
|
|
|
unix {
|
|
|
|
webui_files.path = "$${DATA_DIR}/webui"
|
|
|
|
webui_files.files = webfiles/*
|
|
|
|
INSTALLS += webui_files
|
|
|
|
|
|
|
|
webui_img_files.path = "$${DATA_DIR}/webui/img"
|
|
|
|
webui_img_files.files = ../../retroshare-gui/src/gui/images/logo/logo_splash.png
|
|
|
|
INSTALLS += webui_img_files
|
|
|
|
}
|
|
|
|
|
|
|
|
win32{
|
|
|
|
DEFINES *= WINDOWS_SYS
|
|
|
|
INCLUDEPATH += . $$INC_DIR
|
|
|
|
}
|
|
|
|
|
|
|
|
libmicrohttpd{
|
|
|
|
linux {
|
|
|
|
CONFIG += link_pkgconfig
|
|
|
|
PKGCONFIG *= libmicrohttpd
|
|
|
|
} else {
|
|
|
|
mac {
|
2015-12-21 11:25:02 -05:00
|
|
|
INCLUDEPATH += . $$INC_DIR
|
|
|
|
for(lib, LIB_DIR):exists($$lib/libmicrohttpd.a){ LIBS *= $$lib/libmicrohttpd.a}
|
2015-12-15 13:56:49 -05:00
|
|
|
} else {
|
|
|
|
LIBS *= -lmicrohttpd
|
|
|
|
}
|
|
|
|
}
|
|
|
|
SOURCES += \
|
|
|
|
api/ApiServerMHD.cpp
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
api/ApiServerMHD.h
|
|
|
|
}
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
api/ApiServer.cpp \
|
|
|
|
api/json.cpp \
|
|
|
|
api/JsonStream.cpp \
|
|
|
|
api/ResourceRouter.cpp \
|
|
|
|
api/PeersHandler.cpp \
|
|
|
|
api/Operators.cpp \
|
|
|
|
api/IdentityHandler.cpp \
|
|
|
|
api/ForumHandler.cpp \
|
|
|
|
api/ServiceControlHandler.cpp \
|
|
|
|
api/StateTokenServer.cpp \
|
|
|
|
api/GxsResponseTask.cpp \
|
|
|
|
api/FileSearchHandler.cpp \
|
|
|
|
api/TransfersHandler.cpp \
|
|
|
|
api/RsControlModule.cpp \
|
|
|
|
api/GetPluginInterfaces.cpp \
|
|
|
|
api/ChatHandler.cpp \
|
|
|
|
api/LivereloadHandler.cpp \
|
|
|
|
api/TmpBlobStore.cpp \
|
|
|
|
util/ContentTypes.cpp \
|
|
|
|
api/ApiPluginHandler.cpp
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
api/ApiServer.h \
|
|
|
|
api/json.h \
|
|
|
|
api/JsonStream.h \
|
|
|
|
api/ApiTypes.h \
|
|
|
|
api/ResourceRouter.h \
|
|
|
|
api/PeersHandler.h \
|
|
|
|
api/Operators.h \
|
|
|
|
api/IdentityHandler.h \
|
|
|
|
api/ForumHandler.h \
|
|
|
|
api/ServiceControlHandler.h \
|
|
|
|
api/GxsMetaOperators.h \
|
|
|
|
api/StateTokenServer.h \
|
|
|
|
api/GxsResponseTask.h \
|
|
|
|
api/Pagination.h \
|
|
|
|
api/FileSearchHandler.h \
|
|
|
|
api/TransfersHandler.h \
|
|
|
|
api/RsControlModule.h \
|
|
|
|
api/GetPluginInterfaces.h \
|
|
|
|
api/ChatHandler.h \
|
|
|
|
api/LivereloadHandler.h \
|
|
|
|
api/TmpBlobStore.h \
|
|
|
|
util/ContentTypes.h \
|
|
|
|
api/ApiPluginHandler.h
|