diff options
author | gregory guy <[email protected]> | 2020-10-20 14:40:51 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2021-01-15 15:15:39 +0100 |
commit | 7fefe15989a08e255ade5e577c781701b157d430 (patch) | |
tree | 094796ae879ca732f013f7ff6baf059da9d3b862 /src/tor_ioslave | |
parent | ade9896cdea394b76db639c1f22a43821a9d1ecd (diff) | |
download | tork-7fefe15989a08e255ade5e577c781701b157d430.tar.gz tork-7fefe15989a08e255ade5e577c781701b157d430.zip |
Conversion to the cmake building system.
Signed-off-by: gregory guy <[email protected]>
(cherry picked from commit 81b64bcfc0a32fdeb0e4f367adbf273d924e55f4)
Diffstat (limited to 'src/tor_ioslave')
-rw-r--r-- | src/tor_ioslave/CMakeLists.txt | 34 | ||||
-rw-r--r-- | src/tor_ioslave/torioslave.cpp | 24 | ||||
-rw-r--r-- | src/tor_ioslave/torioslave.h | 4 |
3 files changed, 48 insertions, 14 deletions
diff --git a/src/tor_ioslave/CMakeLists.txt b/src/tor_ioslave/CMakeLists.txt new file mode 100644 index 0000000..922f0a1 --- /dev/null +++ b/src/tor_ioslave/CMakeLists.txt @@ -0,0 +1,34 @@ +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${TDE_LIB_DIR} +) + + +##### tdeio_torioslave (kpart) + +tde_add_kpart( tdeio_torioslave AUTOMOC + + SOURCES + torioslave.cpp + LINK + tdecore-shared + tdeio-shared + + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data + +tde_create_translated_desktop( + SOURCE torioslave.protocol + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/tor_ioslave/torioslave.cpp b/src/tor_ioslave/torioslave.cpp index 1c1e875..c3fc8b0 100644 --- a/src/tor_ioslave/torioslave.cpp +++ b/src/tor_ioslave/torioslave.cpp @@ -19,18 +19,10 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#include <ntqcstring.h> -#include <ntqsocket.h> -#include <ntqdatetime.h> -#include <ntqbitarray.h> - -#include <stdlib.h> -#include <math.h> -#include <unistd.h> -#include <sys/socket.h> -#include <sys/types.h> -#include <netinet/in.h> -#include <netdb.h> +#include <tqcstring.h> +#include <tqsocket.h> +#include <tqdatetime.h> +#include <tqbitarray.h> #include <tdeapplication.h> #include <kdebug.h> @@ -48,6 +40,14 @@ #include <krun.h> #include <kprocio.h> +#include <stdlib.h> +#include <math.h> +#include <unistd.h> +#include <sys/socket.h> +#include <sys/types.h> +#include <netinet/in.h> +#include <netdb.h> + #include "torioslave.h" using namespace TDEIO; diff --git a/src/tor_ioslave/torioslave.h b/src/tor_ioslave/torioslave.h index 5668e3f..ab0efb3 100644 --- a/src/tor_ioslave/torioslave.h +++ b/src/tor_ioslave/torioslave.h @@ -22,8 +22,8 @@ #ifndef _tor_H_ #define _tor_H_ -#include <ntqstring.h> -#include <ntqcstring.h> +#include <tqstring.h> +#include <tqcstring.h> #include <kurl.h> #include <tdeio/global.h> |