2021-04-06 17:04:17 +02:00
|
|
|
# SPDX-FileCopyrightText: 2020 Tobias Fella <fella@posteo.de>
|
|
|
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
2021-04-30 23:04:34 +02:00
|
|
|
|
2021-05-03 10:43:24 +02:00
|
|
|
set(SRCS_base
|
2020-02-28 23:25:08 +01:00
|
|
|
main.cpp
|
2020-10-09 13:47:35 +02:00
|
|
|
feedsmodel.cpp
|
|
|
|
entriesmodel.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
|
|
|
|
enclosuredownloadjob.cpp
|
2021-03-26 16:26:19 +01:00
|
|
|
queuemodel.cpp
|
2021-04-17 22:54:35 +02:00
|
|
|
episodemodel.cpp
|
2021-04-21 23:09:19 +02:00
|
|
|
downloadprogressmodel.cpp
|
2021-04-02 17:06:27 +02:00
|
|
|
datamanager.cpp
|
2021-04-11 15:26:28 +02:00
|
|
|
audiomanager.cpp
|
|
|
|
powermanagementinterface.cpp
|
2021-04-22 17:05:33 +02:00
|
|
|
errorlogmodel.cpp
|
|
|
|
error.h
|
2021-04-11 23:07:21 +02:00
|
|
|
mpris2/mpris2.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-05-03 10:43:24 +02:00
|
|
|
if(ANDROID)
|
|
|
|
set (SRCS ${SRCS_base})
|
|
|
|
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)
|
|
|
|
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
|
2020-04-21 23:27:15 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
kirigami_package_breeze_icons(ICONS
|
2021-04-30 14:46:48 +02:00
|
|
|
dialog-close
|
2020-04-21 23:27:15 +02:00
|
|
|
delete
|
|
|
|
settings-configure
|
2020-05-10 16:22:04 +02:00
|
|
|
help-about-symbolic
|
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-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
|
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-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
|
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})
|