kasts/src/CMakeLists.txt

179 lines
4.5 KiB
CMake
Raw Normal View History

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
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
audiomanager.cpp
error.cpp
2021-09-08 11:46:22 +02:00
enclosuredownloadjob.cpp
storagemanager.cpp
storagemovejob.cpp
updatefeedjob.cpp
fetchfeedsjob.cpp
2021-09-21 22:36:54 +02:00
models/chaptermodel.cpp
2021-09-08 11:46:22 +02:00
models/feedsmodel.cpp
models/feedsproxymodel.cpp
2021-09-08 11:46:22 +02:00
models/entriesmodel.cpp
models/queuemodel.cpp
models/episodemodel.cpp
models/episodeproxymodel.cpp
2021-09-08 11:46:22 +02:00
models/downloadmodel.cpp
models/errorlogmodel.cpp
models/podcastsearchmodel.cpp
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
)
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)
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-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)
qt5_add_dbus_interface(SRCS dbus-interfaces/org.freedesktop.NetworkManager.xml NMinterface)
2021-05-03 10:43:24 +02:00
endif()
2021-05-03 22:16:19 +02:00
add_executable(kasts ${SRCS})
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})
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
Qt::Svg
2020-04-28 21:32:24 +02:00
OpenSSL::SSL
log
2020-04-21 23:27:15 +02:00
)
kirigami_package_breeze_icons(ICONS
window-close
window-close-symbolic
2020-04-21 23:27:15 +02:00
delete
settings-configure
help-about-symbolic
tools-report-bug
list-add
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
data-error
2020-07-29 22:10:39 +02:00
rss
bookmarks
2020-09-19 16:57:29 +02:00
document-import
document-export
document-open-folder
2021-02-21 19:54:10 +01:00
edit-delete-remove
edit-clear-all
edit-select-all
edit-select-none
2021-02-21 19:54:10 +01:00
download
media-playlist-append
media-seek-backward
media-seek-forward
media-skip-forward
media-playback-start
media-playback-pause
source-playlist
arrow-down
overflow-menu
2021-06-04 09:03:48 +02:00
checkbox
error
search
kt-add-feeds
2020-04-21 23:27:15 +02:00
)
else()
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})