summaryrefslogtreecommitdiffstats
path: root/src/apps
diff options
context:
space:
mode:
Diffstat (limited to 'src/apps')
-rw-r--r--src/apps/CMakeLists.txt7
-rw-r--r--src/apps/ktcachecheck/CMakeLists.txt16
-rw-r--r--src/apps/ktorrent/CMakeLists.txt73
-rw-r--r--src/apps/ktorrent/groups/CMakeLists.txt16
-rw-r--r--src/apps/ktorrent/groups/groupmanager.h3
-rw-r--r--src/apps/ktorrent/groups/torrentgroup.h3
-rw-r--r--src/apps/ktorrent/newui/CMakeLists.txt14
-rw-r--r--src/apps/kttorinfo/CMakeLists.txt13
-rw-r--r--src/apps/ktupnptest/CMakeLists.txt15
9 files changed, 158 insertions, 2 deletions
diff --git a/src/apps/CMakeLists.txt b/src/apps/CMakeLists.txt
new file mode 100644
index 0000000..414640a
--- /dev/null
+++ b/src/apps/CMakeLists.txt
@@ -0,0 +1,7 @@
+
+##### subfolders
+
+add_subdirectory( ktcachecheck )
+add_subdirectory( ktorrent )
+add_subdirectory( kttorinfo )
+add_subdirectory( ktupnptest )
diff --git a/src/apps/ktcachecheck/CMakeLists.txt b/src/apps/ktcachecheck/CMakeLists.txt
new file mode 100644
index 0000000..e1f5b13
--- /dev/null
+++ b/src/apps/ktcachecheck/CMakeLists.txt
@@ -0,0 +1,16 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/src/libktorrent
+ ${CMAKE_CURRENT_BINARY_DIR}
+)
+
+
+##### ktcachecheck (executable)
+
+tde_add_executable( ktcachecheck AUTOMOC
+ SOURCES
+ cachecheck.cpp cachechecker.cpp singlecachechecker.cpp multicachechecker.cpp
+ LINK
+ ktorrent-shared tdecore-shared tdeui-shared tdeio-shared DCOP-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/src/apps/ktorrent/CMakeLists.txt b/src/apps/ktorrent/CMakeLists.txt
new file mode 100644
index 0000000..0966c29
--- /dev/null
+++ b/src/apps/ktorrent/CMakeLists.txt
@@ -0,0 +1,73 @@
+
+##### subfolders
+
+add_subdirectory( groups )
+add_subdirectory( newui )
+
+
+##### current folder
+
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/src/libktorrent
+ ${CMAKE_BINARY_DIR}/src/libktorrent
+)
+
+
+##### check for memory leakage tracing
+
+if( WITH_MEMLEAK_TRACING )
+ add_definitions(-DKT_LEAKTRACE )
+endif( )
+
+
+##### ktorrent (executable)
+
+tde_add_executable( ktorrent AUTOMOC
+ SOURCES
+ addpeerwidget.cpp addpeerwidget.h addpeerwidgetbase.ui
+ advancedpref.ui dcopinterface.skel downloadpref.ui fileselectdlg.cpp
+ fileselectdlgbase.ui generalpref.ui ipfilterwidget.cpp ipfilterwidgetbase.ui ktorrent.cpp
+ ktorrentapp.cpp ktorrentcore.cpp ktorrentdcop.cpp ktorrentview.cpp ktorrentviewitem.cpp
+ ktorrentviewmenu.cpp leaktrace.cpp main.cpp pastedialog.cpp pastedlgbase.ui pref.cpp
+ queuedialog.cpp queuedialog.h queuedlg.ui scandialog.cpp scandlgbase.ui
+ speedlimitsdlg.cpp speedlimitsdlgbase.ui torrentcreatordlg.cpp torrentcreatordlg.h
+ torrentcreatordlgbase.ui trayhoverpopup.cpp trayicon.cpp viewmanager.cpp filterbar.cpp
+ LINK
+ groups-static newui-static
+ ktorrent-shared tdecore-shared tdeui-shared tdeio-shared DCOP-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### other files
+
+install(
+ FILES ktorrentui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
+)
+
+tde_create_translated_desktop(
+ SOURCE ktorrentplugin.desktop
+ DESTINATION ${SERVICETYPES_INSTALL_DIR}
+)
+
+tde_create_translated_desktop(
+ SOURCE ktorrent.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+if( WITH_TORRENT_MIMETYPE )
+ tde_create_translated_desktop(
+ SOURCE x-bittorrent.desktop
+ DESTINATION ${MIME_INSTALL_DIR}/application
+ )
+endif()
+
+tde_install_icons( ktorrent torrent DESTINATION ${SHARE_INSTALL_PREFIX}/icons )
+tde_install_icons(
+ ktencrypted ktinfowidget ktplugins ktprefdownloads ktqueuemanager
+ ktremove ktstart ktstart_all ktstop ktstop_all ktupnp
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/icons
+)
diff --git a/src/apps/ktorrent/groups/CMakeLists.txt b/src/apps/ktorrent/groups/CMakeLists.txt
new file mode 100644
index 0000000..9f7b273
--- /dev/null
+++ b/src/apps/ktorrent/groups/CMakeLists.txt
@@ -0,0 +1,16 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/src/libktorrent
+ ${CMAKE_CURRENT_BINARY_DIR}
+)
+
+
+##### groups library (static)
+
+tde_add_library( groups STATIC_PIC AUTOMOC
+ SOURCES
+ activedownloadsgroup.cpp activegroup.cpp groupview.cpp useruploadsgroup.cpp
+ activeuploadsgroup.cpp allgroup.cpp downloadgroup.cpp group.cpp groupmanager.cpp
+ inactivedownloadsgroup.cpp inactivegroup.cpp inactiveuploadsgroup.cpp queueddownloadsgroup.cpp
+ queueduploadsgroup.cpp torrentdrag.cpp torrentgroup.cpp uploadgroup.cpp userdownloadsgroup.cpp
+)
diff --git a/src/apps/ktorrent/groups/groupmanager.h b/src/apps/ktorrent/groups/groupmanager.h
index 5c5491e..a2fa4fd 100644
--- a/src/apps/ktorrent/groups/groupmanager.h
+++ b/src/apps/ktorrent/groups/groupmanager.h
@@ -23,6 +23,7 @@
#include <tqstring.h>
#include <tdelocale.h>
#include <util/ptrmap.h>
+#include <libktorrent_export.h>
namespace kt
@@ -35,7 +36,7 @@ namespace kt
*
* Manages all user created groups and the standard groups.
*/
- class GroupManager : public bt::PtrMap<TQString,Group>
+ class LIBKTORRENT_EXPORT GroupManager : public bt::PtrMap<TQString,Group>
{
bt::PtrMap<TQString,Group> default_groups;
diff --git a/src/apps/ktorrent/groups/torrentgroup.h b/src/apps/ktorrent/groups/torrentgroup.h
index 14f1b37..432cffb 100644
--- a/src/apps/ktorrent/groups/torrentgroup.h
+++ b/src/apps/ktorrent/groups/torrentgroup.h
@@ -23,6 +23,7 @@
#include <set>
#include <group.h>
#include <util/sha1hash.h>
+#include <libktorrent_export.h>
namespace kt
@@ -32,7 +33,7 @@ namespace kt
/**
@author Joris Guisson <joris.guisson@gmail.com>
*/
- class TorrentGroup : public Group
+ class LIBKTORRENT_EXPORT TorrentGroup : public Group
{
std::set<TorrentInterface*> torrents;
std::set<bt::SHA1Hash> hashes;
diff --git a/src/apps/ktorrent/newui/CMakeLists.txt b/src/apps/ktorrent/newui/CMakeLists.txt
new file mode 100644
index 0000000..a9dc774
--- /dev/null
+++ b/src/apps/ktorrent/newui/CMakeLists.txt
@@ -0,0 +1,14 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/src/libktorrent
+ ${CMAKE_CURRENT_BINARY_DIR}
+)
+
+
+##### newui library (static)
+
+tde_add_library( newui STATIC_PIC AUTOMOC
+ SOURCES
+ button.cpp button.h buttonbar.cpp buttonbar.h comdefs.h ddockwindow.cpp ddockwindow.h
+ dmainwindow.cpp dmainwindow.h docksplitter.cpp docksplitter.h dtabwidget.cpp dtabwidget.h
+)
diff --git a/src/apps/kttorinfo/CMakeLists.txt b/src/apps/kttorinfo/CMakeLists.txt
new file mode 100644
index 0000000..0dba8e0
--- /dev/null
+++ b/src/apps/kttorinfo/CMakeLists.txt
@@ -0,0 +1,13 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/src/libktorrent
+)
+
+
+##### kttorinfo (executable)
+
+tde_add_executable( kttorinfo
+ SOURCES main.cpp
+ LINK ktorrent-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/src/apps/ktupnptest/CMakeLists.txt b/src/apps/ktupnptest/CMakeLists.txt
new file mode 100644
index 0000000..674d951
--- /dev/null
+++ b/src/apps/ktupnptest/CMakeLists.txt
@@ -0,0 +1,15 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/src
+ ${CMAKE_SOURCE_DIR}/src/libktorrent
+ ${CMAKE_CURRENT_BINARY_DIR}
+)
+
+
+##### ktupnptest (executable)
+
+tde_add_executable( ktupnptest AUTOMOC
+ SOURCES main.cpp upnptestapp.cpp mainwidget.ui
+ LINK ktupnp-static ktorrent-shared tdecore-shared tdeui-shared tdeio-shared DCOP-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)