!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 = webui-src/public-gen/app.js webui_files.files += webui-src/public-gen/app.css webui_files.files += webui-src/public-gen/index.html 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 create_webfiles.commands = sh $$_PRO_FILE_PWD_/webui-src/make-src/build.sh $$_PRO_FILE_PWD_/webui-src QMAKE_EXTRA_TARGETS += create_webfiles PRE_TARGETDEPS += create_webfiles system($$create_webfiles.commands) } win32{ DEFINES *= WINDOWS_SYS INCLUDEPATH += . $$INC_DIR } libmicrohttpd{ linux { CONFIG += link_pkgconfig PKGCONFIG *= libmicrohttpd } else { mac { INCLUDEPATH += . $$INC_DIR for(lib, LIB_DIR):exists($$lib/libmicrohttpd.a){ LIBS *= $$lib/libmicrohttpd.a} } 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 \ api/ChannelsHandler.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 \ api/ChannelsHandler.h