mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
66b9557833
- The advantage is that this method automatically includes additional dependencies of LIBS (e.g. libupnp needs -lixml). - Also if some distribution moves headers to non default locations the correct locations get added by PKGCONFIG
86 lines
1.8 KiB
Prolog
86 lines
1.8 KiB
Prolog
!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 += $$PWD/../../../libs/include
|
|
}
|
|
|
|
libmicrohttpd{
|
|
linux {
|
|
CONFIG += link_pkgconfig
|
|
PKGCONFIG *= libmicrohttpd
|
|
} 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
|
|
|
|
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
|