2021-04-06 17:04:17 +02:00
|
|
|
# SPDX-FileCopyrightText: 2020 Tobias Fella <fella@posteo.de>
|
|
|
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
2021-05-03 10:43:24 +02:00
|
|
|
set(SRCS_base
|
2020-02-28 23:25:08 +01:00
|
|
|
main.cpp
|
2021-09-28 22:46:01 +02:00
|
|
|
about.cpp
|
2020-02-28 23:25:08 +01:00
|
|
|
fetcher.cpp
|
2020-03-16 22:37:04 +01:00
|
|
|
database.cpp
|
2020-05-26 16:32:07 +02:00
|
|
|
entry.cpp
|
|
|
|
feed.cpp
|
|
|
|
author.cpp
|
2021-02-21 19:54:10 +01:00
|
|
|
enclosure.cpp
|
2021-04-02 17:06:27 +02:00
|
|
|
datamanager.cpp
|
2021-04-11 15:26:28 +02:00
|
|
|
audiomanager.cpp
|
2021-05-14 16:46:54 +02:00
|
|
|
error.cpp
|
2021-09-08 11:46:22 +02:00
|
|
|
enclosuredownloadjob.cpp
|
2021-07-04 18:35:09 +02:00
|
|
|
storagemanager.cpp
|
|
|
|
storagemovejob.cpp
|
2021-09-21 22:36:54 +02:00
|
|
|
models/chaptermodel.cpp
|
2021-09-08 11:46:22 +02:00
|
|
|
models/feedsmodel.cpp
|
2021-09-20 16:57:43 +02:00
|
|
|
models/feedsproxymodel.cpp
|
2021-09-08 11:46:22 +02:00
|
|
|
models/entriesmodel.cpp
|
|
|
|
models/queuemodel.cpp
|
|
|
|
models/episodemodel.cpp
|
2021-09-08 14:53:37 +02:00
|
|
|
models/episodeproxymodel.cpp
|
2021-09-08 11:46:22 +02:00
|
|
|
models/downloadmodel.cpp
|
|
|
|
models/errorlogmodel.cpp
|
|
|
|
models/podcastsearchmodel.cpp
|
2021-04-11 23:07:21 +02:00
|
|
|
mpris2/mpris2.cpp
|
2021-09-08 11:46:22 +02:00
|
|
|
powermanagementinterface.cpp
|
2020-02-28 23:25:08 +01:00
|
|
|
resources.qrc
|
2020-04-21 23:27:15 +02:00
|
|
|
)
|
2020-02-28 23:25:08 +01:00
|
|
|
|
2021-05-28 22:55:18 +02:00
|
|
|
ecm_qt_declare_logging_category(SRCS_base
|
|
|
|
HEADER "audiologging.h"
|
|
|
|
IDENTIFIER "kastsAudio"
|
|
|
|
CATEGORY_NAME "org.kde.kasts.audio"
|
|
|
|
DEFAULT_SEVERITY Info
|
|
|
|
)
|
|
|
|
|
2021-06-05 20:12:42 +02:00
|
|
|
ecm_qt_declare_logging_category(SRCS_base
|
|
|
|
HEADER "datamanagerlogging.h"
|
|
|
|
IDENTIFIER "kastsDataManager"
|
|
|
|
CATEGORY_NAME "org.kde.kasts.datamanager"
|
|
|
|
DEFAULT_SEVERITY Info
|
|
|
|
)
|
|
|
|
|
|
|
|
ecm_qt_declare_logging_category(SRCS_base
|
|
|
|
HEADER "enclosurelogging.h"
|
|
|
|
IDENTIFIER "kastsEnclosure"
|
|
|
|
CATEGORY_NAME "org.kde.kasts.enclosure"
|
|
|
|
DEFAULT_SEVERITY Info
|
|
|
|
)
|
|
|
|
|
|
|
|
ecm_qt_declare_logging_category(SRCS_base
|
|
|
|
HEADER "feedlogging.h"
|
|
|
|
IDENTIFIER "kastsFeed"
|
|
|
|
CATEGORY_NAME "org.kde.kasts.feed"
|
|
|
|
DEFAULT_SEVERITY Info
|
|
|
|
)
|
|
|
|
|
|
|
|
ecm_qt_declare_logging_category(SRCS_base
|
|
|
|
HEADER "fetcherlogging.h"
|
|
|
|
IDENTIFIER "kastsFetcher"
|
|
|
|
CATEGORY_NAME "org.kde.kasts.fetcher"
|
|
|
|
DEFAULT_SEVERITY Info
|
|
|
|
)
|
|
|
|
|
|
|
|
ecm_qt_declare_logging_category(SRCS_base
|
2021-09-08 11:46:22 +02:00
|
|
|
HEADER "models/downloadmodellogging.h"
|
|
|
|
IDENTIFIER "kastsDownloadModel"
|
|
|
|
CATEGORY_NAME "org.kde.kasts.downloadmodel"
|
2021-06-05 20:12:42 +02:00
|
|
|
DEFAULT_SEVERITY Info
|
|
|
|
)
|
|
|
|
|
|
|
|
ecm_qt_declare_logging_category(SRCS_base
|
2021-09-08 11:46:22 +02:00
|
|
|
HEADER "models/queuemodellogging.h"
|
2021-06-05 20:12:42 +02:00
|
|
|
IDENTIFIER "kastsQueueModel"
|
|
|
|
CATEGORY_NAME "org.kde.kasts.queuemodel"
|
|
|
|
DEFAULT_SEVERITY Info
|
|
|
|
)
|
|
|
|
|
2021-09-08 11:46:22 +02:00
|
|
|
ecm_qt_declare_logging_category(SRCS_base
|
|
|
|
HEADER "powermanagementinterfacelogging.h"
|
|
|
|
IDENTIFIER "kastsPowerManagementInterface"
|
|
|
|
CATEGORY_NAME "org.kde.kasts.powermanagementinterface"
|
|
|
|
DEFAULT_SEVERITY Info
|
|
|
|
)
|
|
|
|
|
2021-07-04 18:35:09 +02:00
|
|
|
ecm_qt_declare_logging_category(SRCS_base
|
|
|
|
HEADER "storagemanagerlogging.h"
|
|
|
|
IDENTIFIER "kastsStorageManager"
|
|
|
|
CATEGORY_NAME "org.kde.kasts.storagemanager"
|
|
|
|
DEFAULT_SEVERITY Info
|
|
|
|
)
|
|
|
|
|
2021-09-08 11:46:22 +02:00
|
|
|
ecm_qt_declare_logging_category(SRCS_base
|
|
|
|
HEADER "storagemovejoblogging.h"
|
|
|
|
IDENTIFIER "kastsStorageMoveJob"
|
|
|
|
CATEGORY_NAME "org.kde.kasts.storagemovejob"
|
|
|
|
DEFAULT_SEVERITY Info
|
|
|
|
)
|
|
|
|
|
2021-05-03 10:43:24 +02:00
|
|
|
if(ANDROID)
|
2021-06-19 00:12:35 +02:00
|
|
|
set (SRCS ${SRCS_base}
|
|
|
|
androidlogging.h)
|
2021-05-03 10:43:24 +02:00
|
|
|
else()
|
|
|
|
set (SRCS ${SRCS_base}
|
|
|
|
mpris2/mediaplayer2.cpp
|
|
|
|
mpris2/mediaplayer2player.cpp
|
|
|
|
)
|
2021-04-30 23:04:34 +02:00
|
|
|
|
2021-05-03 10:43:24 +02:00
|
|
|
qt5_add_dbus_interface(SRCS dbus-interfaces/org.freedesktop.PowerManagement.Inhibit.xml inhibitinterface)
|
|
|
|
qt5_add_dbus_interface(SRCS dbus-interfaces/org.gnome.SessionManager.xml gnomesessioninterface)
|
2021-06-19 16:32:39 +02:00
|
|
|
qt5_add_dbus_interface(SRCS dbus-interfaces/org.freedesktop.NetworkManager.xml NMinterface)
|
2021-05-03 10:43:24 +02:00
|
|
|
endif()
|
2021-04-30 23:04:34 +02:00
|
|
|
|
2021-05-03 22:16:19 +02:00
|
|
|
add_executable(kasts ${SRCS})
|
2021-04-30 23:04:34 +02:00
|
|
|
|
2021-05-03 22:16:19 +02:00
|
|
|
kconfig_add_kcfg_files(kasts settingsmanager.kcfgc GENERATE_MOC)
|
2020-03-26 14:16:19 +01:00
|
|
|
|
2021-05-03 22:16:19 +02:00
|
|
|
target_include_directories(kasts PRIVATE ${CMAKE_BINARY_DIR})
|
2021-05-27 22:42:18 +02:00
|
|
|
target_link_libraries(kasts PRIVATE Qt::Core Qt::Qml Qt::Quick Qt::QuickControls2 Qt::Sql Qt::Multimedia KF5::Syndication KF5::CoreAddons KF5::ConfigGui KF5::I18n)
|
2020-04-21 23:27:15 +02:00
|
|
|
|
|
|
|
if(ANDROID)
|
2021-05-03 22:16:19 +02:00
|
|
|
target_link_libraries(kasts PRIVATE
|
2020-04-21 23:27:15 +02:00
|
|
|
KF5::Kirigami2
|
2021-05-27 22:42:18 +02:00
|
|
|
Qt::Svg
|
2020-04-28 21:32:24 +02:00
|
|
|
OpenSSL::SSL
|
2021-06-19 00:12:35 +02:00
|
|
|
log
|
2020-04-21 23:27:15 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
kirigami_package_breeze_icons(ICONS
|
2021-06-23 17:17:28 +02:00
|
|
|
window-close
|
|
|
|
window-close-symbolic
|
2020-04-21 23:27:15 +02:00
|
|
|
delete
|
|
|
|
settings-configure
|
2020-05-10 16:22:04 +02:00
|
|
|
help-about-symbolic
|
2021-09-18 19:46:21 +02:00
|
|
|
tools-report-bug
|
2020-04-23 23:03:47 +02:00
|
|
|
list-add
|
2021-04-18 16:55:40 +02:00
|
|
|
list-remove
|
2020-04-28 22:02:31 +02:00
|
|
|
view-refresh
|
2021-07-02 16:41:09 +02:00
|
|
|
view-filter
|
2021-05-03 22:16:19 +02:00
|
|
|
kasts
|
2020-05-31 21:49:30 +02:00
|
|
|
mail-sent
|
|
|
|
globe
|
2020-07-04 22:42:19 +02:00
|
|
|
data-error
|
2020-07-29 22:10:39 +02:00
|
|
|
rss
|
2021-07-15 13:46:46 +02:00
|
|
|
bookmarks
|
2020-09-19 16:57:29 +02:00
|
|
|
document-import
|
|
|
|
document-export
|
2021-04-18 16:55:40 +02:00
|
|
|
document-open-folder
|
2021-02-21 19:54:10 +01:00
|
|
|
edit-delete-remove
|
2021-04-26 10:57:55 +02:00
|
|
|
edit-clear-all
|
2021-09-06 16:54:59 +02:00
|
|
|
edit-select-all
|
|
|
|
edit-select-none
|
2021-02-21 19:54:10 +01:00
|
|
|
download
|
2021-04-18 16:55:40 +02:00
|
|
|
media-playlist-append
|
|
|
|
media-seek-backward
|
|
|
|
media-seek-forward
|
|
|
|
media-skip-forward
|
|
|
|
media-playback-start
|
|
|
|
media-playback-pause
|
|
|
|
source-playlist
|
|
|
|
arrow-down
|
2021-04-29 13:32:34 +02:00
|
|
|
overflow-menu
|
2021-06-04 09:03:48 +02:00
|
|
|
checkbox
|
2021-06-22 12:18:37 +02:00
|
|
|
error
|
2021-07-02 00:19:03 +02:00
|
|
|
search
|
|
|
|
kt-add-feeds
|
2020-04-21 23:27:15 +02:00
|
|
|
)
|
|
|
|
else()
|
2021-05-27 22:42:18 +02:00
|
|
|
target_link_libraries(kasts PRIVATE Qt::Widgets Qt::DBus)
|
2020-04-21 23:27:15 +02:00
|
|
|
endif()
|
2020-02-28 23:25:08 +01:00
|
|
|
|
2021-05-03 22:16:19 +02:00
|
|
|
install(TARGETS kasts ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})
|