2018-11-04 09:48:33 -05:00
|
|
|
################################################################################
|
|
|
|
# FeedReader.pro #
|
|
|
|
# Copyright (C) 2018, Retroshare team <retroshare.team@gmailcom> #
|
|
|
|
# #
|
|
|
|
# This program is free software: you can redistribute it and/or modify #
|
|
|
|
# it under the terms of the GNU Affero General Public License as #
|
|
|
|
# published by the Free Software Foundation, either version 3 of the #
|
|
|
|
# License, or (at your option) any later version. #
|
|
|
|
# #
|
|
|
|
# This program is distributed in the hope that it will be useful, #
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
|
|
|
# GNU Lesser General Public License for more details. #
|
|
|
|
# #
|
|
|
|
# You should have received a copy of the GNU Lesser General Public License #
|
|
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>. #
|
|
|
|
################################################################################
|
|
|
|
|
2012-08-02 09:17:53 -04:00
|
|
|
!include("../Common/retroshare_plugin.pri"): error("Could not include file ../Common/retroshare_plugin.pri")
|
|
|
|
|
|
|
|
CONFIG += qt uic qrc resources
|
2018-12-18 17:14:14 -05:00
|
|
|
TARGET = FeedReader
|
|
|
|
TARGET_PRL = FeedReader
|
|
|
|
DESTDIR = lib
|
2012-08-02 09:17:53 -04:00
|
|
|
|
2013-10-19 20:56:34 -04:00
|
|
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
|
|
|
# Qt 5
|
|
|
|
QT += widgets
|
|
|
|
}
|
|
|
|
|
2018-12-21 09:50:45 -05:00
|
|
|
target.files = lib/libFeedReader.so
|
|
|
|
|
2012-08-02 09:17:53 -04:00
|
|
|
SOURCES = FeedReaderPlugin.cpp \
|
|
|
|
services/p3FeedReader.cc \
|
|
|
|
services/p3FeedReaderThread.cc \
|
|
|
|
services/rsFeedReaderItems.cc \
|
|
|
|
gui/FeedReaderDialog.cpp \
|
2012-12-25 18:53:55 -05:00
|
|
|
gui/FeedReaderMessageWidget.cpp \
|
2012-08-02 09:17:53 -04:00
|
|
|
gui/AddFeedDialog.cpp \
|
2012-08-13 17:35:11 -04:00
|
|
|
gui/PreviewFeedDialog.cpp \
|
2012-08-02 09:17:53 -04:00
|
|
|
gui/FeedReaderNotify.cpp \
|
2012-08-13 17:35:11 -04:00
|
|
|
gui/FeedReaderConfig.cpp \
|
|
|
|
gui/FeedReaderStringDefs.cpp \
|
2013-01-08 17:07:52 -05:00
|
|
|
gui/FeedReaderFeedNotify.cpp \
|
2012-12-20 08:30:16 -05:00
|
|
|
gui/FeedReaderUserNotify.cpp \
|
2013-01-08 17:07:52 -05:00
|
|
|
gui/FeedReaderFeedItem.cpp \
|
2012-08-13 17:35:11 -04:00
|
|
|
util/CURLWrapper.cpp \
|
|
|
|
util/XMLWrapper.cpp \
|
2012-09-04 19:53:04 -04:00
|
|
|
util/HTMLWrapper.cpp \
|
|
|
|
util/XPathWrapper.cpp
|
2012-08-02 09:17:53 -04:00
|
|
|
|
|
|
|
HEADERS = FeedReaderPlugin.h \
|
|
|
|
interface/rsFeedReader.h \
|
|
|
|
services/p3FeedReader.h \
|
|
|
|
services/p3FeedReaderThread.h \
|
|
|
|
services/rsFeedReaderItems.h \
|
|
|
|
gui/FeedReaderDialog.h \
|
2012-12-25 18:53:55 -05:00
|
|
|
gui/FeedReaderMessageWidget.h \
|
2012-08-02 09:17:53 -04:00
|
|
|
gui/AddFeedDialog.h \
|
2012-08-13 17:35:11 -04:00
|
|
|
gui/PreviewFeedDialog.h \
|
2012-08-02 09:17:53 -04:00
|
|
|
gui/FeedReaderNotify.h \
|
2012-08-13 17:35:11 -04:00
|
|
|
gui/FeedReaderConfig.h \
|
|
|
|
gui/FeedReaderStringDefs.h \
|
2013-01-08 17:07:52 -05:00
|
|
|
gui/FeedReaderFeedNotify.h \
|
2012-12-20 08:30:16 -05:00
|
|
|
gui/FeedReaderUserNotify.h \
|
2013-01-08 17:07:52 -05:00
|
|
|
gui/FeedReaderFeedItem.h \
|
2012-08-13 17:35:11 -04:00
|
|
|
util/CURLWrapper.h \
|
|
|
|
util/XMLWrapper.h \
|
2012-09-04 19:53:04 -04:00
|
|
|
util/HTMLWrapper.h \
|
|
|
|
util/XPathWrapper.h
|
2012-08-02 09:17:53 -04:00
|
|
|
|
|
|
|
FORMS = gui/FeedReaderDialog.ui \
|
2012-12-25 18:53:55 -05:00
|
|
|
gui/FeedReaderMessageWidget.ui \
|
2012-08-02 09:17:53 -04:00
|
|
|
gui/AddFeedDialog.ui \
|
2012-08-13 17:35:11 -04:00
|
|
|
gui/PreviewFeedDialog.ui \
|
2013-01-08 17:07:52 -05:00
|
|
|
gui/FeedReaderConfig.ui \
|
|
|
|
gui/FeedReaderFeedItem.ui
|
2012-08-02 09:17:53 -04:00
|
|
|
|
|
|
|
TARGET = FeedReader
|
|
|
|
|
|
|
|
RESOURCES = gui/FeedReader_images.qrc \
|
2015-06-28 06:11:47 -04:00
|
|
|
lang/FeedReader_lang.qrc \
|
|
|
|
qss/FeedReader_qss.qrc
|
|
|
|
|
2012-12-20 13:36:58 -05:00
|
|
|
TRANSLATIONS += \
|
2013-12-13 10:08:36 -05:00
|
|
|
lang/FeedReader_ca_ES.ts \
|
2012-12-20 13:36:58 -05:00
|
|
|
lang/FeedReader_cs.ts \
|
|
|
|
lang/FeedReader_da.ts \
|
|
|
|
lang/FeedReader_de.ts \
|
2013-06-04 19:39:07 -04:00
|
|
|
lang/FeedReader_el.ts \
|
2012-12-20 13:36:58 -05:00
|
|
|
lang/FeedReader_en.ts \
|
|
|
|
lang/FeedReader_es.ts \
|
|
|
|
lang/FeedReader_fi.ts \
|
|
|
|
lang/FeedReader_fr.ts \
|
|
|
|
lang/FeedReader_hu.ts \
|
|
|
|
lang/FeedReader_it.ts \
|
|
|
|
lang/FeedReader_ja_JP.ts \
|
|
|
|
lang/FeedReader_ko.ts \
|
2013-06-04 19:39:07 -04:00
|
|
|
lang/FeedReader_nl.ts \
|
2012-12-20 13:36:58 -05:00
|
|
|
lang/FeedReader_pl.ts \
|
|
|
|
lang/FeedReader_ru.ts \
|
|
|
|
lang/FeedReader_sv.ts \
|
|
|
|
lang/FeedReader_tr.ts \
|
|
|
|
lang/FeedReader_zh_CN.ts
|
2012-08-02 09:17:53 -04:00
|
|
|
|
2018-05-03 09:55:21 -04:00
|
|
|
# when rapidjson is mainstream on all distribs, we will not need the sources anymore
|
|
|
|
# in the meantime, they are part of the RS directory so that it is always possible to find them
|
|
|
|
|
|
|
|
INCLUDEPATH += ../../rapidjson-1.1.0
|
|
|
|
|
|
|
|
|
2012-08-03 21:15:40 -04:00
|
|
|
linux-* {
|
2015-09-05 17:48:24 -04:00
|
|
|
CONFIG += link_pkgconfig
|
2012-08-03 21:15:40 -04:00
|
|
|
|
2015-09-05 17:48:24 -04:00
|
|
|
PKGCONFIG *= libcurl libxml-2.0 libxslt
|
2012-08-03 21:15:40 -04:00
|
|
|
}
|
|
|
|
|
2012-08-02 09:17:53 -04:00
|
|
|
win32 {
|
2013-01-21 19:11:43 -05:00
|
|
|
DEFINES += CURL_STATICLIB LIBXML_STATIC LIBXSLT_STATIC LIBEXSLT_STATIC
|
2012-08-02 09:17:53 -04:00
|
|
|
|
2015-09-09 17:06:56 -04:00
|
|
|
#Have to reorder libs, else got /libs/lib/libcrypto.a(bio_lib.o):bio_lib.c:(.text+0x0): multiple definition of `BIO_new'
|
|
|
|
LIBS = -lcurl -lxml2 -lz -lxslt -lws2_32 -lwldap32 -lssl -lcrypto -lgdi32 $${LIBS}
|
2016-08-14 08:11:01 -04:00
|
|
|
|
|
|
|
# Check for msys2
|
|
|
|
!isEmpty(PREFIX_MSYS2) {
|
|
|
|
message(Use msys2 xml2.)
|
|
|
|
INC_DIR += "$${PREFIX_MSYS2}/include/libxml2"
|
2015-09-23 12:25:03 -04:00
|
|
|
}
|
2016-08-14 08:11:01 -04:00
|
|
|
|
2015-09-23 12:25:03 -04:00
|
|
|
DEPENDPATH += . $$INC_DIR
|
|
|
|
INCLUDEPATH += . $$INC_DIR
|
2012-08-02 09:17:53 -04:00
|
|
|
}
|
2013-08-25 17:06:29 -04:00
|
|
|
|
2015-12-24 12:54:45 -05:00
|
|
|
macx {
|
|
|
|
DEFINES += CURL_STATICLIB LIBXML_STATIC LIBXSLT_STATIC LIBEXSLT_STATIC
|
|
|
|
|
|
|
|
XML2_FOUND =
|
|
|
|
for(inc, INC_DIR){
|
|
|
|
#message(Scanning $$inc)s
|
|
|
|
exists($$inc/libxml2){
|
|
|
|
isEmpty( XML2_FOUND) {
|
|
|
|
message(xml2 is first found here: $$inc .)
|
|
|
|
INC_DIR += "$$inc/libxml2"
|
|
|
|
XML2_FOUND = 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-12-08 13:00:34 -05:00
|
|
|
DEPENDPATH += . $$INC_DIR
|
2015-12-24 12:54:45 -05:00
|
|
|
INCLUDEPATH += . $$INC_DIR
|
|
|
|
|
2017-12-08 13:00:34 -05:00
|
|
|
LIBS += -lcurl -lxml2 -lxslt -lcrypto
|
2015-12-24 12:54:45 -05:00
|
|
|
}
|
|
|
|
|
2013-08-25 17:06:29 -04:00
|
|
|
openbsd-* {
|
|
|
|
LIBXML2_DIR = /usr/local/include/libxml2
|
2015-10-20 12:41:40 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
haiku-* {
|
|
|
|
LIBXML2_DIR = pkg-config --cflags libxml-2.0
|
2013-08-25 17:06:29 -04:00
|
|
|
|
|
|
|
INCLUDEPATH += $${LIBXML2_DIR}
|
|
|
|
|
|
|
|
LIBS += -lcurl -lxml2 -lxslt
|
|
|
|
}
|