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/webinterface | |
| 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/webinterface')
11 files changed, 123 insertions, 0 deletions
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 +) |
