diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-10 20:36:49 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-21 19:05:50 +0900 |
| commit | 73da215882d7f96b6010fa99361c7cc10ec18bfb (patch) | |
| tree | cea1a5016a94a9dac26cab8227e2513224288be3 /src/plugins | |
| parent | bb099158e6c9fd0f1c2771cb9350d3b0a0b51a27 (diff) | |
| download | ktorrent-73da2158.tar.gz ktorrent-73da2158.zip | |
Conversion to cmake building system
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit bf204e931c605c73d761ec84943bb0cc94d7e7e4)
Diffstat (limited to 'src/plugins')
40 files changed, 580 insertions, 9 deletions
diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt new file mode 100644 index 0000000..b42887c --- /dev/null +++ b/src/plugins/CMakeLists.txt @@ -0,0 +1,15 @@ + +##### subfolders + +add_subdirectory( infowidget ) +add_subdirectory( ipfilter ) +add_subdirectory( logviewer ) +add_subdirectory( partfileimport ) +add_subdirectory( rssfeed ) +add_subdirectory( scanfolder ) +add_subdirectory( scheduler ) +add_subdirectory( search ) +add_subdirectory( stats ) +add_subdirectory( upnp ) +add_subdirectory( webinterface ) +tde_conditional_add_subdirectory( WITH_ZEROCONF zeroconf ) diff --git a/src/plugins/infowidget/CMakeLists.txt b/src/plugins/infowidget/CMakeLists.txt new file mode 100644 index 0000000..23ffe8e --- /dev/null +++ b/src/plugins/infowidget/CMakeLists.txt @@ -0,0 +1,54 @@ + +##### subfolders + +add_subdirectory( geoip ) + + +##### current folder + +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/src/libktorrent + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### geoip library (system-wide or builtin) + +set( LIB_GEOIP "") +if( WITH_SYSTEM_GEOIP ) + set( LIB_GEOIP "${GEOIP_LIBRARIES}" ) +else( ) + if( WITH_BUILTIN_GEOIP ) + tde_add_library( geoip_builtin STATIC_PIC SOURCES GeoIP.c ) + set( LIB_GEOIP "geoip_builtin-static") + endif( ) +endif( ) + +##### ktinfowidgetplugin (kpart) + +tde_add_kpart( ktinfowidgetplugin AUTOMOC + SOURCES + infowidgetplugin.cpp availabilitychunkbar.cpp fileview.cpp floatspinbox.cpp + chunkbar.cpp chunkdownloadview.cpp downloadedchunkbar.cpp flagdb.cpp peerview.cpp + ktorrentmonitor.cpp iwfiletreediritem.cpp iwfiletreeitem.cpp infowidgetprefpage.cpp + infowidgetpluginsettings.kcfgc iwpref.ui trackerviewbase.ui trackerview.cpp + localefloatvalidator.cpp chunkdownloadviewbase.ui statustabbase.ui statustab.cpp + LINK + ${LIB_GEOIP} ktorrent-shared + tdecore-shared tdeui-shared tdeio-shared tdeparts-shared tdehtml-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES ktinfowidgetplugin.kcfg + DESTINATION ${KCFG_INSTALL_DIR} +) + +tde_create_translated_desktop( + SOURCE ktinfowidgetplugin.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/plugins/infowidget/chunkbar.h b/src/plugins/infowidget/chunkbar.h index 593acfe..361f854 100644 --- a/src/plugins/infowidget/chunkbar.h +++ b/src/plugins/infowidget/chunkbar.h @@ -24,6 +24,7 @@ #include <tqlabel.h> #include <util/bitset.h> #include <tqpixmap.h> +#include <libktorrent_export.h> class TQPainter; @@ -47,7 +48,7 @@ namespace kt * BitSets can represent which chunks are downloaded, which chunks are available * and which chunks are excluded. */ - class ChunkBar : public TQFrame + class LIBKTORRENT_EXPORT ChunkBar : public TQFrame { TQ_OBJECT diff --git a/src/plugins/infowidget/geoip/CMakeLists.txt b/src/plugins/infowidget/geoip/CMakeLists.txt new file mode 100644 index 0000000..b11354d --- /dev/null +++ b/src/plugins/infowidget/geoip/CMakeLists.txt @@ -0,0 +1,17 @@ + +##### icon files + +if( WITH_BUILTIN_FLAGS ) + file(GLOB _pics "${CMAKE_CURRENT_SOURCE_DIR}/*.png" ) + install( + FILES ${_pics} + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/geoip + ) +endif( ) + +if( WITH_BUILTIN_GEOIP ) + install( + FILES geoip.dat GeoIP-LICENSE.txt + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/geoip + ) +endif( ) diff --git a/src/plugins/infowidget/statustab.h b/src/plugins/infowidget/statustab.h index d044011..1a7d7ac 100644 --- a/src/plugins/infowidget/statustab.h +++ b/src/plugins/infowidget/statustab.h @@ -22,12 +22,13 @@ #define STATUSTAB_H #include "statustabbase.h" +#include <libktorrent_export.h> namespace kt { class TorrentInterface; - class StatusTab : public StatusTabBase + class LIBKTORRENT_EXPORT StatusTab : public StatusTabBase { TQ_OBJECT diff --git a/src/plugins/ipfilter/CMakeLists.txt b/src/plugins/ipfilter/CMakeLists.txt new file mode 100644 index 0000000..4de7b52 --- /dev/null +++ b/src/plugins/ipfilter/CMakeLists.txt @@ -0,0 +1,30 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/src/libktorrent + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### ktipfilterplugin (kpart) + +tde_add_kpart( ktipfilterplugin AUTOMOC + SOURCES + ipfilterplugin.cpp ipblockingpref.ui ipblockingprefpage.cpp ipfilterpluginsettings.kcfgc + antip2p.cpp convert_dlg.ui convertdialog.cpp + LINK + ktorrent-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared tdehtml-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES ktipfilterplugin.kcfg + DESTINATION ${KCFG_INSTALL_DIR} +) + +tde_create_translated_desktop( + SOURCE ktipfilterplugin.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/plugins/ipfilter/ipfilterplugin.cpp b/src/plugins/ipfilter/ipfilterplugin.cpp index 96f71bf..b607b47 100644 --- a/src/plugins/ipfilter/ipfilterplugin.cpp +++ b/src/plugins/ipfilter/ipfilterplugin.cpp @@ -127,3 +127,5 @@ namespace kt return version == KT_VERSION_MACRO; } } + +#include "ipfilterplugin.moc" diff --git a/src/plugins/ipfilter/ipfilterplugin.h b/src/plugins/ipfilter/ipfilterplugin.h index 2ef114a..44098a1 100644 --- a/src/plugins/ipfilter/ipfilterplugin.h +++ b/src/plugins/ipfilter/ipfilterplugin.h @@ -39,7 +39,7 @@ namespace kt * * This plugin will load IP ranges from specific files into KT IPBlocklist. */ - class IPFilterPlugin : public Plugin, public kt::IPBlockingInterface + class LIBKTORRENT_EXPORT IPFilterPlugin : public Plugin, public kt::IPBlockingInterface { TQ_OBJECT diff --git a/src/plugins/logviewer/CMakeLists.txt b/src/plugins/logviewer/CMakeLists.txt new file mode 100644 index 0000000..93d2eb4 --- /dev/null +++ b/src/plugins/logviewer/CMakeLists.txt @@ -0,0 +1,30 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/src/libktorrent + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### ktlogviewerplugin (kpart) + +tde_add_kpart( ktlogviewerplugin AUTOMOC + SOURCES + logviewerplugin.cpp logviewer.cpp logprefpage.cpp logprefwidgetbase.ui + logprefwidget.cpp logviewerpluginsettings.kcfgc logflags.cpp + LINK + ktorrent-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared tdehtml-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES ktlogviewerplugin.kcfg + DESTINATION ${KCFG_INSTALL_DIR} +) + +tde_create_translated_desktop( + SOURCE ktlogviewerplugin.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/plugins/partfileimport/CMakeLists.txt b/src/plugins/partfileimport/CMakeLists.txt new file mode 100644 index 0000000..53e1691 --- /dev/null +++ b/src/plugins/partfileimport/CMakeLists.txt @@ -0,0 +1,29 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/src/libktorrent + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### ktpartfileimportplugin (kpart) + +tde_add_kpart( ktpartfileimportplugin AUTOMOC + SOURCES + partfileimportplugin.cpp importdlgbase.ui importdialog.cpp + LINK + ktorrent-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared tdehtml-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES ktpartfileimportpluginui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +tde_create_translated_desktop( + SOURCE ktpartfileimportplugin.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/plugins/partfileimport/Makefile.am b/src/plugins/partfileimport/Makefile.am index 263f8a0..45fb6ba 100644 --- a/src/plugins/partfileimport/Makefile.am +++ b/src/plugins/partfileimport/Makefile.am @@ -1,5 +1,4 @@ -INCLUDES = -I$(top_builddir)/apps/ktorrent -I$(srcdir)/../../libktorrent \ - $(all_includes) +INCLUDES = -I$(srcdir)/../../libktorrent $(all_includes) METASOURCES = AUTO kde_module_LTLIBRARIES = ktpartfileimportplugin.la noinst_HEADERS = partfileimportplugin.h importdialog.h diff --git a/src/plugins/partfileimport/importdialog.cpp b/src/plugins/partfileimport/importdialog.cpp index f570012..a3cb863 100644 --- a/src/plugins/partfileimport/importdialog.cpp +++ b/src/plugins/partfileimport/importdialog.cpp @@ -383,7 +383,5 @@ namespace kt } } - - #include "importdialog.moc" diff --git a/src/plugins/rssfeed/CMakeLists.txt b/src/plugins/rssfeed/CMakeLists.txt new file mode 100644 index 0000000..4a5a0a7 --- /dev/null +++ b/src/plugins/rssfeed/CMakeLists.txt @@ -0,0 +1,39 @@ + +##### subfolders + +add_subdirectory( rss ) + + +##### current folder + +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/src/libktorrent + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### ktrssfeedplugin (kpart) + +tde_add_kpart( ktrssfeedplugin AUTOMOC + SOURCES + rssfeedplugin.cpp rssfeedmanager.cpp rssfeedwidget.ui rssfeed.cpp + rssfilter.cpp rssarticle.cpp rsslinkdownloader.cpp + LINK + rsslocal-static + ktorrent-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared tdehtml-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES ktrssfeedplugin.kcfg + DESTINATION ${KCFG_INSTALL_DIR} +) + +tde_create_translated_desktop( + SOURCE ktrssfeedplugin.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/plugins/rssfeed/rss/CMakeLists.txt b/src/plugins/rssfeed/rss/CMakeLists.txt new file mode 100644 index 0000000..dd9af6e --- /dev/null +++ b/src/plugins/rssfeed/rss/CMakeLists.txt @@ -0,0 +1,24 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### rsslocal library (static) + +tde_add_library( rsslocal STATIC_PIC AUTOMOC + SOURCES + article.cpp document.cpp image.cpp textinput.cpp tools_p.cpp loader.cpp +) + + +##### testlibrss (executable) + +tde_add_check_executable( testlibrss AUTOMOC + SOURCES testlibrss.cpp + LINK + rsslocal-static + ktorrent-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared + # uncomment the following line for a real test during building + # TEST https://floss.social/@tde.rss +) diff --git a/src/plugins/rssfeed/rssfeed.cpp b/src/plugins/rssfeed/rssfeed.cpp index 2e8d14b..b86d2f2 100644 --- a/src/plugins/rssfeed/rssfeed.cpp +++ b/src/plugins/rssfeed/rssfeed.cpp @@ -364,3 +364,5 @@ namespace kt { } } + +#include "rssfeed.moc" diff --git a/src/plugins/rssfeed/rssfeedmanager.cpp b/src/plugins/rssfeed/rssfeedmanager.cpp index a1ebebf..0f74e7b 100644 --- a/src/plugins/rssfeed/rssfeedmanager.cpp +++ b/src/plugins/rssfeed/rssfeedmanager.cpp @@ -1316,3 +1316,5 @@ namespace kt } } + +#include "rssfeedmanager.moc" diff --git a/src/plugins/rssfeed/rssfeedplugin.cpp b/src/plugins/rssfeed/rssfeedplugin.cpp index 4a60921..7899c70 100644 --- a/src/plugins/rssfeed/rssfeedplugin.cpp +++ b/src/plugins/rssfeed/rssfeedplugin.cpp @@ -84,3 +84,5 @@ namespace kt } + +#include "rssfeedplugin.moc" diff --git a/src/plugins/rssfeed/rssfilter.cpp b/src/plugins/rssfeed/rssfilter.cpp index 32d13d0..794a51f 100644 --- a/src/plugins/rssfeed/rssfilter.cpp +++ b/src/plugins/rssfeed/rssfilter.cpp @@ -421,3 +421,5 @@ namespace kt } } + +#include "rssfilter.moc" diff --git a/src/plugins/rssfeed/rsslinkdownloader.cpp b/src/plugins/rssfeed/rsslinkdownloader.cpp index 92bb90d..53a66de 100644 --- a/src/plugins/rssfeed/rsslinkdownloader.cpp +++ b/src/plugins/rssfeed/rsslinkdownloader.cpp @@ -200,3 +200,5 @@ namespace kt } } + +#include "rsslinkdownloader.moc" diff --git a/src/plugins/scanfolder/CMakeLists.txt b/src/plugins/scanfolder/CMakeLists.txt new file mode 100644 index 0000000..ed5b9f7 --- /dev/null +++ b/src/plugins/scanfolder/CMakeLists.txt @@ -0,0 +1,30 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/src/libktorrent + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### ktscanfolderplugin (kpart) + +tde_add_kpart( ktscanfolderplugin AUTOMOC + SOURCES + scanfolderplugin.cpp scanfolderpluginsettings.kcfgc scanfolderprefpage.cpp + sfprefwidgetbase.ui scanfolderprefpagewidget.cpp scanfolder.cpp + LINK + ktorrent-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared tdehtml-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES ktscanfolderplugin.kcfg + DESTINATION ${KCFG_INSTALL_DIR} +) + +tde_create_translated_desktop( + SOURCE ktscanfolderplugin.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/plugins/scanfolder/scanfolderplugin.cpp b/src/plugins/scanfolder/scanfolderplugin.cpp index 710d1d0..58e1bea 100644 --- a/src/plugins/scanfolder/scanfolderplugin.cpp +++ b/src/plugins/scanfolder/scanfolderplugin.cpp @@ -185,3 +185,5 @@ namespace kt return version == KT_VERSION_MACRO; } } + +#include "scanfolderplugin.moc" diff --git a/src/plugins/scheduler/CMakeLists.txt b/src/plugins/scheduler/CMakeLists.txt new file mode 100644 index 0000000..7ce787d --- /dev/null +++ b/src/plugins/scheduler/CMakeLists.txt @@ -0,0 +1,42 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/src/libktorrent + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### ktschedulerplugin (kpart) + +tde_add_kpart( ktschedulerplugin AUTOMOC + SOURCES + schedulerplugin.cpp schedulerpluginsettings.kcfgc bwscheduler.cpp schedulerprefpagewidget.cpp + schedulerpage.ui bwspage.ui bwsprefpagewidget.cpp bwswidget.cpp schedulerprefpage.cpp + LINK + ktorrent-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared tdehtml-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES ktschedulerpluginui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +install( + FILES + cell-a-0000.png cell-a-0001.png cell-a-0002.png cell-a-0003.png cell-a-0004.png + cell-b-0000.png cell-b-0001.png cell-b-0002.png cell-b-0003.png cell-b-0004.png + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/icons +) + +install( + FILES ktschedulerplugin.kcfg + DESTINATION ${KCFG_INSTALL_DIR} +) + +tde_create_translated_desktop( + SOURCE ktschedulerplugin.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/plugins/scheduler/bwswidget.cpp b/src/plugins/scheduler/bwswidget.cpp index 4423458..66ab4d9 100644 --- a/src/plugins/scheduler/bwswidget.cpp +++ b/src/plugins/scheduler/bwswidget.cpp @@ -332,3 +332,5 @@ namespace kt clearSelect(); } } + +#include "bwswidget.moc" diff --git a/src/plugins/scheduler/schedulerplugin.cpp b/src/plugins/scheduler/schedulerplugin.cpp index e0a71e7..5950cfa 100644 --- a/src/plugins/scheduler/schedulerplugin.cpp +++ b/src/plugins/scheduler/schedulerplugin.cpp @@ -150,3 +150,5 @@ namespace kt return version == KT_VERSION_MACRO; } } + +#include "schedulerplugin.moc" diff --git a/src/plugins/scheduler/schedulerprefpagewidget.cpp b/src/plugins/scheduler/schedulerprefpagewidget.cpp index 156f46f..7aaf61e 100644 --- a/src/plugins/scheduler/schedulerprefpagewidget.cpp +++ b/src/plugins/scheduler/schedulerprefpagewidget.cpp @@ -79,5 +79,4 @@ namespace kt } - - +#include "schedulerprefpagewidget.moc" diff --git a/src/plugins/search/CMakeLists.txt b/src/plugins/search/CMakeLists.txt new file mode 100644 index 0000000..a1b9ba0 --- /dev/null +++ b/src/plugins/search/CMakeLists.txt @@ -0,0 +1,30 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/src/libktorrent + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### ktsearchplugin (kpart) + +tde_add_kpart( ktsearchplugin AUTOMOC + SOURCES + searchplugin.cpp htmlpart.cpp searchbar.ui searchpref.ui searchwidget.cpp + searchprefpage.cpp searchpluginsettings.kcfgc searchtab.cpp searchenginelist.cpp + LINK + ktorrent-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared tdehtml-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES ktsearchplugin.kcfg + DESTINATION ${KCFG_INSTALL_DIR} +) + +tde_create_translated_desktop( + SOURCE ktsearchplugin.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/plugins/stats/CMakeLists.txt b/src/plugins/stats/CMakeLists.txt new file mode 100644 index 0000000..3589eb6 --- /dev/null +++ b/src/plugins/stats/CMakeLists.txt @@ -0,0 +1,31 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/src/libktorrent + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### ktstatsplugin (kpart) + +tde_add_kpart( ktstatsplugin AUTOMOC + SOURCES + ChartDrawerData.cpp ChartDrawer.cpp statsspdwgt.ui statsconwgt.ui StatsSpd.cpp + StatsCon.cpp sprefwgt.ui statspluginsettings.kcfgc StatsPluginPrefsPage.cpp + StatsPluginPrefs.cpp statsplugin.cpp + LINK + ktorrent-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared tdehtml-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES ktstatsplugin.kcfg + DESTINATION ${KCFG_INSTALL_DIR} +) + +tde_create_translated_desktop( + SOURCE ktstatsplugin.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/plugins/upnp/CMakeLists.txt b/src/plugins/upnp/CMakeLists.txt new file mode 100644 index 0000000..c68b2e4 --- /dev/null +++ b/src/plugins/upnp/CMakeLists.txt @@ -0,0 +1,36 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/src/libktorrent + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### ktupnpplugin (kpart) + +tde_add_library( ktupnp STATIC_PIC AUTOMOC + SOURCES + soap.cpp upnpdescriptionparser.cpp upnpmcastsocket.cpp upnprouter.cpp +) + +tde_add_kpart( ktupnpplugin AUTOMOC + SOURCES + upnpplugin.cpp upnpprefpage.cpp upnpwidget.ui upnpprefwidget.cpp upnppluginsettings.kcfgc + EMBED + ktupnp-static + LINK + ktorrent-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared tdehtml-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES ktupnpplugin.kcfg + DESTINATION ${KCFG_INSTALL_DIR} +) + +tde_create_translated_desktop( + SOURCE ktupnpplugin.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/plugins/webinterface/CMakeLists.txt b/src/plugins/webinterface/CMakeLists.txt new file mode 100644 index 0000000..28925a4 --- /dev/null +++ b/src/plugins/webinterface/CMakeLists.txt @@ -0,0 +1,40 @@ + +##### subfolders + +add_subdirectory( www ) + + +##### current folder + +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src/libktorrent + ${CMAKE_BINARY_DIR}/src/libktorrent +) + + +##### ktwebinterfaceplugin (kpart) + +tde_add_kpart( ktwebinterfaceplugin AUTOMOC + SOURCES + webinterfaceplugin.cpp httpserver.cpp php_handler.cpp php_interface.cpp webinterfacepref.ui + webinterfacepluginsettings.kcfgc webinterfaceprefwidget.cpp webinterfaceprefpage.cpp + httpclienthandler.cpp httpresponseheader.cpp + LINK + ktorrent-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared tdehtml-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES ktwebinterfaceplugin.kcfg + DESTINATION ${KCFG_INSTALL_DIR} +) + +tde_create_translated_desktop( + SOURCE ktwebinterfaceplugin.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/plugins/webinterface/www/CMakeLists.txt b/src/plugins/webinterface/www/CMakeLists.txt new file mode 100644 index 0000000..42b186a --- /dev/null +++ b/src/plugins/webinterface/www/CMakeLists.txt @@ -0,0 +1 @@ +tde_auto_add_subdirectories() diff --git a/src/plugins/webinterface/www/coldmilk/CMakeLists.txt b/src/plugins/webinterface/www/coldmilk/CMakeLists.txt new file mode 100644 index 0000000..0e62c03 --- /dev/null +++ b/src/plugins/webinterface/www/coldmilk/CMakeLists.txt @@ -0,0 +1,14 @@ + +##### subfolders + +add_subdirectory( icons ) + + +##### other files + +install( + FILES + favicon.ico icon.png interface.js interface.php login.html + page_update.js rest.php shutdown.php style.css + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/www/coldmilk +) diff --git a/src/plugins/webinterface/www/coldmilk/icons/16x16/CMakeLists.txt b/src/plugins/webinterface/www/coldmilk/icons/16x16/CMakeLists.txt new file mode 100644 index 0000000..890999c --- /dev/null +++ b/src/plugins/webinterface/www/coldmilk/icons/16x16/CMakeLists.txt @@ -0,0 +1,7 @@ + +##### icon files + +install( + FILES edit_user.png high_priority.png low_priority.png normal_priority.png only_seed.png + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/www/coldmilk/icons/16x16 +) diff --git a/src/plugins/webinterface/www/coldmilk/icons/22x22/CMakeLists.txt b/src/plugins/webinterface/www/coldmilk/icons/22x22/CMakeLists.txt new file mode 100644 index 0000000..fc75d62 --- /dev/null +++ b/src/plugins/webinterface/www/coldmilk/icons/22x22/CMakeLists.txt @@ -0,0 +1,7 @@ + +##### icon files + +install( + FILES exit.png ktstart_all.png ktstop_all.png remove.png start.png stop.png + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/www/coldmilk/icons/22x22 +) diff --git a/src/plugins/webinterface/www/coldmilk/icons/32x32/CMakeLists.txt b/src/plugins/webinterface/www/coldmilk/icons/32x32/CMakeLists.txt new file mode 100644 index 0000000..50cbc0f --- /dev/null +++ b/src/plugins/webinterface/www/coldmilk/icons/32x32/CMakeLists.txt @@ -0,0 +1,7 @@ + +##### icon files + +install( + FILES configure.png extender_opened.png fileopen.png folder1.png + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/www/coldmilk/icons/32x32 +) diff --git a/src/plugins/webinterface/www/coldmilk/icons/48x48/CMakeLists.txt b/src/plugins/webinterface/www/coldmilk/icons/48x48/CMakeLists.txt new file mode 100644 index 0000000..24ecf55 --- /dev/null +++ b/src/plugins/webinterface/www/coldmilk/icons/48x48/CMakeLists.txt @@ -0,0 +1,7 @@ + +##### icon files + +install( + FILES exit.png switchuser.png + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/www/coldmilk/icons/48x48 +) diff --git a/src/plugins/webinterface/www/coldmilk/icons/64x64/CMakeLists.txt b/src/plugins/webinterface/www/coldmilk/icons/64x64/CMakeLists.txt new file mode 100644 index 0000000..f5f01d8 --- /dev/null +++ b/src/plugins/webinterface/www/coldmilk/icons/64x64/CMakeLists.txt @@ -0,0 +1,7 @@ + +##### icon files + +install( + FILES down.png folder1_man.png looknfeel.png + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/www/coldmilk/icons/64x64 +) diff --git a/src/plugins/webinterface/www/coldmilk/icons/CMakeLists.txt b/src/plugins/webinterface/www/coldmilk/icons/CMakeLists.txt new file mode 100644 index 0000000..9a574a7 --- /dev/null +++ b/src/plugins/webinterface/www/coldmilk/icons/CMakeLists.txt @@ -0,0 +1,13 @@ +##### install icons for each size + +file( GLOB icon_sizes RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*" ) + +foreach( icon_size IN LISTS icon_sizes ) + if( IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${icon_size} ) + file( GLOB icons RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "${icon_size}/*.png" ) + install( + FILES ${icons} + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/www/coldmilk/icons/${icon_size} + ) + endif() +endforeach() diff --git a/src/plugins/webinterface/www/default/CMakeLists.txt b/src/plugins/webinterface/www/default/CMakeLists.txt new file mode 100644 index 0000000..671fda7 --- /dev/null +++ b/src/plugins/webinterface/www/default/CMakeLists.txt @@ -0,0 +1,11 @@ + +##### other files + +install( + FILES + details.php only_seed.png favicon.ico grad1.jpg grad2.jpg menu_bg.png + header_tile.png high_priority.png icon.png interface.php ktorrentwebinterfacelogo.png + login.html low_priority.png normal_priority.png remove.png shutdown.php start.png + stop.png style.css stylen.css wz_tooltip.js + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/www/default +) diff --git a/src/plugins/webinterface/www/mobile/CMakeLists.txt b/src/plugins/webinterface/www/mobile/CMakeLists.txt new file mode 100644 index 0000000..920c4d8 --- /dev/null +++ b/src/plugins/webinterface/www/mobile/CMakeLists.txt @@ -0,0 +1,9 @@ + +##### other files + +install( + FILES + favicon.ico interface.php ktorrentwebinterfacelogo.png login.html + remove.png start.png stop.png settings.php torrent.php + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/www/mobile +) diff --git a/src/plugins/zeroconf/CMakeLists.txt b/src/plugins/zeroconf/CMakeLists.txt new file mode 100644 index 0000000..c70392b --- /dev/null +++ b/src/plugins/zeroconf/CMakeLists.txt @@ -0,0 +1,25 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/src/libktorrent + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### ktzeroconfplugin (kpart) + +tde_add_kpart( ktzeroconfplugin AUTOMOC + SOURCES + localbrowser.cpp avahiservice.cpp zeroconfplugin.cpp + LINK + ktorrent-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared tdehtml-shared + ${AVAHI_TQT_LIBRARIES} ${AVAHI_CLIENT_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +tde_create_translated_desktop( + SOURCE ktzeroconfplugin.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) |
